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 
25 
26 #include <iostream>
27 #include <stdio.h>
28 #include <string>
29 #include <sstream>
30 #include <fstream>
31 #include <vector>
32 #include <map>
33 
34 class DTGeometry;
35 class DTLayerId;
36 class DTRangeT0;
37 
39 
40 public:
41 
44 
46  virtual ~DTTestPulsesTask();
47 
48 protected:
49 
51  void beginJob();
52 
54  void beginRun(const edm::Run& , const edm::EventSetup&);
55 
57  void bookHistos(const DTLayerId& dtLayer, std::string folder, std::string histoTag);
58 
60  void analyze(const edm::Event& e, const edm::EventSetup& c);
61 
62 
63 private:
64 
65  int nevents;
66 
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
void beginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
std::pair< int, int > t0sPeakRange
void bookHistos(const DTLayerId &dtLayer, std::string folder, std::string histoTag)
Book the ME.
DTTestPulsesTask(const edm::ParameterSet &ps)
Constructor.
std::map< int, MonitorElement * > testPulsesTimeBoxes
virtual ~DTTestPulsesTask()
Destructor.
void beginJob()
BeginJob.
std::map< int, MonitorElement * > testPulsesProfiles
Definition: Run.h:41