CMS 3D CMS Logo

DTSegmentAnalysisTask.h
Go to the documentation of this file.
1 
2 #ifndef DTSegmentAnalysisTask_H
3 #define DTSegmentAnalysisTask_H
4 
22 
25 
27 
28 //RecHit
30 
33 
34 #include <string>
35 #include <map>
36 #include <vector>
37 
38 class DTGeometry;
39 class DTStatusFlag;
40 
42 public:
45 
47  ~DTSegmentAnalysisTask() override;
48 
50  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
51 
52  // Operations
53  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
54 
55 protected:
56  // Book the histograms
57  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
58 
59 private:
60  // Switch for detailed analysis
62 
63  // Get the DT Geometry
66 
67  // Get the status Map
70 
71  // Label of 4D segments in the event
73 
74  // Get the map of noisy channels
76 
77  // book the histos
79  // Fill a set of histograms for a given chamber
80  void fillHistos(DTChamberId chamberId, int nHits, float chi2);
81 
82  // the histos
83  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
84  std::map<int, MonitorElement*> summaryHistos;
85 
86  int nevents;
87  // top folder for the histograms in DQMStore
89  // hlt DQM mode
90  bool hltDQMMode;
91  // max phi angle of reconstructed segments
92  double phiSegmCut;
93  // min # hits of segment used to validate a segment in WB+-2/SecX/MB1
94  int nhitsCut;
95 
97 };
98 #endif
99 
100 /* Local Variables: */
101 /* show-trailing-whitespace: t */
102 /* truncate-lines: t */
103 /* End: */
void fillHistos(DTChamberId chamberId, int nHits, float chi2)
const DTGeometry * dtGeom
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
edm::ESGetToken< DTStatusFlag, DTStatusFlagRcd > statusMapToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
~DTSegmentAnalysisTask() override
Destructor.
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chamberId)
const DTStatusFlag * statusMap
MonitorElement * nEventMonitor
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
std::map< int, MonitorElement * > summaryHistos
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
DTSegmentAnalysisTask(const edm::ParameterSet &pset)
Constructor.
Definition: event.py:1
Definition: Run.h:45