CMS 3D CMS Logo

MuonPathAssociator.h
Go to the documentation of this file.
1 #ifndef Phase2L1Trigger_DTTrigger_MuonPathAssociator_h
2 #define Phase2L1Trigger_DTTrigger_MuonPathAssociator_h
3 
9 
15 
18 
22 
23 #include <iostream>
24 #include <fstream>
25 
26 // ===============================================================================
27 // Previous definitions and declarations
28 // ===============================================================================
29 
30 // ===============================================================================
31 // Class declarations
32 // ===============================================================================
33 
35 public:
36  // Constructors and destructor
39 
40  // Main methods
41  void initialise(const edm::EventSetup &iEventSetup);
42  void run(edm::Event &iEvent,
43  const edm::EventSetup &iEventSetup,
45  std::vector<cmsdt::metaPrimitive> &inMPaths,
46  std::vector<cmsdt::metaPrimitive> &outMPaths);
47 
48  void finish();
49 
50  // Other public methods
51 
54  void removeSharingFits(std::vector<cmsdt::metaPrimitive> &chamberMPaths,
55  std::vector<cmsdt::metaPrimitive> &allMPaths);
56  void removeSharingHits(std::vector<cmsdt::metaPrimitive> &firstMPaths,
57  std::vector<cmsdt::metaPrimitive> &secondMPaths,
58  std::vector<cmsdt::metaPrimitive> &allMPaths);
60 
61  // Public attributes
64 
65 private:
66  // Private methods
68  std::vector<cmsdt::metaPrimitive> &inMPaths,
69  std::vector<cmsdt::metaPrimitive> &outMPaths);
70 
71  bool hasPosRF(int wh, int sec) { return wh > 0 || (wh == 0 && sec % 4 > 1); }
72 
73  // Private attributes
74  bool debug_;
82  double chi2corTh_;
83  bool use_LSB_;
85  double x_precision_;
86 
87  //shift
89  std::map<int, float> shiftinfo_;
90 };
91 
92 #endif
DTGeometry
Definition: DTGeometry.h:28
cmsdt::metaPrimitive
Definition: constants.h:48
MuonPathAssociator::chi2corTh_
double chi2corTh_
Definition: MuonPathAssociator.h:82
MuonPathAssociator::clean_chi2_correlation_
bool clean_chi2_correlation_
Definition: MuonPathAssociator.h:75
MuonPathAssociator::run
void run(edm::Event &iEvent, const edm::EventSetup &iEventSetup, edm::Handle< DTDigiCollection > digis, std::vector< cmsdt::metaPrimitive > &inMPaths, std::vector< cmsdt::metaPrimitive > &outMPaths)
Definition: MuonPathAssociator.cc:64
DTLayerId.h
MuonPathAssociator::tanPsi_precision_
double tanPsi_precision_
Definition: MuonPathAssociator.h:84
MuonPathAssociator::finish
void finish()
Definition: MuonPathAssociator.cc:76
MuonPathAssociator::dBX_correlate_TP_
double dBX_correlate_TP_
Definition: MuonPathAssociator.h:79
MuonPathAssociator::hasPosRF
bool hasPosRF(int wh, int sec)
Definition: MuonPathAssociator.h:71
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
MuonPathAssociator::shareFit
bool shareFit(cmsdt::metaPrimitive first, cmsdt::metaPrimitive second)
Definition: MuonPathAssociator.cc:967
MuonPathAssociator::shift_filename_
edm::FileInPath shift_filename_
Definition: MuonPathAssociator.h:88
edm::Handle< DTDigiCollection >
dqmdumpme.first
first
Definition: dqmdumpme.py:55
MuonPathAssociator::removeSharingFits
void removeSharingFits(std::vector< cmsdt::metaPrimitive > &chamberMPaths, std::vector< cmsdt::metaPrimitive > &allMPaths)
Definition: MuonPathAssociator.cc:894
MuonPathAssociator::removeSharingHits
void removeSharingHits(std::vector< cmsdt::metaPrimitive > &firstMPaths, std::vector< cmsdt::metaPrimitive > &secondMPaths, std::vector< cmsdt::metaPrimitive > &allMPaths)
Definition: MuonPathAssociator.cc:936
MuonPathAssociator::dtGeomH_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomH_
Definition: MuonPathAssociator.h:63
MuonPathAssociator::initialise
void initialise(const edm::EventSetup &iEventSetup)
Definition: MuonPathAssociator.cc:56
MuonPathAssociator::dT0_correlate_TP_
double dT0_correlate_TP_
Definition: MuonPathAssociator.h:78
edm::FileInPath
Definition: FileInPath.h:64
constants.h
MuonPathAssociator::minx_match_2digis_
double minx_match_2digis_
Definition: MuonPathAssociator.h:81
MuonPathAssociator::use_LSB_
bool use_LSB_
Definition: MuonPathAssociator.h:83
Run.h
MuonPathAssociator::~MuonPathAssociator
~MuonPathAssociator()
Definition: MuonPathAssociator.cc:48
DTChamberId.h
DTLayer.h
DTGeometry.h
MuonPathAssociator::MuonPathAssociator
MuonPathAssociator(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: MuonPathAssociator.cc:13
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
MuonPathAssociator::correlateMPaths
void correlateMPaths(edm::Handle< DTDigiCollection > digis, std::vector< cmsdt::metaPrimitive > &inMPaths, std::vector< cmsdt::metaPrimitive > &outMPaths)
Definition: MuonPathAssociator.cc:81
FrameworkfwdMostUsed.h
MuonPathAssociator::dTanPsi_correlate_TP_
double dTanPsi_correlate_TP_
Definition: MuonPathAssociator.h:80
iEvent
int iEvent
Definition: GenABIO.cc:224
MuonPathAssociator
Definition: MuonPathAssociator.h:34
MuonPathAssociator::printmPC
void printmPC(cmsdt::metaPrimitive mP)
Definition: MuonPathAssociator.cc:1007
edm::EventSetup
Definition: EventSetup.h:57
MuonPathAssociator::shiftinfo_
std::map< int, float > shiftinfo_
Definition: MuonPathAssociator.h:89
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:87
DTWireId.h
MuonPathAssociator::debug_
bool debug_
Definition: MuonPathAssociator.h:74
MuonPath.h
MuonPathAssociator::x_precision_
double x_precision_
Definition: MuonPathAssociator.h:85
EventSetup.h
MuonPathAssociator::useBX_correlation_
bool useBX_correlation_
Definition: MuonPathAssociator.h:76
DTDigiCollection.h
ParameterSet.h
DTSuperLayerId.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
MuonPathAssociator::dtGeo_
const DTGeometry * dtGeo_
Definition: MuonPathAssociator.h:62
MuonPathAssociator::allow_confirmation_
bool allow_confirmation_
Definition: MuonPathAssociator.h:77
MuonPathAssociator::isNotAPrimo
bool isNotAPrimo(cmsdt::metaPrimitive first, cmsdt::metaPrimitive second)
Definition: MuonPathAssociator.cc:991
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27