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: 2011/08/16 11:05:23 $
8  * $Revision: 1.12 $
9  * \author G. Mila - INFN Torino
10  * A. Vilela Pereira - INFN Torino
11  *
12 */
13 
17 
18 #include <string>
19 #include <vector>
20 #include <map>
21 #include <ctime>
22 
23 class DTGeometry;
24 class DTChamberId;
25 class DTSuperLayerId;
26 class DTLayerId;
27 class DTWireId;
28 class DTTtrig;
29 class TFile;
30 class TH2F;
31 class TH1F;
32 
34 
35  public:
39  virtual ~DTNoiseCalibration();
40 
41  void beginJob();
42  void beginRun(const edm::Run& run, const edm::EventSetup& setup );
43  void analyze(const edm::Event& e, const edm::EventSetup& c);
44  void endJob();
45 
46 private:
47  std::string getChannelName(const DTWireId&) const;
48  // Get the name of the layer
49  std::string getLayerName(const DTLayerId&) const;
50  // Get the name of the superLayer
51  std::string getSuperLayerName(const DTSuperLayerId&) const;
52  // Get the name of the chamber
53  std::string getChamberName(const DTChamberId&) const;
54 
57  double triggerWidth_;
61 
62  /*bool fastAnalysis;
63  int wh;
64  int sect;*/
65 
66  bool readDB_;
68  std::string dbLabel_;
69 
70  std::vector<DTWireId> wireIdWithHisto_;
71  unsigned int lumiMax_;
72 
73  int nevents_;
74  //int counter;
75  time_t runBeginTime_;
76  time_t runEndTime_;
77 
78  // Get the DT Geometry
80  // tTrig map
82 
83  TFile* rootFile_;
84  // TDC digi distribution
86  // Map of the occupancy histograms by layer
87  std::map<DTLayerId, TH1F*> theHistoOccupancyMap_;
88  // Map of occupancy by lumi by wire
89  std::map<DTWireId, TH1F*> theHistoOccupancyVsLumiMap_;
90  // Map of occupancy by lumi by chamber
91  std::map<DTChamberId, TH1F*> chamberOccupancyVsLumiMap_;
92  // Map of occupancy by time by chamber
93  std::map<DTChamberId, TH1F*> chamberOccupancyVsTimeMap_;
94  // Map of the histograms with the number of events per evt per wire
95  //std::map<DTLayerId, TH2F*> theHistoEvtPerWireMap_;
96  // Map of skipped histograms
97  //std::map<DTLayerId, int> skippedPlot;
98 };
99 #endif
edm::ESHandle< DTGeometry > dtGeom_
edm::InputTag digiLabel_
std::vector< DTWireId > wireIdWithHisto_
std::map< DTLayerId, TH1F * > theHistoOccupancyMap_
std::string getChannelName(const DTWireId &) const
std::map< DTChamberId, TH1F * > chamberOccupancyVsTimeMap_
std::string getChamberName(const DTChamberId &) const
std::map< DTChamberId, TH1F * > chamberOccupancyVsLumiMap_
std::string getLayerName(const DTLayerId &) const
std::map< DTWireId, TH1F * > theHistoOccupancyVsLumiMap_
DTNoiseCalibration(const edm::ParameterSet &ps)
Constructor.
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
virtual ~DTNoiseCalibration()
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::string getSuperLayerName(const DTSuperLayerId &) const
edm::ESHandle< DTTtrig > tTrigMap_
Definition: Run.h:33