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: */
edm::ESHandle< DTGeometry > muonGeom
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
std::map< DTLayerId, std::vector< MonitorElement * > > histosPerL
void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire)
edm::EDGetTokenT< DTRecHitCollection > recHitToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
~DTEfficiencyTask() override
Destructor.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: event.py:1
Definition: Run.h:45
edm::ParameterSet parameters