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