1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUT 2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMWITHCUT 53 monElemMgr_(new
MonElemManager<
T,varTypeX>(iBooker,name,title,nrBins,xMin,xMax,varFunc)),
58 monElemMgr_(new
MonElemManager2D<
T,varTypeX,varTypeY>(iBooker,name,title,nrBinsX,xMin,xMax,nrBinsY,yMin,yMax,varFuncX,varFuncY)),
66 template<
class T,
typename varTypeX,
typename varTypeY>
70 if(monElemMgr_)
delete monElemMgr_;
73 template<
class T,
typename varTypeX,
typename varTypeY>
76 if(cut_==
nullptr || cut_->
pass(obj,evt)) monElemMgr_->
fill(obj,weight);
MonElemWithCut & operator=(const MonElemWithCut &rhs)
const EgHLTDQMCut< T > * cut_
MonElemManagerBase< T > * monElemMgr_
void fill(const T &obj, const OffEvt &evt, float weight) override
MonElemWithCut(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, const EgHLTDQMCut< T > *cut=NULL)
virtual bool pass(const T &obj, const OffEvt &evt) const =0
MonElemWithCut(DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, double xMin, double xMax, varTypeX(T::*varFunc)() const, const EgHLTDQMCut< T > *cut=NULL)
virtual void fill(const T &obj, float weight)=0
virtual void fill(const T &obj, const OffEvt &evt, float weight)=0
MonElemWithCutBase & operator=(const MonElemWithCutBase &rhs)
MonElemWithCut(const MonElemWithCut &rhs)
virtual ~MonElemWithCutBase()=default
MonElemWithCutBase()=default
~MonElemWithCut() override