1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUTEBEE
2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUTEBEE
29 varType (T::*varFunc)()
const):
30 barrel_(name+
"_eb",
"Barrel "+title,nrBins,min,max,varFunc,
NULL),
31 endcap_(name+
"_ee",
"Endcap "+title,nrBins,min,max,varFunc,
NULL){}
33 MonElemWithCutEBEE(
const std::string& name,
const std::string& title,
int nrBins,
float min,
float max,
35 barrel_(name+
"_eb",
"Barrel "+title,nrBins,min,max,varFunc,cut),
36 endcap_(name+
"_ee",
"Endcap "+title,nrBins,min,max,varFunc,cut ? cut->
clone() :
NULL){}
46 if(fabs(obj.detEta())<1.5) barrel_.fill(obj,evt,weight);
47 else endcap_.fill(obj,evt,weight);
void fill(const T &obj, const OffEvt &evt, float weight)
MonElemWithCutEBEE(const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
tuple obj
Example code starts here #.
const T & max(const T &a, const T &b)
MonElemWithCut< T, varType > endcap_
MonElemWithCutEBEE(const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const, const EgHLTDQMCut< T > *cut)
MonElemWithCut< T, varType > barrel_