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:
60 
61  // Switch for verbosity
62  bool debug;
63 
64  // Lable of 4D segments in the event
66 
67  // Lable of 1D rechits in the event
69 
71 
72  // Fill a set of histograms for a given L
73  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
74  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
75 
76  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
77 };
78 #endif
79 
80 /* Local Variables: */
81 /* show-trailing-whitespace: t */
82 /* truncate-lines: t */
83 /* End: */
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
const DTGeometry * dtGeom
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
const DTGeometry * muonGeom
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: event.py:1
Definition: Run.h:45
edm::ParameterSet parameters