CMS 3D CMS Logo

DTEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTask_H
2 #define DTEfficiencyTask_H
3 
4 
24 
29 
30 #include <string>
31 #include <map>
32 #include <vector>
33 
34 class DQMStore;
35 class MonitorElement;
36 class DTGeometry;
37 
38 class DTEfficiencyTask: public one::DQMEDAnalyzer<edm::one::WatchLuminosityBlocks> {
39 public:
42 
44  ~DTEfficiencyTask() override;
45 
47  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
48  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
49 
50  // Operations
51  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
52 
53 protected:
54 
56  void dqmBeginRun(const edm::Run& , const edm::EventSetup&) override;
57 
58 // Book the histograms
59 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
60 
61 private:
62 
64 
65  // Switch for verbosity
66  bool debug;
67 
68  // Lable of 4D segments in the event
70 
71  // Lable of 1D rechits in the event
73 
75 
76  // Fill a set of histograms for a given L
77  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
78  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
79 
80  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
81 
82 };
83 #endif
84 
85 
86 /* Local Variables: */
87 /* show-trailing-whitespace: t */
88 /* truncate-lines: t */
89 /* 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.
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
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