CMS 3D CMS Logo

DTEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTask_H
2 #define DTEfficiencyTask_H
3 
23 
27 
28 #include <string>
29 #include <map>
30 #include <vector>
31 
32 class DTGeometry;
33 
34 class DTEfficiencyTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
35 public:
38 
40  ~DTEfficiencyTask() override;
41 
43  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
44  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
45 
46  // Operations
47  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
48 
49 protected:
51  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
52 
53  // Book the histograms
54  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
55 
56 private:
61 
62  // Switch for verbosity
63  bool debug;
64 
65  // Lable of 4D segments in the event
67 
68  // Lable of 1D rechits in the event
70 
72 
73  // Fill a set of histograms for a given L
74  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
75  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
76 
77  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
78 };
79 #endif
80 
81 /* Local Variables: */
82 /* show-trailing-whitespace: t */
83 /* truncate-lines: t */
84 /* 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