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 
39 public:
42 
44  virtual ~DTEfficiencyTask();
45 
47  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
48 
49  // Operations
50  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
51 
52 protected:
53 
55  void dqmBeginRun(const edm::Run& , const edm::EventSetup&) override;
56 
57 // Book the histograms
58 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59 
60 private:
61 
63 
64  // Switch for verbosity
65  bool debug;
66 
67  // Lable of 4D segments in the event
69 
70  // Lable of 1D rechits in the event
72 
74 
75  // Fill a set of histograms for a given L
76  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
77  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
78 
79  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
80 
81 };
82 #endif
83 
84 
85 /* Local Variables: */
86 /* show-trailing-whitespace: t */
87 /* truncate-lines: t */
88 /* 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:1
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_
virtual ~DTEfficiencyTask()
Destructor.
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: event.py:1
Definition: Run.h:42
edm::ParameterSet parameters