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 
19 
23 
24 #include <iostream>
25 #include <fstream>
26 
27 // ===============================================================================
28 // Previous definitions and declarations
29 // ===============================================================================
30 
31 // ===============================================================================
32 // Class declarations
33 // ===============================================================================
34 
36 public:
37  // Constructors and destructor
40  std::shared_ptr<GlobalCoordsObtainer> &globalcoordsobtainer);
42 
43  // Main methods
44  void initialise(const edm::EventSetup &iEventSetup);
45  void run(edm::Event &iEvent,
46  const edm::EventSetup &iEventSetup,
48  std::vector<cmsdt::metaPrimitive> &inMPaths,
49  std::vector<cmsdt::metaPrimitive> &outMPaths);
50 
51  void finish();
52 
53  // Other public methods
54 
57  void removeSharingFits(std::vector<cmsdt::metaPrimitive> &chamberMPaths,
58  std::vector<cmsdt::metaPrimitive> &allMPaths);
59  void removeSharingHits(std::vector<cmsdt::metaPrimitive> &firstMPaths,
60  std::vector<cmsdt::metaPrimitive> &secondMPaths,
61  std::vector<cmsdt::metaPrimitive> &allMPaths);
63 
64  // Public attributes
67 
68 private:
69  // Private methods
71  std::vector<cmsdt::metaPrimitive> &inMPaths,
72  std::vector<cmsdt::metaPrimitive> &outMPaths);
73 
74  bool hasPosRF(int wh, int sec) { return wh > 0 || (wh == 0 && sec % 4 > 1); }
75 
76  // Private attributes
77  bool debug_;
85  double chi2corTh_;
87 
88  //shift
90  std::map<int, float> shiftinfo_;
91 
92  // global coordinates
93  std::shared_ptr<GlobalCoordsObtainer> globalcoordsobtainer_;
94 };
95 
96 #endif
DTGeometry
Definition: DTGeometry.h:28
cmsdt::metaPrimitive
Definition: constants.h:49
MuonPathAssociator::chi2corTh_
double chi2corTh_
Definition: MuonPathAssociator.h:85
MuonPathAssociator::clean_chi2_correlation_
bool clean_chi2_correlation_
Definition: MuonPathAssociator.h:78
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:66
DTLayerId.h
MuonPathAssociator::finish
void finish()
Definition: MuonPathAssociator.cc:78
MuonPathAssociator::dBX_correlate_TP_
double dBX_correlate_TP_
Definition: MuonPathAssociator.h:82
MuonPathAssociator::hasPosRF
bool hasPosRF(int wh, int sec)
Definition: MuonPathAssociator.h:74
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:1031
MuonPathAssociator::shift_filename_
edm::FileInPath shift_filename_
Definition: MuonPathAssociator.h:89
edm::Handle< DTDigiCollection >
MuonPathAssociator::removeSharingFits
void removeSharingFits(std::vector< cmsdt::metaPrimitive > &chamberMPaths, std::vector< cmsdt::metaPrimitive > &allMPaths)
Definition: MuonPathAssociator.cc:958
MuonPathAssociator::removeSharingHits
void removeSharingHits(std::vector< cmsdt::metaPrimitive > &firstMPaths, std::vector< cmsdt::metaPrimitive > &secondMPaths, std::vector< cmsdt::metaPrimitive > &allMPaths)
Definition: MuonPathAssociator.cc:1000
MuonPathAssociator::dtGeomH_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomH_
Definition: MuonPathAssociator.h:66
MuonPathAssociator::MuonPathAssociator
MuonPathAssociator(const edm::ParameterSet &pset, edm::ConsumesCollector &iC, std::shared_ptr< GlobalCoordsObtainer > &globalcoordsobtainer)
Definition: MuonPathAssociator.cc:13
MuonPathAssociator::initialise
void initialise(const edm::EventSetup &iEventSetup)
Definition: MuonPathAssociator.cc:57
MuonPathAssociator::dT0_correlate_TP_
double dT0_correlate_TP_
Definition: MuonPathAssociator.h:81
edm::FileInPath
Definition: FileInPath.h:61
constants.h
MuonPathAssociator::minx_match_2digis_
double minx_match_2digis_
Definition: MuonPathAssociator.h:84
Run.h
GlobalCoordsObtainer.h
MuonPathAssociator::~MuonPathAssociator
~MuonPathAssociator()
Definition: MuonPathAssociator.cc:49
DTChamberId.h
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
DTLayer.h
DTGeometry.h
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:83
FrameworkfwdMostUsed.h
MuonPathAssociator::dTanPsi_correlate_TP_
double dTanPsi_correlate_TP_
Definition: MuonPathAssociator.h:83
iEvent
int iEvent
Definition: GenABIO.cc:224
MuonPathAssociator
Definition: MuonPathAssociator.h:35
MuonPathAssociator::printmPC
void printmPC(cmsdt::metaPrimitive mP)
Definition: MuonPathAssociator.cc:1071
edm::EventSetup
Definition: EventSetup.h:58
MuonPathAssociator::shiftinfo_
std::map< int, float > shiftinfo_
Definition: MuonPathAssociator.h:90
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:94
DTWireId.h
MuonPathAssociator::debug_
bool debug_
Definition: MuonPathAssociator.h:77
MuonPath.h
EventSetup.h
MuonPathAssociator::useBX_correlation_
bool useBX_correlation_
Definition: MuonPathAssociator.h:79
DTDigiCollection.h
ParameterSet.h
MuonPathAssociator::globalcoordsobtainer_
std::shared_ptr< GlobalCoordsObtainer > globalcoordsobtainer_
Definition: MuonPathAssociator.h:93
DTSuperLayerId.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
MuonPathAssociator::dtGeo_
const DTGeometry * dtGeo_
Definition: MuonPathAssociator.h:65
MuonPathAssociator::allow_confirmation_
bool allow_confirmation_
Definition: MuonPathAssociator.h:80
MuonPathAssociator::isNotAPrimo
bool isNotAPrimo(cmsdt::metaPrimitive first, cmsdt::metaPrimitive second)
Definition: MuonPathAssociator.cc:1055
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MuonPathAssociator::geometry_tag_
std::string geometry_tag_
Definition: MuonPathAssociator.h:86