CMS 3D CMS Logo

DTResolutionAnalysisTask.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTask_H
2 #define DTResolutionAnalysisTask_H
3 
17 
22 
24 
25 
26 #include <string>
27 #include <map>
28 #include <vector>
29 
30 class DQMStore;
31 class MonitorElement;
32 class DTGeometry;
33 
34 class DTResolutionAnalysisTask: public one::DQMEDAnalyzer<edm::one::WatchLuminosityBlocks> {
35 public:
38 
40  ~DTResolutionAnalysisTask() override;
41 
43  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
44 
46  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
47 
49  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
50  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
51 
52  // Operations
53  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
54 
55 
56 protected:
57 
58 private:
59 
61 
64 
65  u_int32_t thePhiHitsCut;
66  u_int32_t theZHitsCut;
67 
68  // Lable of 4D segments in the event
70 
71  // Book a set of histograms for a give chamber
72  void bookHistos(DQMStore::IBooker & ibooker, DTSuperLayerId slId);
73  // Fill a set of histograms for a give chamber
74  void fillHistos(DTSuperLayerId slId,
75  float distExtr,
76  float residual);
77 
78  std::map<DTSuperLayerId, std::vector<MonitorElement*> > histosPerSL;
79 
80  // top folder for the histograms in DQMStore
82 
83 };
84 #endif
85 
86 
87 /* Local Variables: */
88 /* show-trailing-whitespace: t */
89 /* truncate-lines: t */
90 /* 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
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
~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