CMS 3D CMS Logo

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