CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTNoiseCalibration.h
Go to the documentation of this file.
1 #ifndef DTNoiseCalibration_H
2 #define DTNoiseCalibration_H
3 
4 /*
5  * \file DTNoiseCalibration.h
6  *
7  * $Date: 2010/02/16 10:03:23 $
8  * $Revision: 1.8 $
9  * \author G. Mila - INFN Torino
10  *
11 */
12 
17 
18 #include <string>
19 #include <map>
20 #include <vector>
21 
22 namespace edm {
23  class Event;
24  class EventSetup;
25 }
26 
27 class DTGeometry;
28 class DTTtrig;
29 class TFile;
30 class TH2F;
31 class TH1F;
32 
34 
35  public:
36 
39 
41  virtual ~DTNoiseCalibration();
42 
43 virtual void beginRun(const edm::Run& run, const edm::EventSetup& setup );
44 
46  void analyze(const edm::Event& e, const edm::EventSetup& c);
47 
49  void endJob();
50 
51 
52 protected:
53 
54 private:
55 
56  bool debug;
57  int nevents;
58  int counter;
59 
62  float upperLimit;
63  bool cosmicRun;
65  int wh;
66  int sect;
67 
69  float tTrig;
70  float tTrigRMS;
71  float kFactor;
72 
73  double theOffset;
74 
75  std::string dbLabel;
76 
77  // The label used to retrieve digis from the event
78  std::string digiLabel;
79 
81 
82  // TDC digi distribution
84 
85  // Get the DT Geometry
87 
88  // Get the tTrigMap
90 
91  // The file which will contain the occupancy plot and the digi event plot
92  TFile *theFile;
93 
94  // Map of the histograms with the number of events per evt per wire
95  std::map<DTLayerId, TH2F*> theHistoEvtPerWireMap;
96 
97  // Map of the occupancy histograms by layer
98  std::map<DTLayerId, TH1F*> theHistoOccupancyMap;
99 
100  // Map of skipped histograms
101  std::map<DTLayerId, int> skippedPlot;
102 
104  std::string getLayerName(const DTLayerId& lId) const;
105 
107  std::string getSuperLayerName(const DTSuperLayerId& dtSLId) const;
108 };
109 #endif
edm::ParameterSet parameters
DTNoiseCalibration(const edm::ParameterSet &ps)
Constructor.
virtual void beginRun(const edm::Run &run, const edm::EventSetup &setup)
edm::ESHandle< DTGeometry > dtGeom
std::string getLayerName(const DTLayerId &lId) const
Get the name of the layer.
virtual ~DTNoiseCalibration()
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
float tTrig
tTrig from the DB
int TriggerWidth
variables to set by configuration file
std::string getSuperLayerName(const DTSuperLayerId &dtSLId) const
Get the name of the superLayer.
std::map< DTLayerId, TH2F * > theHistoEvtPerWireMap
edm::ESHandle< DTTtrig > tTrigMap
std::map< DTLayerId, int > skippedPlot
Definition: Run.h:31
std::map< DTLayerId, TH1F * > theHistoOccupancyMap