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
21  ~MuonPathAnalyzerInChamber() override;
22 
23  // Main methods
24  void initialise(const edm::EventSetup &iEventSetup) override;
26  const edm::EventSetup &iEventSetup,
27  MuonPathPtrs &inMpath,
28  std::vector<cmsdt::metaPrimitive> &metaPrimitives) override {}
29  void run(edm::Event &iEvent,
30  const edm::EventSetup &iEventSetup,
31  MuonPathPtrs &inMpath,
32  MuonPathPtrs &outMPath) override;
33 
34  void finish() override;
35 
36  // Other public methods
37  void setBxTolerance(int t) { bxTolerance_ = t; };
38  void setMinHits4Fit(int h) { minHits4Fit_ = h; };
39  void setChiSquareThreshold(float ch2Thr) { chiSquareThreshold_ = ch2Thr; };
42  minQuality_ = q;
43  };
44 
45  int bxTolerance(void) { return bxTolerance_; };
46  int minHits4Fit(void) { return minHits4Fit_; };
48 
49  bool hasPosRF(int wh, int sec) { return wh > 0 || (wh == 0 && sec % 4 > 1); };
50 
51  // Public attributes
52  DTGeometry const *dtGeo_;
54 
55  //shift
56  std::map<int, float> shiftinfo_;
57 
58 private:
59  // Private methods
60  void analyze(MuonPathPtr &inMPath, MuonPathPtrs &outMPaths);
61 
62  void setCellLayout(MuonPathPtr &mpath);
63  void buildLateralities(MuonPathPtr &mpath);
64  void setLateralitiesInMP(MuonPathPtr &mpath, TLateralities lat);
66  void calculateFitParameters(MuonPathPtr &mpath, TLateralities lat, int present_layer[NLayers]);
67 
68  void evaluateQuality(MuonPathPtr &mPath);
70  std::vector<TLateralities> lateralities_;
71  std::vector<cmsdt::LATQ_TYPE> latQuality_;
72 
73  bool debug_;
74  double chi2Th_;
79  short minHits4Fit_;
80  int cellLayout_[NLayers];
81 };
82 
83 #endif
MuonPathAnalyzerInChamber::latQuality_
std::vector< cmsdt::LATQ_TYPE > latQuality_
Definition: MuonPathAnalyzerInChamber.h:71
DTGeometry
Definition: DTGeometry.h:28
MuonPathAnalyzerInChamber::MuonPathAnalyzerInChamber
MuonPathAnalyzerInChamber(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: MuonPathAnalyzerInChamber.cc:11
MuonPathAnalyzerInChamber::chi2Th_
double chi2Th_
Definition: MuonPathAnalyzerInChamber.h:74
MuonPathAnalyzerInChamber::setChiSquareThreshold
void setChiSquareThreshold(float ch2Thr)
Definition: MuonPathAnalyzerInChamber.h:39
MuonPathAnalyzerInChamber::calculateFitParameters
void calculateFitParameters(MuonPathPtr &mpath, TLateralities lat, int present_layer[NLayers])
Definition: MuonPathAnalyzerInChamber.cc:336
MuonPathAnalyzerInChamber::finish
void finish() override
Definition: MuonPathAnalyzerInChamber.cc:72
MuonPathAnalyzerInChamber::chiSquareThreshold_
float chiSquareThreshold_
Definition: MuonPathAnalyzerInChamber.h:78
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
MuonPathAnalyzerInChamber::minHits4Fit_
short minHits4Fit_
Definition: MuonPathAnalyzerInChamber.h:79
MuonPathAnalyzerInChamber::dtGeo_
const DTGeometry * dtGeo_
Definition: MuonPathAnalyzerInChamber.h:49
MuonPathAnalyzerInChamber::debug_
bool debug_
Definition: MuonPathAnalyzerInChamber.h:73
data-class-funcs.q
q
Definition: data-class-funcs.py:169
MuonPathAnalyzerInChamber::run
void run(edm::Event &iEvent, const edm::EventSetup &iEventSetup, MuonPathPtrs &inMpath, std::vector< cmsdt::metaPrimitive > &metaPrimitives) override
Definition: MuonPathAnalyzerInChamber.h:25
MuonPathPtrs
std::vector< MuonPathPtr > MuonPathPtrs
Definition: MuonPath.h:122
MuonPathAnalyzerInChamber::setLateralitiesInMP
void setLateralitiesInMP(MuonPathPtr &mpath, TLateralities lat)
Definition: MuonPathAnalyzerInChamber.cc:279
cmsdt::LOWQGHOST
Definition: constants.h:41
edm::FileInPath
Definition: FileInPath.h:64
MuonPathAnalyzerInChamber::totalNumValLateralities_
int totalNumValLateralities_
Definition: MuonPathAnalyzerInChamber.h:69
MuonPathAnalyzerInChamber::hasPosRF
bool hasPosRF(int wh, int sec)
Definition: MuonPathAnalyzerInChamber.h:49
MuonPathAnalyzerInChamber::initialise
void initialise(const edm::EventSetup &iEventSetup) override
Definition: MuonPathAnalyzerInChamber.cc:51
MuonPathAnalyzerInChamber::setMinHits4Fit
void setMinHits4Fit(int h)
Definition: MuonPathAnalyzerInChamber.h:38
MuonPathAnalyzerInChamber::evaluateQuality
void evaluateQuality(MuonPathPtr &mPath)
Definition: MuonPathAnalyzerInChamber.cc:529
MuonPathAnalyzerInChamber::shift_filename_
edm::FileInPath shift_filename_
Definition: MuonPathAnalyzerInChamber.h:75
MuonPathAnalyzerInChamber::setCellLayout
void setCellLayout(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:189
MuonPathAnalyzerInChamber::setBxTolerance
void setBxTolerance(int t)
Definition: MuonPathAnalyzerInChamber.h:37
cmsdt::MP_QUALITY
MP_QUALITY
Definition: constants.h:41
MuonPathAnalyzerInChamber::minHits4Fit
int minHits4Fit(void)
Definition: MuonPathAnalyzerInChamber.h:46
h
MuonPathAnalyzerInChamber::bxTolerance
int bxTolerance(void)
Definition: MuonPathAnalyzerInChamber.h:45
OrderedSet.t
t
Definition: OrderedSet.py:90
MuonPathAnalyzerInChamber::shiftinfo_
std::map< int, float > shiftinfo_
Definition: MuonPathAnalyzerInChamber.h:56
MuonPathAnalyzerInChamber::cellLayout_
int cellLayout_[NLayers]
Definition: MuonPathAnalyzerInChamber.h:80
edm::ParameterSet
Definition: ParameterSet.h:36
MuonPathAnalyzerInChamber::minQuality_
cmsdt::MP_QUALITY minQuality_
Definition: MuonPathAnalyzerInChamber.h:77
MuonPathAnalyzerInChamber
Definition: MuonPathAnalyzerInChamber.h:17
MuonPathAnalyzerInChamber::lateralities_
std::vector< TLateralities > lateralities_
Definition: MuonPathAnalyzerInChamber.h:70
iEvent
int iEvent
Definition: GenABIO.cc:224
MuonPathAnalyzerInChamber::setMinimumQuality
void setMinimumQuality(cmsdt::MP_QUALITY q)
Definition: MuonPathAnalyzerInChamber.h:40
MuonPathAnalyzerInChamber::bxTolerance_
int bxTolerance_
Definition: MuonPathAnalyzerInChamber.h:76
MuonPathAnalyzerInChamber::~MuonPathAnalyzerInChamber
~MuonPathAnalyzerInChamber() override
Definition: MuonPathAnalyzerInChamber.cc:43
edm::EventSetup
Definition: EventSetup.h:57
MuonPathAnalyzer
Definition: MuonPathAnalyzer.h:37
MuonPathPtr
std::shared_ptr< MuonPath > MuonPathPtr
Definition: MuonPath.h:121
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:87
MuonPathAnalyzerInChamber::analyze
void analyze(MuonPathPtr &inMPath, MuonPathPtrs &outMPaths)
Definition: MuonPathAnalyzerInChamber.cc:80
MuonPathAnalyzer.h
MuonPathAnalyzerInChamber::setWirePosAndTimeInMP
void setWirePosAndTimeInMP(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:286
edm::Event
Definition: Event.h:73
MuonPathAnalyzerInChamber::minQuality
cmsdt::MP_QUALITY minQuality(void)
Definition: MuonPathAnalyzerInChamber.h:47
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MuonPathAnalyzerInChamber::dtGeomH
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomH
Definition: MuonPathAnalyzerInChamber.h:53
MuonPathAnalyzerInChamber::buildLateralities
void buildLateralities(MuonPathPtr &mpath)
Definition: MuonPathAnalyzerInChamber.cc:210