CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTestPulsesTask.h
Go to the documentation of this file.
1 #ifndef DTTestPulsesTask_H
2 #define DTTestPulsesTask_H
3 
4 /*
5  * \file DTTestPulsesTask.h
6  *
7  * \author M. Zanetti - INFN Padova
8  *
9 */
10 
18 
22 
24 
27 
28 #include <iostream>
29 #include <stdio.h>
30 #include <string>
31 #include <sstream>
32 #include <fstream>
33 #include <vector>
34 #include <map>
35 
36 class DTGeometry;
37 class DTLayerId;
38 class DTRangeT0;
39 
41 
42 public:
43 
46 
48  virtual ~DTTestPulsesTask();
49 
50 protected:
51 
53  void dqmBeginRun(const edm::Run& , const edm::EventSetup&);
54 
55  // Book the histograms
56  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
57 
59  void bookHistos(DQMStore::IBooker & ibooker, std::string folder, std::string histoTag);
60 
62  void analyze(const edm::Event& e, const edm::EventSetup& c);
63 
64 
65 private:
66 
67  int nevents;
68 
70 
73 
75  std::pair <int, int> t0sPeakRange;
76 
77  // My monitor elements
78  std::map<int, MonitorElement*> testPulsesProfiles;
79  std::map<int, MonitorElement*> testPulsesOccupancies;
80  std::map<int, MonitorElement*> testPulsesTimeBoxes;
81 
82 
83 };
84 
85 #endif
86 
87 /* Local Variables: */
88 /* show-trailing-whitespace: t */
89 /* truncate-lines: t */
90 /* End: */
std::map< int, MonitorElement * > testPulsesOccupancies
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::ESHandle< DTRangeT0 > t0RangeMap
edm::EDGetTokenT< DTDigiCollection > dtDigisToken_
edm::ESHandle< DTGeometry > muonGeom
edm::ParameterSet parameters
std::pair< int, int > t0sPeakRange
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DTTestPulsesTask(const edm::ParameterSet &ps)
Constructor.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
std::map< int, MonitorElement * > testPulsesTimeBoxes
virtual ~DTTestPulsesTask()
Destructor.
std::map< int, MonitorElement * > testPulsesProfiles
Definition: Run.h:41
void bookHistos(DQMStore::IBooker &ibooker, std::string folder, std::string histoTag)
Book the ME.