1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMFUNCS
2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMFUNCS
22 #include <boost/algorithm/string.hpp>
28 namespace MonElemFuncs {
52 const std::string& tightTrig,
const std::string& looseTrig,
57 const std::string& tightTrig,
const std::string& looseTrig,
82 const std::string& tightTrig,
const std::string& looseTrig,
83 const std::string& histId,
const BinData& bins)
95 addStdHist<T,float>(passEtMonElem->
monElems(),passEtMonElem->
name()+
"_etUnCut",passEtMonElem->
name()+
" E_{T} (Uncut);E_{T} (GeV)",bins.
et,&T::et);
100 addStdHist<T,float>(failEtMonElem->monElems(),failEtMonElem->name()+
"_etUnCut",failEtMonElem->name()+
" E_{T} (Uncut);E_{T} (GeV)",bins.
et,&T::et);
102 monElems.push_back(passEtMonElem);
103 monElems.push_back(failEtMonElem);
110 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
113 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
114 if(splitString.size()!=2)
continue;
115 const std::string& tightTrig = splitString[0];
116 const std::string& looseTrig = splitString[1];
120 if(trigNr!=tightLooseTrigs.size()-2)
addTightLooseTrigHist(monElems,tightTrig,looseTrig,objName,bins);
static TrigBitSet getCode(const std::string &descript)
const std::string & name() const
void initTightLooseTrigHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffEle > *eleCut)
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=NULL)
void initTightLooseDiObjTrigHistsTrigCuts(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
void initStdEleHists(std::vector< MonElemManagerBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
std::vector< std::string > splitString(const std::string &fLine)
void initStdEffHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, int nrBins, double xMin, double xMax, float(OffEle::*vsVarFunc)() const, const CutMasks &masks)
void initStdPhoCutHists(std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffPho > *cut=NULL)
void addStdHist(std::vector< MonElemManagerBase< T > * > &histVec, const std::string &name, const std::string &title, const BinData::Data1D &binData, varType(T::*varFunc)() const)
void initTrigTagProbeHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > filterNames, int cutMask, const BinData &bins)
void initTrigTagProbeHist_2Leg(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string filterName, int cutMask, const BinData &bins)
std::vector< MonElemManagerBase< T > * > & monElems()
void addTightLooseTrigHist(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &tightTrig, const std::string &looseTrig, EgHLTDQMCut< OffEle > *eleCut, const std::string &histId, const BinData &bins)
void initTrigTagProbeHist(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string filterName, int cutMask, const BinData &bins)
void initStdPhoHists(std::vector< MonElemManagerBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
void initTightLooseTrigHistsTrigCuts(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
static const uint32_t masks[]