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
DTNoiseCalibration::wireIdWithHisto_
std::vector< DTWireId > wireIdWithHisto_
Definition: DTNoiseCalibration.h:67
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTTtrig
Definition: DTTtrig.h:68
DTNoiseCalibration::defaultTtrig_
int defaultTtrig_
Definition: DTNoiseCalibration.h:64
ESHandle.h
DTNoiseCalibration::useAbsoluteRate_
bool useAbsoluteRate_
Definition: DTNoiseCalibration.h:57
DTNoiseCalibration::tTrigMap_
edm::ESHandle< DTTtrig > tTrigMap_
Definition: DTNoiseCalibration.h:78
edm::Run
Definition: Run.h:45
DTNoiseCalibration::triggerWidth_
double triggerWidth_
Definition: DTNoiseCalibration.h:54
DTNoiseCalibration::useTimeWindow_
bool useTimeWindow_
Definition: DTNoiseCalibration.h:53
DTNoiseCalibration::lumiMax_
unsigned int lumiMax_
Definition: DTNoiseCalibration.h:68
DTNoiseCalibration::dbLabel_
std::string dbLabel_
Definition: DTNoiseCalibration.h:65
DTNoiseCalibration::getSuperLayerName
std::string getSuperLayerName(const DTSuperLayerId &) const
Definition: DTNoiseCalibration.cc:438
DTNoiseCalibration::maximumNoiseRate_
double maximumNoiseRate_
Definition: DTNoiseCalibration.h:56
EDAnalyzer.h
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DTWireId
Definition: DTWireId.h:12
DTNoiseCalibration::runBeginTime_
time_t runBeginTime_
Definition: DTNoiseCalibration.h:72
edm::ESHandle< DTGeometry >
DTLayerId
Definition: DTLayerId.h:12
DTNoiseCalibration::getLayerName
std::string getLayerName(const DTLayerId &) const
Definition: DTNoiseCalibration.cc:428
DTNoiseCalibration::theHistoOccupancyVsLumiMap_
std::map< DTWireId, TH1F * > theHistoOccupancyVsLumiMap_
Definition: DTNoiseCalibration.h:86
DTNoiseCalibration::DTNoiseCalibration
DTNoiseCalibration(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseCalibration.cc:42
edm::ParameterSet
Definition: ParameterSet.h:47
DTNoiseCalibration::digiLabel_
edm::InputTag digiLabel_
Definition: DTNoiseCalibration.h:52
DTNoiseCalibration::readDB_
bool readDB_
Definition: DTNoiseCalibration.h:63
DTNoiseCalibration::hTDCTriggerWidth_
TH1F * hTDCTriggerWidth_
Definition: DTNoiseCalibration.h:82
edm::EventSetup
Definition: EventSetup.h:58
DTNoiseCalibration::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
Definition: DTNoiseCalibration.cc:97
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
DTNoiseCalibration::theHistoOccupancyMap_
std::map< DTLayerId, TH1F * > theHistoOccupancyMap_
Definition: DTNoiseCalibration.h:84
DTNoiseCalibration::beginJob
void beginJob() override
Definition: DTNoiseCalibration.cc:87
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DTNoiseCalibration::~DTNoiseCalibration
~DTNoiseCalibration() override
Destructor.
Definition: DTNoiseCalibration.cc:419
DTNoiseCalibration::endJob
void endJob() override
Definition: DTNoiseCalibration.cc:327
DTNoiseCalibration::nevents_
int nevents_
Definition: DTNoiseCalibration.h:70
DTNoiseCalibration
Definition: DTNoiseCalibration.h:31
DTNoiseCalibration::timeWindowOffset_
int timeWindowOffset_
Definition: DTNoiseCalibration.h:55
DTNoiseCalibration::rootFile_
TFile * rootFile_
Definition: DTNoiseCalibration.h:80
DTNoiseCalibration::getChamberName
std::string getChamberName(const DTChamberId &) const
Definition: DTNoiseCalibration.cc:447
DTNoiseCalibration::getChannelName
std::string getChannelName(const DTWireId &) const
Definition: DTNoiseCalibration.cc:421
DTNoiseCalibration::chamberOccupancyVsLumiMap_
std::map< DTChamberId, TH1F * > chamberOccupancyVsLumiMap_
Definition: DTNoiseCalibration.h:88
DTNoiseCalibration::chamberOccupancyVsTimeMap_
std::map< DTChamberId, TH1F * > chamberOccupancyVsTimeMap_
Definition: DTNoiseCalibration.h:90
DTChamberId
Definition: DTChamberId.h:14
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
DTNoiseCalibration::dtGeom_
edm::ESHandle< DTGeometry > dtGeom_
Definition: DTNoiseCalibration.h:76
edm::InputTag
Definition: InputTag.h:15
DTNoiseCalibration::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: DTNoiseCalibration.cc:116
DTNoiseCalibration::runEndTime_
time_t runEndTime_
Definition: DTNoiseCalibration.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37