CMS 3D CMS Logo

DTLocalTriggerBaseTest.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerBaseTest_H
2 #define DTLocalTriggerBaseTest_H
3 
24 
27 
29 
30 #include <string>
31 #include <map>
32 
33 class DTChamberId;
34 class DTGeometry;
35 class TH1F;
36 class TH2F;
37 class TH1D;
38 
40 public:
43 
45  ~DTLocalTriggerBaseTest() override;
46 
47 protected:
49  void beginRun(edm::Run const& run, edm::EventSetup const& context) override;
50 
54  edm::LuminosityBlock const&,
55  edm::EventSetup const&) override;
56 
58  void endRun(edm::Run const& run, edm::EventSetup const& context) override;
59 
61 
64 
66  void bookSectorHistos(DQMStore::IBooker&, int wheel, int sector, std::string hTag, std::string folder = "");
67 
70 
72  void bookCmsHistos(DQMStore::IBooker&, std::string hTag, std::string folder = "", bool isGlb = false);
73 
75  std::pair<float, float> phiRange(const DTChamberId& id);
76 
78  template <class T>
80 
83 
86 
89 
92 
94  inline std::string& topFolder() { return baseFolderTM; };
95 
97  inline std::string category() { return "DTDQM|DTMonitorClient|" + testName + "Test"; };
98 
99  int nevents;
100  unsigned int nLumiSegs;
102  int run;
104  std::vector<std::string> trigSources;
105  std::vector<std::string> hwSources;
106 
109  bool runOnline;
113 
116  std::map<int, std::map<std::string, MonitorElement*> > secME;
117  std::map<int, std::map<std::string, MonitorElement*> > whME;
118  std::map<std::string, MonitorElement*> cmsME;
119 };
120 
121 template <class T>
123  return me ? dynamic_cast<T*>(me->getRootObject()) : nullptr;
124 }
125 
126 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTLocalTriggerBaseTest::sourceFolder
std::string sourceFolder
Definition: DTLocalTriggerBaseTest.h:107
Handle.h
DTLocalTriggerBaseTest::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTLocalTriggerBaseTest.h:114
DTLocalTriggerBaseTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTLocalTriggerBaseTest.cc:64
DTLocalTriggerBaseTest::cmsME
std::map< std::string, MonitorElement * > cmsME
Definition: DTLocalTriggerBaseTest.h:118
DTLocalTriggerBaseTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTLocalTriggerBaseTest.h:100
DTLocalTriggerBaseTest::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
Definition: DTLocalTriggerBaseTest.cc:36
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
printsummarytable.folder
folder
Definition: printsummarytable.py:7
LuminosityBlock.h
edm
HLT enums.
Definition: AlignableModifier.h:19
DTLocalTriggerBaseTest::hwSources
std::vector< std::string > hwSources
Definition: DTLocalTriggerBaseTest.h:105
DQMStore.h
DTLocalTriggerBaseTest::fullName
std::string fullName(std::string htype)
Create fullname from histo partial name.
Definition: DTLocalTriggerBaseTest.cc:98
DTLocalTriggerBaseTest::getMEName
std::string getMEName(std::string histoTag, std::string subfolder, const DTChamberId &chambid)
Get the ME name (by chamber)
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTLocalTriggerBaseTest::bookCmsHistos
void bookCmsHistos(DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false)
Book the new MEs (CMS summary)
Definition: DTLocalTriggerBaseTest.cc:193
DTLocalTriggerBaseTest::phiRange
std::pair< float, float > phiRange(const DTChamberId &id)
Calculate phi range for histograms.
Definition: DTLocalTriggerBaseTest.cc:258
DTLocalTriggerBaseTest::whME
std::map< int, std::map< std::string, MonitorElement * > > whME
Definition: DTLocalTriggerBaseTest.h:117
DTLocalTriggerBaseTest::runOnline
bool runOnline
Definition: DTLocalTriggerBaseTest.h:109
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTLocalTriggerBaseTest::setConfig
void setConfig(const edm::ParameterSet &ps, std::string name)
Set configuration variables.
Definition: DTLocalTriggerBaseTest.cc:77
MakerMacros.h
DTLocalTriggerBaseTest::~DTLocalTriggerBaseTest
~DTLocalTriggerBaseTest() override
Destructor.
Definition: DTLocalTriggerBaseTest.cc:32
Service.h
DTLocalTriggerBaseTest::run
int run
Definition: DTLocalTriggerBaseTest.h:102
DTLocalTriggerBaseTest::bookSectorHistos
void bookSectorHistos(DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="")
Book the new MEs (for each sector)
Definition: DTLocalTriggerBaseTest.cc:133
DTLocalTriggerBaseTest::muonGeom
const DTGeometry * muonGeom
Definition: DTLocalTriggerBaseTest.h:115
DTLocalTriggerBaseTest
Definition: DTLocalTriggerBaseTest.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Transition
Transition
Definition: Transition.h:12
Event.h
dtResolutionTest_cfi.histoTag
histoTag
Definition: dtResolutionTest_cfi.py:21
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTLocalTriggerBaseTest::secME
std::map< int, std::map< std::string, MonitorElement * > > secME
Definition: DTLocalTriggerBaseTest.h:116
edm::EventSetup
Definition: EventSetup.h:58
DTLocalTriggerBaseTest::hwSource
std::string hwSource
Definition: DTLocalTriggerBaseTest.h:112
DTLocalTriggerBaseTest::nevents
int nevents
Definition: DTLocalTriggerBaseTest.h:97
DTLocalTriggerBaseTest::bookWheelHistos
void bookWheelHistos(DQMStore::IBooker &, int wheel, std::string hTag, std::string folder="")
Book the new MEs (for each wheel)
Definition: DTLocalTriggerBaseTest.cc:210
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTLocalTriggerBaseTest::prescaleFactor
int prescaleFactor
Definition: DTLocalTriggerBaseTest.h:101
DTLocalTriggerBaseTest::trigSource
std::string trigSource
Definition: DTLocalTriggerBaseTest.h:111
DTLocalTriggerBaseTest::topFolder
std::string & topFolder()
Get top folder name.
Definition: DTLocalTriggerBaseTest.h:94
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTLocalTriggerBaseTest::trigSources
std::vector< std::string > trigSources
Definition: DTLocalTriggerBaseTest.h:104
Frameworkfwd.h
DTLocalTriggerBaseTest::getHisto
T * getHisto(MonitorElement *me)
Convert ME to Histogram fo type T.
Definition: DTLocalTriggerBaseTest.h:122
T
long double T
Definition: Basic3DVectorLD.h:48
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTLocalTriggerBaseTest::parameters
edm::ParameterSet parameters
Definition: DTLocalTriggerBaseTest.h:108
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm::implementation::IBooker
Definition: DQMStore.h:43
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:206
DTLocalTriggerBaseTest::category
std::string category()
Get message logger name.
Definition: DTLocalTriggerBaseTest.h:97
DTLocalTriggerBaseTest::baseFolderTM
std::string baseFolderTM
Definition: DTLocalTriggerBaseTest.h:110
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
MuonGeometryRecord.h
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
DTLocalTriggerBaseTest::testName
std::string testName
Definition: DTLocalTriggerBaseTest.h:103
DTLocalTriggerBaseTest::DTLocalTriggerBaseTest
DTLocalTriggerBaseTest()
Constructor.
Definition: DTLocalTriggerBaseTest.h:42
DTLocalTriggerBaseTest::runClientDiagnostic
virtual void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &)=0
Perform client analysis.
DTLocalTriggerBaseTest::endRun
void endRun(edm::Run const &run, edm::EventSetup const &context) override
Perform client diagnostic in offline.
Definition: DTLocalTriggerBaseTest.cc:73
DTLocalTriggerBaseTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Perform client diagnostic in online.
Definition: DTLocalTriggerBaseTest.cc:44