CMS 3D CMS Logo

DTEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTask_H
2 #define DTEfficiencyTask_H
3 
22 
26 
27 #include <string>
28 #include <map>
29 #include <vector>
30 
31 class DTGeometry;
32 
33 class DTEfficiencyTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
34 public:
37 
39  ~DTEfficiencyTask() override;
40 
42  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
43  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
44 
45  // Operations
46  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
47 
48 protected:
50  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
51 
52  // Book the histograms
53  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
54 
55 private:
57 
58  // Switch for verbosity
59  bool debug;
60 
61  // Lable of 4D segments in the event
63 
64  // Lable of 1D rechits in the event
66 
68 
69  // Fill a set of histograms for a given L
70  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
71  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
72 
73  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
74 };
75 #endif
76 
77 /* Local Variables: */
78 /* show-trailing-whitespace: t */
79 /* truncate-lines: t */
80 /* End: */
DTGeometry
Definition: DTGeometry.h:28
Handle.h
DTEfficiencyTask::DTEfficiencyTask
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: DTEfficiencyTask.cc:33
DTEfficiencyTask::fillHistos
void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire)
Definition: DTEfficiencyTask.cc:408
ESHandle.h
DTRecHitCollection.h
DTEfficiencyTask
Definition: DTEfficiencyTask.h:33
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< DTRecSegment4DCollection >
LuminosityBlock.h
DTEfficiencyTask::recHitToken_
edm::EDGetTokenT< DTRecHitCollection > recHitToken_
Definition: DTEfficiencyTask.h:65
DTEfficiencyTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
Definition: DTEfficiencyTask.cc:131
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
DTEfficiencyTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTEfficiencyTask.h:62
EDAnalyzer.h
DTEfficiencyTask::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTEfficiencyTask.cc:143
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DQMOneEDAnalyzer.h
DTEfficiencyTask::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
Definition: DTEfficiencyTask.h:43
Service.h
edm::ESHandle< DTGeometry >
DTLayerId
Definition: DTLayerId.h:12
DTEfficiencyTask::parameters
edm::ParameterSet parameters
Definition: DTEfficiencyTask.h:67
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:57
DTEfficiencyTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTEfficiencyTask.cc:45
DTEfficiencyTask::debug
bool debug
Definition: DTEfficiencyTask.h:59
DTEfficiencyTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTEfficiencyTask.cc:50
Frameworkfwd.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
DTEfficiencyTask::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTEfficiencyTask.h:56
DTEfficiencyTask::histosPerL
std::map< DTLayerId, std::vector< MonitorElement * > > histosPerL
Definition: DTEfficiencyTask.h:73
DTEfficiencyTask::~DTEfficiencyTask
~DTEfficiencyTask() override
Destructor.
Definition: DTEfficiencyTask.cc:43
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h