CMS 3D CMS Logo

MuonPathAnalyzerInChamber.h
Go to the documentation of this file.
1 #ifndef L1Trigger_DTTriggerPhase2_MuonPathAnalyzerInChamber_h
2 #define L1Trigger_DTTriggerPhase2_MuonPathAnalyzerInChamber_h
3 
5 
6 // ===============================================================================
7 // Previous definitions and declarations
8 // ===============================================================================
9 namespace {
10  constexpr int NLayers = 8;
11  typedef std::array<cmsdt::LATERAL_CASES, NLayers> TLateralities;
12 } // namespace
13 // ===============================================================================
14 // Class declarations
15 // ===============================================================================
16 
18 public:
19  // Constructors and destructor
22  std::shared_ptr<GlobalCoordsObtainer> &globalcoordsobtainer);
23  ~MuonPathAnalyzerInChamber() override;
24 
25  // Main methods
26  void initialise(const edm::EventSetup &iEventSetup) override;
28  const edm::EventSetup &iEventSetup,
29  MuonPathPtrs &inMpath,
30  std::vector<cmsdt::metaPrimitive> &metaPrimitives) override{};
31  void run(edm::Event &iEvent,
32  const edm::EventSetup &iEventSetup,
33  MuonPathPtrs &inMpath,
34  MuonPathPtrs &outMPath) override;
35 
36  void finish() override;
37 
38  // Other public methods
39  void setBxTolerance(int t) { bxTolerance_ = t; };
40  void setMinHits4Fit(int h) { minHits4Fit_ = h; };
41  void setChiSquareThreshold(float ch2Thr) { chiSquareThreshold_ = ch2Thr; };
43  if (minQuality_ >= cmsdt::LOWQ)
44  minQuality_ = q;
45  };
46 
47  int bxTolerance(void) { return bxTolerance_; };
48  int minHits4Fit(void) { return minHits4Fit_; };
50 
51  bool hasPosRF(int wh, int sec) { return wh > 0 || (wh == 0 && sec % 4 > 1); };
52 
53  // Public attributes
54  DTGeometry const *dtGeo_;
56 
57  //shift
58  std::map<int, float> shiftinfo_;
59 
60 private:
61  // Private methods
62  void analyze(MuonPathPtr &inMPath, MuonPathPtrs &outMPaths);
63 
64  void setCellLayout(MuonPathPtr &mpath);
65  void buildLateralities(MuonPathPtr &mpath);
66  void setLateralitiesInMP(MuonPathPtr &mpath, TLateralities lat);
68  void calculateFitParameters(MuonPathPtr &mpath, TLateralities lat, int present_layer[NLayers], int &lat_added);
69 
70  void evaluateQuality(MuonPathPtr &mPath);
72  std::vector<TLateralities> lateralities_;
73  std::vector<cmsdt::LATQ_TYPE> latQuality_;
74 
75  bool debug_;
76  double chi2Th_;
81  short minHits4Fit_;
82  int cellLayout_[NLayers];
84 
85  // global coordinates
86  std::shared_ptr<GlobalCoordsObtainer> globalcoordsobtainer_;
87 };
88 
89 #endif
MuonPathAnalyzerInChamber::latQuality_
std::vector< cmsdt::LATQ_TYPE > latQuality_
Definition: MuonPathAnalyzerInChamber.h:73
DTGeometry
Definition: DTGeometry.h:28
MuonPathAnalyzerInChamber::chi2Th_
double chi2Th_
Definition: MuonPathAnalyzerInChamber.h:76
MuonPathAnalyzerInChamber::setChiSquareThreshold
void setChiSquareThreshold(float ch2Thr)
Definition: MuonPathAnalyzerInChamber.h:41
MuonPathAnalyzerInChamber::finish
void finish() override
Definition: MuonPathAnalyzerInChamber.cc:118
MuonPathAnalyzerInChamber::chiSquareThreshold_
float chiSquareThreshold_
Definition: MuonPathAnalyzerInChamber.h:80
MuonPathAnalyzerInChamber::minHits4Fit_
short minHits4Fit_
Definition: MuonPathAnalyzerInChamber.h:81
MuonPathAnalyzerInChamber::dtGeo_
const DTGeometry * dtGeo_
Definition: MuonPathAnalyzerInChamber.h:51
MuonPathAnalyzerInChamber::debug_
bool debug_
Definition: MuonPathAnalyzerInChamber.h:75
MuonPathAnalyzerInChamber::run
void run(edm::Event &iEvent, const edm::EventSetup &iEventSetup, MuonPathPtrs &inMpath, std::vector< cmsdt::metaPrimitive > &metaPrimitives) override
Definition: MuonPathAnalyzerInChamber.h:27
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MuonPathPtrs
std::vector< MuonPathPtr > MuonPathPtrs
Definition: MuonPath.h:128
MuonPathAnalyzerInChamber::setLateralitiesInMP
void setLateralitiesInMP(MuonPathPtr &mpath, TLateralities lat)
Definition: MuonPathAnalyzerInChamber.cc:407
edm::FileInPath
Definition: FileInPath.h:61
MuonPathAnalyzerInChamber::totalNumValLateralities_
int totalNumValLateralities_
Definition: MuonPathAnalyzerInChamber.h:71
MuonPathAnalyzerInChamber::splitPathPerSL_
bool splitPathPerSL_
Definition: MuonPathAnalyzerInChamber.h:83
MuonPathAnalyzerInChamber::hasPosRF
bool hasPosRF(int wh, int sec)
Definition: MuonPathAnalyzerInChamber.h:51
MuonPathAnalyzerInChamber::initialise
void initialise(const edm::EventSetup &iEventSetup) override
Definition: MuonPathAnalyzerInChamber.cc:55
MuonPathAnalyzerInChamber::setMinHits4Fit
void setMinHits4Fit(int h)
Definition: MuonPathAnalyzerInChamber.h:40
MuonPathAnalyzerInChamber::evaluateQuality
void evaluateQuality(MuonPathPtr &mPath)
Definition: MuonPathAnalyzerInChamber.cc:717
MuonPathAnalyzerInChamber::shift_filename_
edm::FileInPath shift_filename_
Definition: MuonPathAnalyzerInChamber.h:77
MuonPathAnalyzerInChamber::setCellLayout
void setCellLayout(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:316
MuonPathAnalyzerInChamber::setBxTolerance
void setBxTolerance(int t)
Definition: MuonPathAnalyzerInChamber.h:39
cmsdt::MP_QUALITY
MP_QUALITY
Definition: constants.h:42
MuonPathAnalyzerInChamber::minHits4Fit
int minHits4Fit(void)
Definition: MuonPathAnalyzerInChamber.h:48
h
MuonPathAnalyzerInChamber::bxTolerance
int bxTolerance(void)
Definition: MuonPathAnalyzerInChamber.h:47
MuonPathAnalyzerInChamber::shiftinfo_
std::map< int, float > shiftinfo_
Definition: MuonPathAnalyzerInChamber.h:58
MuonPathAnalyzerInChamber::cellLayout_
int cellLayout_[NLayers]
Definition: MuonPathAnalyzerInChamber.h:82
edm::ParameterSet
Definition: ParameterSet.h:47
MuonPathAnalyzerInChamber::minQuality_
cmsdt::MP_QUALITY minQuality_
Definition: MuonPathAnalyzerInChamber.h:79
MuonPathAnalyzerInChamber::globalcoordsobtainer_
std::shared_ptr< GlobalCoordsObtainer > globalcoordsobtainer_
Definition: MuonPathAnalyzerInChamber.h:86
MuonPathAnalyzerInChamber
Definition: MuonPathAnalyzerInChamber.h:17
MuonPathAnalyzerInChamber::lateralities_
std::vector< TLateralities > lateralities_
Definition: MuonPathAnalyzerInChamber.h:72
iEvent
int iEvent
Definition: GenABIO.cc:224
MuonPathAnalyzerInChamber::setMinimumQuality
void setMinimumQuality(cmsdt::MP_QUALITY q)
Definition: MuonPathAnalyzerInChamber.h:42
MuonPathAnalyzerInChamber::bxTolerance_
int bxTolerance_
Definition: MuonPathAnalyzerInChamber.h:78
MuonPathAnalyzerInChamber::~MuonPathAnalyzerInChamber
~MuonPathAnalyzerInChamber() override
Definition: MuonPathAnalyzerInChamber.cc:47
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
edm::EventSetup
Definition: EventSetup.h:58
MuonPathAnalyzer
Definition: MuonPathAnalyzer.h:38
MuonPathPtr
std::shared_ptr< MuonPath > MuonPathPtr
Definition: MuonPath.h:127
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:94
MuonPathAnalyzerInChamber::analyze
void analyze(MuonPathPtr &inMPath, MuonPathPtrs &outMPaths)
Definition: MuonPathAnalyzerInChamber.cc:126
cmsdt::LOWQ
Definition: constants.h:42
MuonPathAnalyzerInChamber::MuonPathAnalyzerInChamber
MuonPathAnalyzerInChamber(const edm::ParameterSet &pset, edm::ConsumesCollector &iC, std::shared_ptr< GlobalCoordsObtainer > &globalcoordsobtainer)
Definition: MuonPathAnalyzerInChamber.cc:11
MuonPathAnalyzer.h
MuonPathAnalyzerInChamber::calculateFitParameters
void calculateFitParameters(MuonPathPtr &mpath, TLateralities lat, int present_layer[NLayers], int &lat_added)
Definition: MuonPathAnalyzerInChamber.cc:463
MuonPathAnalyzerInChamber::setWirePosAndTimeInMP
void setWirePosAndTimeInMP(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:412
edm::Event
Definition: Event.h:73
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
MuonPathAnalyzerInChamber::minQuality
cmsdt::MP_QUALITY minQuality(void)
Definition: MuonPathAnalyzerInChamber.h:49
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MuonPathAnalyzerInChamber::dtGeomH
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomH
Definition: MuonPathAnalyzerInChamber.h:55
MuonPathAnalyzerInChamber::buildLateralities
void buildLateralities(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:337