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 
33  public:
37  ~DTNoiseCalibration() override;
38 
39  void beginJob() override;
40  void beginRun(const edm::Run& run, const edm::EventSetup& setup ) override;
41  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
42  void endJob() override;
43 
44 private:
45  std::string getChannelName(const DTWireId&) const;
46  // Get the name of the layer
47  std::string getLayerName(const DTLayerId&) const;
48  // Get the name of the superLayer
50  // Get the name of the chamber
52 
55  double triggerWidth_;
59 
60  /*bool fastAnalysis;
61  int wh;
62  int sect;*/
63 
64  bool readDB_;
67 
68  std::vector<DTWireId> wireIdWithHisto_;
69  unsigned int lumiMax_;
70 
71  int nevents_;
72  //int counter;
73  time_t runBeginTime_;
74  time_t runEndTime_;
75 
76  // Get the DT Geometry
78  // tTrig map
80 
81  TFile* rootFile_;
82  // TDC digi distribution
84  // Map of the occupancy histograms by layer
85  std::map<DTLayerId, TH1F*> theHistoOccupancyMap_;
86  // Map of occupancy by lumi by wire
87  std::map<DTWireId, TH1F*> theHistoOccupancyVsLumiMap_;
88  // Map of occupancy by lumi by chamber
89  std::map<DTChamberId, TH1F*> chamberOccupancyVsLumiMap_;
90  // Map of occupancy by time by chamber
91  std::map<DTChamberId, TH1F*> chamberOccupancyVsTimeMap_;
92  // Map of the histograms with the number of events per evt per wire
93  //std::map<DTLayerId, TH2F*> theHistoEvtPerWireMap_;
94  // Map of skipped histograms
95  //std::map<DTLayerId, int> skippedPlot;
96 };
97 #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_
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
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