CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  * \author G. Mila - INFN Torino
8  * A. Vilela Pereira - INFN Torino
9  *
10 */
11 
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 public:
38  ~DTNoiseCalibration() override;
39 
40  void beginJob() override;
41  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
42  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
43  void endJob() override;
44 
45 private:
46  std::string getChannelName(const DTWireId&) const;
47  // Get the name of the layer
48  std::string getLayerName(const DTLayerId&) const;
49  // Get the name of the superLayer
51  // Get the name of the chamber
53 
56  double triggerWidth_;
60 
61  /*bool fastAnalysis;
62  int wh;
63  int sect;*/
64 
65  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
79 
80  // tTrig map
83 
84  TFile* rootFile_;
85  // TDC digi distribution
87  // Map of the occupancy histograms by layer
88  std::map<DTLayerId, TH1F*> theHistoOccupancyMap_;
89  // Map of occupancy by lumi by wire
90  std::map<DTWireId, TH1F*> theHistoOccupancyVsLumiMap_;
91  // Map of occupancy by lumi by chamber
92  std::map<DTChamberId, TH1F*> chamberOccupancyVsLumiMap_;
93  // Map of occupancy by time by chamber
94  std::map<DTChamberId, TH1F*> chamberOccupancyVsTimeMap_;
95  // Map of the histograms with the number of events per evt per wire
96  //std::map<DTLayerId, TH2F*> theHistoEvtPerWireMap_;
97  // Map of skipped histograms
98  //std::map<DTLayerId, int> skippedPlot;
99 };
100 #endif
const edm::EventSetup & c
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.
const edm::ESGetToken< DTTtrig, DTTtrigRcd > ttrigToken_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
void endJob() override
std::string getSuperLayerName(const DTSuperLayerId &) const
edm::ESHandle< DTTtrig > tTrigMap_
Definition: Run.h:45