CMS 3D CMS Logo

DTResolutionAnalysisTask.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTask_H
2 #define DTResolutionAnalysisTask_H
3 
17 
22 
25 
26 #include <string>
27 #include <map>
28 #include <vector>
29 
30 class DTGeometry;
31 
32 class DTResolutionAnalysisTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
33 public:
36 
38  ~DTResolutionAnalysisTask() override;
39 
41  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
42 
44  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) 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 private:
56 
59 
60  u_int32_t thePhiHitsCut;
61  u_int32_t theZHitsCut;
62 
63  // Lable of 4D segments in the event
65 
66  // Book a set of histograms for a give chamber
67  void bookHistos(DQMStore::IBooker& ibooker, DTSuperLayerId slId);
68  // Fill a set of histograms for a give chamber
69  void fillHistos(DTSuperLayerId slId, float distExtr, float residual);
70 
71  std::map<DTSuperLayerId, std::vector<MonitorElement*> > histosPerSL;
72 
73  // top folder for the histograms in DQMStore
75 };
76 #endif
77 
78 /* Local Variables: */
79 /* show-trailing-whitespace: t */
80 /* truncate-lines: t */
81 /* End: */
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
~DTResolutionAnalysisTask() override
Destructor.
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
std::map< DTSuperLayerId, std::vector< MonitorElement * > > histosPerSL
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
BookHistograms.
void bookHistos(DQMStore::IBooker &ibooker, DTSuperLayerId slId)
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
void fillHistos(DTSuperLayerId slId, float distExtr, float residual)
DTResolutionAnalysisTask(const edm::ParameterSet &pset)
Constructor.
edm::ESHandle< DTGeometry > dtGeom
Definition: event.py:1
Definition: Run.h:45