CMS 3D CMS Logo

DTSegmentAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTSegmentAnalysisTest_H
2 #define DTSegmentAnalysisTest_H
3 
23 
27 
28 #include <memory>
29 #include <iostream>
30 #include <fstream>
31 #include <string>
32 #include <vector>
33 #include <map>
34 
35 class DTGeometry;
36 class DTChamberId;
37 class DTSuperLayerId;
38 
40 public:
43 
45  ~DTSegmentAnalysisTest() override;
46 
47  void beginRun(const edm::Run &, const edm::EventSetup &) override;
48 
50 
53 
56 
57 protected:
58  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
61  edm::LuminosityBlock const &,
62  edm::EventSetup const &) override;
63 
64  void dqmBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &);
65 
66 private:
67  int nLSs;
68  unsigned int nLumiSegs;
69  // switch on for detailed analysis
71  int nMinEvts;
72 
73  int maxPhiHit;
75 
76  bool runOnline;
77 
79 
82 
83  // the histograms
84  std::map<std::pair<int, int>, MonitorElement *> chi2Histos;
85  std::map<std::pair<int, int>, MonitorElement *> segmRecHitHistos;
86  std::map<int, MonitorElement *> summaryHistos;
87  // top folder for the histograms in DQMStore
89 };
90 
91 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
Handle.h
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LuminosityBlock.h
DTSegmentAnalysisTest::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTSegmentAnalysisTest.h:81
DTSegmentAnalysisTest::maxPhiHit
int maxPhiHit
Definition: DTSegmentAnalysisTest.h:73
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
DTSegmentAnalysisTest::chi2Histos
std::map< std::pair< int, int >, MonitorElement * > chi2Histos
Definition: DTSegmentAnalysisTest.h:84
EDAnalyzer.h
DTSegmentAnalysisTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DTSegmentAnalysisTest.cc:73
DTSegmentAnalysisTest::bookHistos
void bookHistos(DQMStore::IBooker &)
Definition: DTSegmentAnalysisTest.cc:261
DTSegmentAnalysisTest::maxPhiZHit
int maxPhiZHit
Definition: DTSegmentAnalysisTest.h:74
DTSegmentAnalysisTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTSegmentAnalysisTest.h:68
DTSegmentAnalysisTest::segmRecHitHistos
std::map< std::pair< int, int >, MonitorElement * > segmRecHitHistos
Definition: DTSegmentAnalysisTest.h:85
MakerMacros.h
Service.h
edm::ESHandle< DTGeometry >
DTSegmentAnalysisTest::detailedAnalysis
bool detailedAnalysis
Definition: DTSegmentAnalysisTest.h:70
DTSegmentAnalysisTest::nMinEvts
int nMinEvts
Definition: DTSegmentAnalysisTest.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTSegmentAnalysisTest::summaryHistos
std::map< int, MonitorElement * > summaryHistos
Definition: DTSegmentAnalysisTest.h:86
edm::ParameterSet
Definition: ParameterSet.h:47
DTSegmentAnalysisTest::~DTSegmentAnalysisTest
~DTSegmentAnalysisTest() override
Destructor.
Definition: DTSegmentAnalysisTest.cc:57
Event.h
DTSegmentAnalysisTest::topHistoFolder
std::string topHistoFolder
Definition: DTSegmentAnalysisTest.h:88
DTSegmentAnalysisTest::nLSs
int nLSs
Definition: DTSegmentAnalysisTest.h:67
dtResolutionTest_cfi.histoTag
histoTag
Definition: dtResolutionTest_cfi.py:21
DTSegmentAnalysisTest
Definition: DTSegmentAnalysisTest.h:39
DTSegmentAnalysisTest::bookingdone
bool bookingdone
Definition: DTSegmentAnalysisTest.h:78
edm::EventSetup
Definition: EventSetup.h:57
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTSegmentAnalysisTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTSegmentAnalysisTest.cc:95
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTSegmentAnalysisTest::dqmBeginLuminosityBlock
void dqmBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &)
Definition: DTSegmentAnalysisTest.cc:67
DTSegmentAnalysisTest::performClientDiagnostic
void performClientDiagnostic(DQMStore::IGetter &)
Perform client diagnostic operations.
Definition: DTSegmentAnalysisTest.cc:104
DTSegmentAnalysisTest::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTSegmentAnalysisTest.cc:61
DTSegmentAnalysisTest::runOnline
bool runOnline
Definition: DTSegmentAnalysisTest.h:76
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTSegmentAnalysisTest::DTSegmentAnalysisTest
DTSegmentAnalysisTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTSegmentAnalysisTest.cc:39
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
DTSegmentAnalysisTest::getMEName
std::string getMEName(const DTChamberId &chID, std::string histoTag)
Get the ME name.
Definition: DTSegmentAnalysisTest.cc:242
DTSegmentAnalysisTest::parameters
edm::ParameterSet parameters
Definition: DTSegmentAnalysisTest.h:80