CMS 3D CMS Logo

DTSegmentAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTSegmentAnalysisTest_H
2 #define DTSegmentAnalysisTest_H
3 
23 
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  ~DTSegmentAnalysisTest() override;
47 
48  void beginRun(const edm::Run &, const edm::EventSetup &) override;
49 
51 
54 
57 
58 protected:
59  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
62  edm::LuminosityBlock const &,
63  edm::EventSetup const &) override;
64 
65  void dqmBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &);
66 
67 private:
68  int nLSs;
69  unsigned int nLumiSegs;
70  // switch on for detailed analysis
72  int nMinEvts;
73 
74  int maxPhiHit;
76 
77  bool runOnline;
78 
80 
84 
85  // the histograms
86  std::map<std::pair<int, int>, MonitorElement *> chi2Histos;
87  std::map<std::pair<int, int>, MonitorElement *> segmRecHitHistos;
88  std::map<int, MonitorElement *> summaryHistos;
89  // top folder for the histograms in DQMStore
91 };
92 
93 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
Handle.h
DTSegmentAnalysisTest::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTSegmentAnalysisTest.h:82
DTSegmentAnalysisTest::muonGeom
const DTGeometry * muonGeom
Definition: DTSegmentAnalysisTest.h:83
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LuminosityBlock.h
DTSegmentAnalysisTest::maxPhiHit
int maxPhiHit
Definition: DTSegmentAnalysisTest.h:74
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
DTSegmentAnalysisTest::chi2Histos
std::map< std::pair< int, int >, MonitorElement * > chi2Histos
Definition: DTSegmentAnalysisTest.h:86
EDAnalyzer.h
DTSegmentAnalysisTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DTSegmentAnalysisTest.cc:72
DTSegmentAnalysisTest::bookHistos
void bookHistos(DQMStore::IBooker &)
Definition: DTSegmentAnalysisTest.cc:260
DTSegmentAnalysisTest::maxPhiZHit
int maxPhiZHit
Definition: DTSegmentAnalysisTest.h:75
DTSegmentAnalysisTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTSegmentAnalysisTest.h:69
DTSegmentAnalysisTest::segmRecHitHistos
std::map< std::pair< int, int >, MonitorElement * > segmRecHitHistos
Definition: DTSegmentAnalysisTest.h:87
MakerMacros.h
Service.h
DTSegmentAnalysisTest::detailedAnalysis
bool detailedAnalysis
Definition: DTSegmentAnalysisTest.h:71
DTSegmentAnalysisTest::nMinEvts
int nMinEvts
Definition: DTSegmentAnalysisTest.h:72
DTSegmentAnalysisTest::summaryHistos
std::map< int, MonitorElement * > summaryHistos
Definition: DTSegmentAnalysisTest.h:88
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:90
DTSegmentAnalysisTest::nLSs
int nLSs
Definition: DTSegmentAnalysisTest.h:68
dtResolutionTest_cfi.histoTag
histoTag
Definition: dtResolutionTest_cfi.py:21
DTSegmentAnalysisTest
Definition: DTSegmentAnalysisTest.h:40
DTSegmentAnalysisTest::bookingdone
bool bookingdone
Definition: DTSegmentAnalysisTest.h:79
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTSegmentAnalysisTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTSegmentAnalysisTest.cc:94
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTSegmentAnalysisTest::dqmBeginLuminosityBlock
void dqmBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &)
Definition: DTSegmentAnalysisTest.cc:66
DTSegmentAnalysisTest::performClientDiagnostic
void performClientDiagnostic(DQMStore::IGetter &)
Perform client diagnostic operations.
Definition: DTSegmentAnalysisTest.cc:103
DTSegmentAnalysisTest::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTSegmentAnalysisTest.cc:61
DTSegmentAnalysisTest::runOnline
bool runOnline
Definition: DTSegmentAnalysisTest.h:77
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTSegmentAnalysisTest::DTSegmentAnalysisTest
DTSegmentAnalysisTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTSegmentAnalysisTest.cc:38
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:241
MuonGeometryRecord.h
DTSegmentAnalysisTest::parameters
edm::ParameterSet parameters
Definition: DTSegmentAnalysisTest.h:81