1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUTEBEE 2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUTEBEE 24 template <
class T,
typename varType>
38 : barrel_(iBooker, name +
"_eb",
"Barrel " + title, nrBins, min, max, varFunc,
nullptr),
39 endcap_(iBooker, name +
"_ee",
"Endcap " + title, nrBins, min, max, varFunc,
nullptr) {}
49 : barrel_(iBooker, name +
"_eb",
"Barrel " + title, nrBins, min, max, varFunc, cut),
50 endcap_(iBooker, name +
"_ee",
"Endcap " + title, nrBins, min, max, varFunc, cut ? cut->
clone() :
nullptr) {}
57 template <
class T,
typename varType>
59 if (std::fabs(obj.detEta()) < 1.5)
60 barrel_.
fill(obj, evt, weight);
62 endcap_.
fill(obj, evt, weight);
MonElemWithCut< T, varType > barrel_
void fill(const T &obj, const OffEvt &evt, float weight) override
MonElemWithCut< T, varType > endcap_
MonElemWithCutEBEE(DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const, const EgHLTDQMCut< T > *cut)
MonElemWithCutEBEE(DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
void fill(const T &obj, const OffEvt &evt, float weight) override
~MonElemWithCutEBEE() override=default