CMS 3D CMS Logo

DTResolutionTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionTest_H
2 #define DTResolutionTest_H
3 
23 
26 
28 
29 #include <memory>
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <vector>
34 #include <map>
35 
36 class DTGeometry;
37 class DTChamberId;
38 class DTSuperLayerId;
39 
41 public:
44 
46  ~DTResolutionTest() override;
47 
48 protected:
51 
53  void bookHistos(DQMStore::IBooker&, const DTChamberId& ch);
54 
56  void bookHistos(DQMStore::IBooker&, int wh);
57 
61 
65  edm::LuminosityBlock const&,
66  edm::EventSetup const&) override;
67 
68 private:
69  int nevents;
70  unsigned int nLumiSegs;
72  int run;
74 
76 
79 
80  // histograms: < detRawID, Histogram >
81  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
82  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
83  std::map<std::pair<int, int>, MonitorElement*> SlopeHistos;
84  std::map<std::string, MonitorElement*> MeanHistosSetRange;
85  std::map<std::string, MonitorElement*> SigmaHistosSetRange;
86  std::map<std::string, MonitorElement*> SlopeHistosSetRange;
87  std::map<std::string, MonitorElement*> MeanHistosSetRange2D;
88  std::map<std::string, MonitorElement*> SigmaHistosSetRange2D;
89  std::map<std::string, MonitorElement*> SlopeHistosSetRange2D;
90 
91  // wheel summary histograms
92  std::map<int, MonitorElement*> wheelMeanHistos;
93  std::map<int, MonitorElement*> wheelSigmaHistos;
94  std::map<int, MonitorElement*> wheelSlopeHistos;
95 
96  // cms summary histograms
97  std::map<std::pair<int, int>, int> cmsMeanHistos;
98  std::map<std::pair<int, int>, bool> MeanFilled;
99  std::map<std::pair<int, int>, int> cmsSigmaHistos;
100  std::map<std::pair<int, int>, bool> SigmaFilled;
101  std::map<std::pair<int, int>, int> cmsSlopeHistos;
102  std::map<std::pair<int, int>, bool> SlopeFilled;
103 
104  // Compute the station from the bin number of mean and sigma histos
105  int stationFromBin(int bin) const;
106  // Compute the sl from the bin number of mean and sigma histos
107  int slFromBin(int bin) const;
108 };
109 
110 #endif
DTResolutionTest::MeanHistosSetRange2D
std::map< std::string, MonitorElement * > MeanHistosSetRange2D
Definition: DTResolutionTest.h:87
DQMEDHarvester.h
DTResolutionTest::bookHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &ch)
book the new ME
Definition: DTResolutionTest.cc:454
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
Handle.h
DTResolutionTest::getMEName2D
std::string getMEName2D(const DTSuperLayerId &slID)
Definition: DTResolutionTest.cc:425
DTResolutionTest
Definition: DTResolutionTest.h:40
DTResolutionTest::prescaleFactor
int prescaleFactor
Definition: DTResolutionTest.h:71
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
LuminosityBlock.h
DTResolutionTest::SlopeHistosSetRange2D
std::map< std::string, MonitorElement * > SlopeHistosSetRange2D
Definition: DTResolutionTest.h:89
DTResolutionTest::cmsSlopeHistos
std::map< std::pair< int, int >, int > cmsSlopeHistos
Definition: DTResolutionTest.h:101
DTResolutionTest::SigmaHistosSetRange
std::map< std::string, MonitorElement * > SigmaHistosSetRange
Definition: DTResolutionTest.h:85
DTResolutionTest::wheelMeanHistos
std::map< int, MonitorElement * > wheelMeanHistos
Definition: DTResolutionTest.h:92
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
DTResolutionTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
Definition: DTResolutionTest.cc:60
DTResolutionTest::SlopeFilled
std::map< std::pair< int, int >, bool > SlopeFilled
Definition: DTResolutionTest.h:102
MakerMacros.h
DTResolutionTest::SlopeHistosSetRange
std::map< std::string, MonitorElement * > SlopeHistosSetRange
Definition: DTResolutionTest.h:86
DTResolutionTest::wheelSlopeHistos
std::map< int, MonitorElement * > wheelSlopeHistos
Definition: DTResolutionTest.h:94
DTResolutionTest::wheelSigmaHistos
std::map< int, MonitorElement * > wheelSigmaHistos
Definition: DTResolutionTest.h:93
DTResolutionTest::SigmaFilled
std::map< std::pair< int, int >, bool > SigmaFilled
Definition: DTResolutionTest.h:100
Service.h
edm::ESHandle< DTGeometry >
DTResolutionTest::DTResolutionTest
DTResolutionTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTResolutionTest.cc:39
DTResolutionTest::cmsMeanHistos
std::map< std::pair< int, int >, int > cmsMeanHistos
Definition: DTResolutionTest.h:97
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
DTResolutionTest::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTResolutionTest.h:78
DTResolutionTest::nevents
int nevents
Definition: DTResolutionTest.h:69
DTResolutionTest::~DTResolutionTest
~DTResolutionTest() override
Destructor.
Definition: DTResolutionTest.cc:56
DTResolutionTest::MeanHistos
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
Definition: DTResolutionTest.h:81
DTResolutionTest::bookingdone
bool bookingdone
Definition: DTResolutionTest.h:75
DTResolutionTest::run
int run
Definition: DTResolutionTest.h:72
edm::EventSetup
Definition: EventSetup.h:57
DTResolutionTest::parameters
edm::ParameterSet parameters
Definition: DTResolutionTest.h:77
DTResolutionTest::MeanHistosSetRange
std::map< std::string, MonitorElement * > MeanHistosSetRange
Definition: DTResolutionTest.h:84
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTResolutionTest::getMEName
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
Definition: DTResolutionTest.cc:396
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTResolutionTest::percentual
int percentual
Definition: DTResolutionTest.h:73
DTResolutionTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
Definition: DTResolutionTest.cc:385
DTResolutionTest::SigmaHistosSetRange2D
std::map< std::string, MonitorElement * > SigmaHistosSetRange2D
Definition: DTResolutionTest.h:88
DTResolutionTest::MeanFilled
std::map< std::pair< int, int >, bool > MeanFilled
Definition: DTResolutionTest.h:98
DTResolutionTest::stationFromBin
int stationFromBin(int bin) const
Definition: DTResolutionTest.cc:752
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
DTResolutionTest::SigmaHistos
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
Definition: DTResolutionTest.h:82
DTResolutionTest::SlopeHistos
std::map< std::pair< int, int >, MonitorElement * > SlopeHistos
Definition: DTResolutionTest.h:83
DTResolutionTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTResolutionTest.h:70
DTResolutionTest::slFromBin
int slFromBin(int bin) const
Definition: DTResolutionTest.cc:754
DTResolutionTest::cmsSigmaHistos
std::map< std::pair< int, int >, int > cmsSigmaHistos
Definition: DTResolutionTest.h:99