CMS 3D CMS Logo

EgHLTMonElemMgrHEP.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMMGRHEP
2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMMGRHEP
3 
5 
6 namespace egHLT {
7  template <class T, typename varType>
8  class MonElemMgrHEP : public MonElemManagerBase<T> {
9  private:
12 
13  public:
15  const std::string& name,
16  const std::string& title,
17  int nrBins,
18  float min,
19  float max,
20  varType (T::*varFunc)() const)
21  : hep17_(iBooker, name + "_hep17", "hep " + title, nrBins, min, max, varFunc),
22  hem17_(iBooker, name + "_hem17", "hem " + title, nrBins, min, max, varFunc) {}
23 
24  ~MonElemMgrHEP() override {}
25 
26  void fill(const T& obj, float weight) override;
27  };
28 
29  template <class T, typename varType>
31  if (obj.detEta() < 3.0 && obj.detEta() > 1.3 && obj.phi() < -0.52 && obj.phi() > -0.87)
32  hep17_.fill(obj, weight);
33  if (obj.detEta() > -3.0 && obj.detEta() < -1.3 && obj.phi() < -0.52 && obj.phi() > -0.87)
34  hem17_.fill(obj, weight);
35  }
36 
37  template <class T, typename varTypeX, typename varTypeY>
38  class MonElemMgr2DHEP : public MonElemManagerBase<T> {
39  private:
42 
43  public:
45  const std::string& name,
46  const std::string& title,
47  int nrBinsX,
48  double xMin,
49  double xMax,
50  int nrBinsY,
51  double yMin,
52  double yMax,
53  varTypeX (T::*varFuncX)() const,
54  varTypeY (T::*varFuncY)() const)
55  : hep17_(
56  iBooker, name + "_hep17", "Hep17 " + title, nrBinsX, xMin, xMax, nrBinsY, yMin, yMax, varFuncX, varFuncY),
57  hem17_(
58  iBooker, name + "_hem17", "Hem17 " + title, nrBinsX, xMin, xMax, nrBinsY, yMin, yMax, varFuncX, varFuncY) {
59  }
60 
62 
63  void fill(const T& obj, float weight);
64  };
65 
66  template <class T, typename varTypeX, typename varTypeY>
68  if (obj.detEta() < 3.0 && obj.detEta() > 1.3 && obj.phi() < -0.52 && obj.phi() > -0.87)
69  hep17_.fill(obj, weight);
70  if (obj.detEta() > -3.0 && obj.detEta() < -1.3 && obj.phi() < -0.52 && obj.phi() > -0.87)
71  hem17_.fill(obj, weight);
72  }
73 } // namespace egHLT
74 #endif
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
egHLT::MonElemMgr2DHEP::MonElemMgr2DHEP
MonElemMgr2DHEP(DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBinsX, double xMin, double xMax, int nrBinsY, double yMin, double yMax, varTypeX(T::*varFuncX)() const, varTypeY(T::*varFuncY)() const)
Definition: EgHLTMonElemMgrHEP.h:44
egHLT::MonElemMgrHEP
Definition: EgHLTMonElemMgrHEP.h:8
min
T min(T a, T b)
Definition: MathUtil.h:58
egHLT::MonElemMgr2DHEP::~MonElemMgr2DHEP
~MonElemMgr2DHEP()
Definition: EgHLTMonElemMgrHEP.h:61
photonAnalyzer_cfi.yMin
yMin
Definition: photonAnalyzer_cfi.py:86
egHLT::MonElemMgrHEP::hep17_
MonElemManager< T, varType > hep17_
Definition: EgHLTMonElemMgrHEP.h:10
photonAnalyzer_cfi.xMin
xMin
Definition: photonAnalyzer_cfi.py:82
egHLT::MonElemManager
Definition: EgHLTMonElemManager.h:101
egHLT::MonElemManagerBase
Definition: EgHLTMonElemManager.h:33
egHLT::MonElemMgr2DHEP::fill
void fill(const T &obj, float weight)
Definition: EgHLTMonElemMgrHEP.h:67
multiplicitycorr_cfi.yMax
yMax
Definition: multiplicitycorr_cfi.py:6
dumpRecoGeometry_cfg.varType
varType
Definition: dumpRecoGeometry_cfg.py:8
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
egHLT::MonElemMgrHEP::MonElemMgrHEP
MonElemMgrHEP(DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
Definition: EgHLTMonElemMgrHEP.h:14
egHLT::MonElemMgr2DHEP::hem17_
MonElemManager2D< T, varTypeX, varTypeY > hem17_
Definition: EgHLTMonElemMgrHEP.h:41
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
egHLT::MonElemManager2D
Definition: EgHLTMonElemManager.h:134
egHLT::MonElemManager2D::fill
void fill(const T &obj, float weight) override
Definition: EgHLTMonElemManager.h:165
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
egHLT::MonElemMgrHEP::fill
void fill(const T &obj, float weight) override
Definition: EgHLTMonElemMgrHEP.h:30
egHLT::MonElemMgr2DHEP::hep17_
MonElemManager2D< T, varTypeX, varTypeY > hep17_
Definition: EgHLTMonElemMgrHEP.h:40
egHLT::MonElemManager::fill
void fill(const T &obj, float weight) override
Definition: EgHLTMonElemManager.h:125
egHLT::MonElemMgrHEP::~MonElemMgrHEP
~MonElemMgrHEP() override
Definition: EgHLTMonElemMgrHEP.h:24
T
long double T
Definition: Basic3DVectorLD.h:48
egHLT::MonElemMgrHEP::hem17_
MonElemManager< T, varType > hem17_
Definition: EgHLTMonElemMgrHEP.h:11
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
multiplicitycorr_cfi.xMax
xMax
Definition: multiplicitycorr_cfi.py:5
dqm::implementation::IBooker
Definition: DQMStore.h:43
egHLT::MonElemMgr2DHEP
Definition: EgHLTMonElemMgrHEP.h:38
egHLT
Definition: EgHLTBinData.h:10
EgHLTMonElemManager.h
weight
Definition: weight.py:1