CMS 3D CMS Logo

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