CMS 3D CMS Logo

DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
18 
23 
24 #include <string>
25 #include <map>
26 
27 class DTGeometry;
28 class DTSuperLayerId;
29 
31 public:
34 
36  ~DTResolutionAnalysisTest() override;
37 
39  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
40 
42  void bookHistos(DQMStore::IBooker&, int wh);
43  void bookHistos(DQMStore::IBooker&, int wh, int sect);
44 
47 
48 protected:
50 
51 private:
52  void resetMEs();
53 
54  int nevents;
55  unsigned int nLumiSegs;
57  int run;
59 
60  // permitted test ranges
65 
67 
70 
71  // Histograms for tests
72  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
73  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
74  // wheel summary histograms
75  std::map<int, MonitorElement*> wheelMeanHistos;
76  std::map<int, MonitorElement*> wheelSigmaHistos;
77 
78  std::map<int, MonitorElement*> meanDistr;
79  std::map<int, MonitorElement*> sigmaDistr;
80 
81  // wheel and ring mean histograms
82  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
83 
84  // Compute the station from the bin number of mean and sigma histos
85  int stationFromBin(int bin) const;
86  // Compute the sl from the bin number of mean and sigma histos
87  int slFromBin(int bin) const;
88 
89  double meanInRange(double mean) const;
90  double sigmaInRange(double sigma) const;
91 
93 
94  // top folder for the histograms in DQMStore
96 };
97 
98 #endif
DQMEDHarvester.h
DTResolutionAnalysisTest::minBadMeanValue
double minBadMeanValue
Definition: DTResolutionAnalysisTest.h:62
DTGeometry
Definition: DTGeometry.h:28
DTResolutionAnalysisTest::muonGeom
const DTGeometry * muonGeom
Definition: DTResolutionAnalysisTest.h:69
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTResolutionAnalysisTest::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
BeginRun.
Definition: DTResolutionAnalysisTest.cc:52
DTResolutionAnalysisTest::resetMEs
void resetMEs()
Definition: DTResolutionAnalysisTest.cc:469
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
ESHandle.h
DTResolutionAnalysisTest::globalResSummary
MonitorElement * globalResSummary
Definition: DTResolutionAnalysisTest.h:92
edm::Run
Definition: Run.h:45
DTResolutionAnalysisTest::nevents
int nevents
Definition: DTResolutionAnalysisTest.h:54
LuminosityBlock.h
DTResolutionAnalysisTest::run
int run
Definition: DTResolutionAnalysisTest.h:57
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTResolutionAnalysisTest::minBadSigmaValue
double minBadSigmaValue
Definition: DTResolutionAnalysisTest.h:64
DTResolutionAnalysisTest::sigmaInRange
double sigmaInRange(double sigma) const
Definition: DTResolutionAnalysisTest.cc:457
DTResolutionAnalysisTest::maxGoodSigmaValue
double maxGoodSigmaValue
Definition: DTResolutionAnalysisTest.h:63
DTResolutionAnalysisTest::prescaleFactor
int prescaleFactor
Definition: DTResolutionAnalysisTest.h:56
DTResolutionAnalysisTest::SigmaHistos
std::map< std::pair< int, int >, MonitorElement * > SigmaHistos
Definition: DTResolutionAnalysisTest.h:73
DTResolutionAnalysisTest::percentual
int percentual
Definition: DTResolutionAnalysisTest.h:58
DTResolutionAnalysisTest::bookHistos
void bookHistos(DQMStore::IBooker &)
Definition: DTResolutionAnalysisTest.cc:61
DTResolutionAnalysisTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTResolutionAnalysisTest.h:55
DTResolutionAnalysisTest::DTResolutionAnalysisTest
DTResolutionAnalysisTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTResolutionAnalysisTest.cc:31
DTResolutionAnalysisTest::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTResolutionAnalysisTest.h:68
DTResolutionAnalysisTest::wheelMeanHistos
std::map< int, MonitorElement * > wheelMeanHistos
Definition: DTResolutionAnalysisTest.h:75
DTResolutionAnalysisTest::MeanHistos
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
Definition: DTResolutionAnalysisTest.h:72
DTResolutionAnalysisTest::meanDistr
std::map< int, MonitorElement * > meanDistr
Definition: DTResolutionAnalysisTest.h:78
DTResolutionAnalysisTest::stationFromBin
int stationFromBin(int bin) const
Definition: DTResolutionAnalysisTest.cc:435
edm::ParameterSet
Definition: ParameterSet.h:47
DTResolutionAnalysisTest::getMEName
std::string getMEName(const DTSuperLayerId &slID)
Get the ME name.
Definition: DTResolutionAnalysisTest.cc:408
DTResolutionAnalysisTest::~DTResolutionAnalysisTest
~DTResolutionAnalysisTest() override
Destructor.
Definition: DTResolutionAnalysisTest.cc:47
edm::EventSetup
Definition: EventSetup.h:58
DTResolutionAnalysisTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTResolutionAnalysisTest.cc:141
DTResolutionAnalysisTest::maxGoodMeanValue
double maxGoodMeanValue
Definition: DTResolutionAnalysisTest.h:61
DTResolutionAnalysisTest::topHistoFolder
std::string topHistoFolder
Definition: DTResolutionAnalysisTest.h:95
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.r
r
Definition: alignCSCRings.py:93
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTResolutionAnalysisTest::doCalibAnalysis
bool doCalibAnalysis
Definition: DTResolutionAnalysisTest.h:66
DTResolutionAnalysisTest
Definition: DTResolutionAnalysisTest.h:30
DTResolutionAnalysisTest::meanInRange
double meanInRange(double mean) const
Definition: DTResolutionAnalysisTest.cc:445
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTResolutionAnalysisTest::wheelRingHistos
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos
Definition: DTResolutionAnalysisTest.h:82
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTResolutionAnalysisTest::wheelSigmaHistos
std::map< int, MonitorElement * > wheelSigmaHistos
Definition: DTResolutionAnalysisTest.h:76
MuonGeometryRecord.h
DTResolutionAnalysisTest::slFromBin
int slFromBin(int bin) const
Definition: DTResolutionAnalysisTest.cc:437
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
DTResolutionAnalysisTest::sigmaDistr
std::map< int, MonitorElement * > sigmaDistr
Definition: DTResolutionAnalysisTest.h:79