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  * $Date: 2010/01/05 10:14:39 $
8  * $Revision: 1.8 $
9  * \author M. Zanetti - INFN Padova
10  *
11 */
12 
20 
24 
25 #include <iostream>
26 #include <stdio.h>
27 #include <string>
28 #include <sstream>
29 #include <fstream>
30 #include <vector>
31 #include <map>
32 
33 class DTGeometry;
34 class DTLayerId;
35 class DTRangeT0;
36 
38 
39 public:
40 
43 
45  virtual ~DTTestPulsesTask();
46 
47 protected:
48 
50  void beginJob();
51 
53  void beginRun(const edm::Run& , const edm::EventSetup&);
54 
56  void bookHistos(const DTLayerId& dtLayer, std::string folder, std::string histoTag);
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c);
60 
61 
62 private:
63 
64  int nevents;
65 
67 
69 
71 
73 
74  std::pair <int, int> t0sPeakRange;
75 
76  // My monitor elements
77  std::map<int, MonitorElement*> testPulsesProfiles;
78  std::map<int, MonitorElement*> testPulsesOccupancies;
79  std::map<int, MonitorElement*> testPulsesTimeBoxes;
80 
81 
82 };
83 
84 #endif
std::map< int, MonitorElement * > testPulsesOccupancies
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::ESHandle< DTRangeT0 > t0RangeMap
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:33