CMS 3D CMS Logo

DTResolutionAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTResolutionAnalysisTest_H
2 #define DTResolutionAnalysisTest_H
3 
18 
21 
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 
69 
70  // Histograms for tests
71  std::map<std::pair<int, int>, MonitorElement*> MeanHistos;
72  std::map<std::pair<int, int>, MonitorElement*> SigmaHistos;
73  // wheel summary histograms
74  std::map<int, MonitorElement*> wheelMeanHistos;
75  std::map<int, MonitorElement*> wheelSigmaHistos;
76 
77  std::map<int, MonitorElement*> meanDistr;
78  std::map<int, MonitorElement*> sigmaDistr;
79 
80  // wheel and ring mean histograms
81  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
82 
83  // Compute the station from the bin number of mean and sigma histos
84  int stationFromBin(int bin) const;
85  // Compute the sl from the bin number of mean and sigma histos
86  int slFromBin(int bin) const;
87 
88  double meanInRange(double mean) const;
89  double sigmaInRange(double sigma) const;
90 
92 
93  // top folder for the histograms in DQMStore
95 };
96 
97 #endif
DQMEDHarvester.h
DTResolutionAnalysisTest::minBadMeanValue
double minBadMeanValue
Definition: DTResolutionAnalysisTest.h:62
DTGeometry
Definition: DTGeometry.h:28
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:91
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:72
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:32
edm::ESHandle< DTGeometry >
DTResolutionAnalysisTest::wheelMeanHistos
std::map< int, MonitorElement * > wheelMeanHistos
Definition: DTResolutionAnalysisTest.h:74
DTResolutionAnalysisTest::MeanHistos
std::map< std::pair< int, int >, MonitorElement * > MeanHistos
Definition: DTResolutionAnalysisTest.h:71
DTResolutionAnalysisTest::meanDistr
std::map< int, MonitorElement * > meanDistr
Definition: DTResolutionAnalysisTest.h:77
DTResolutionAnalysisTest::stationFromBin
int stationFromBin(int bin) const
Definition: DTResolutionAnalysisTest.cc:435
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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:94
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:81
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTResolutionAnalysisTest::wheelSigmaHistos
std::map< int, MonitorElement * > wheelSigmaHistos
Definition: DTResolutionAnalysisTest.h:75
DTResolutionAnalysisTest::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTResolutionAnalysisTest.h:68
DTResolutionAnalysisTest::slFromBin
int slFromBin(int bin) const
Definition: DTResolutionAnalysisTest.cc:437
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
DTResolutionAnalysisTest::sigmaDistr
std::map< int, MonitorElement * > sigmaDistr
Definition: DTResolutionAnalysisTest.h:78