CMS 3D CMS Logo

DTResolutionTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionTest_H
2 #define DTResolutionTest_H
3 
24 
27 
29 
30 #include <memory>
31 #include <iostream>
32 #include <fstream>
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 class DTGeometry;
38 class DTChamberId;
39 class DTSuperLayerId;
40 
42 public:
45 
47  ~DTResolutionTest() override;
48 
49 protected:
52 
54  void bookHistos(DQMStore::IBooker&, const DTChamberId& ch);
55 
57  void bookHistos(DQMStore::IBooker&, int wh);
58 
62 
66  edm::LuminosityBlock const&,
67  edm::EventSetup const&) override;
68 
69 private:
70  int nevents;
71  unsigned int nLumiSegs;
73  int run;
75 
77 
81 
82  // histograms: < detRawID, Histogram >
83  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
84  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
85  std::map<std::pair<int, int>, MonitorElement*> SlopeHistos;
86  std::map<std::string, MonitorElement*> MeanHistosSetRange;
87  std::map<std::string, MonitorElement*> SigmaHistosSetRange;
88  std::map<std::string, MonitorElement*> SlopeHistosSetRange;
89  std::map<std::string, MonitorElement*> MeanHistosSetRange2D;
90  std::map<std::string, MonitorElement*> SigmaHistosSetRange2D;
91  std::map<std::string, MonitorElement*> SlopeHistosSetRange2D;
92 
93  // wheel summary histograms
94  std::map<int, MonitorElement*> wheelMeanHistos;
95  std::map<int, MonitorElement*> wheelSigmaHistos;
96  std::map<int, MonitorElement*> wheelSlopeHistos;
97 
98  // cms summary histograms
99  std::map<std::pair<int, int>, int> cmsMeanHistos;
100  std::map<std::pair<int, int>, bool> MeanFilled;
101  std::map<std::pair<int, int>, int> cmsSigmaHistos;
102  std::map<std::pair<int, int>, bool> SigmaFilled;
103  std::map<std::pair<int, int>, int> cmsSlopeHistos;
104  std::map<std::pair<int, int>, bool> SlopeFilled;
105 
106  // Compute the station from the bin number of mean and sigma histos
107  int stationFromBin(int bin) const;
108  // Compute the sl from the bin number of mean and sigma histos
109  int slFromBin(int bin) const;
110 };
111 
112 #endif
DTResolutionTest::MeanHistosSetRange2D
std::map< std::string, MonitorElement * > MeanHistosSetRange2D
Definition: DTResolutionTest.h:89
DQMEDHarvester.h
DTResolutionTest::bookHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &ch)
book the new ME
Definition: DTResolutionTest.cc:453
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
Handle.h
DTResolutionTest::getMEName2D
std::string getMEName2D(const DTSuperLayerId &slID)
Definition: DTResolutionTest.cc:424
DTResolutionTest
Definition: DTResolutionTest.h:41
DTResolutionTest::prescaleFactor
int prescaleFactor
Definition: DTResolutionTest.h:72
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
LuminosityBlock.h
DTResolutionTest::SlopeHistosSetRange2D
std::map< std::string, MonitorElement * > SlopeHistosSetRange2D
Definition: DTResolutionTest.h:91
DTResolutionTest::cmsSlopeHistos
std::map< std::pair< int, int >, int > cmsSlopeHistos
Definition: DTResolutionTest.h:103
DTResolutionTest::SigmaHistosSetRange
std::map< std::string, MonitorElement * > SigmaHistosSetRange
Definition: DTResolutionTest.h:87
DTResolutionTest::wheelMeanHistos
std::map< int, MonitorElement * > wheelMeanHistos
Definition: DTResolutionTest.h:94
DTResolutionTest::muonGeom
const DTGeometry * muonGeom
Definition: DTResolutionTest.h:80
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
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:104
MakerMacros.h
DTResolutionTest::SlopeHistosSetRange
std::map< std::string, MonitorElement * > SlopeHistosSetRange
Definition: DTResolutionTest.h:88
DTResolutionTest::wheelSlopeHistos
std::map< int, MonitorElement * > wheelSlopeHistos
Definition: DTResolutionTest.h:96
DTResolutionTest::wheelSigmaHistos
std::map< int, MonitorElement * > wheelSigmaHistos
Definition: DTResolutionTest.h:95
DTResolutionTest::SigmaFilled
std::map< std::pair< int, int >, bool > SigmaFilled
Definition: DTResolutionTest.h:102
Service.h
DTResolutionTest::DTResolutionTest
DTResolutionTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTResolutionTest.cc:38
DTResolutionTest::cmsMeanHistos
std::map< std::pair< int, int >, int > cmsMeanHistos
Definition: DTResolutionTest.h:99
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTResolutionTest::nevents
int nevents
Definition: DTResolutionTest.h:70
DTResolutionTest::~DTResolutionTest
~DTResolutionTest() override
Destructor.
Definition: DTResolutionTest.cc:56
DTResolutionTest::MeanHistos
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
Definition: DTResolutionTest.h:83
DTResolutionTest::bookingdone
bool bookingdone
Definition: DTResolutionTest.h:76
DTResolutionTest::run
int run
Definition: DTResolutionTest.h:73
edm::EventSetup
Definition: EventSetup.h:58
DTResolutionTest::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTResolutionTest.h:79
DTResolutionTest::parameters
edm::ParameterSet parameters
Definition: DTResolutionTest.h:78
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTResolutionTest::MeanHistosSetRange
std::map< std::string, MonitorElement * > MeanHistosSetRange
Definition: DTResolutionTest.h:86
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:395
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTResolutionTest::percentual
int percentual
Definition: DTResolutionTest.h:74
DTResolutionTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Endjob.
Definition: DTResolutionTest.cc:384
DTResolutionTest::SigmaHistosSetRange2D
std::map< std::string, MonitorElement * > SigmaHistosSetRange2D
Definition: DTResolutionTest.h:90
DTResolutionTest::MeanFilled
std::map< std::pair< int, int >, bool > MeanFilled
Definition: DTResolutionTest.h:100
DTResolutionTest::stationFromBin
int stationFromBin(int bin) const
Definition: DTResolutionTest.cc:751
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:84
MuonGeometryRecord.h
DTResolutionTest::SlopeHistos
std::map< std::pair< int, int >, MonitorElement * > SlopeHistos
Definition: DTResolutionTest.h:85
DTResolutionTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTResolutionTest.h:71
DTResolutionTest::slFromBin
int slFromBin(int bin) const
Definition: DTResolutionTest.cc:753
DTResolutionTest::cmsSigmaHistos
std::map< std::pair< int, int >, int > cmsSigmaHistos
Definition: DTResolutionTest.h:101