1 #ifndef DQMOFFLINE_TRIGGER_EGHLTMONELEMFUNCS
2 #define DQMOFFLINE_TRIGGER_EGHLTMONELEMFUNCS
22 #include <boost/algorithm/string.hpp>
56 float (
OffEle::*vsVarFunc)()
const,
62 float (
OffEle::*vsVarFunc)()
const,
70 float (
OffPho::*vsVarFunc)()
const,
76 float (
OffPho::*vsVarFunc)()
const,
101 const std::vector<std::string>& tightLooseTrigs,
105 const std::vector<std::string>& tightLooseTrigs,
110 const std::vector<std::string>& tightLooseTrigs,
113 const std::vector<std::string>& tightLooseTrigs,
131 const std::vector<std::string>& tightLooseTrigs,
134 const std::vector<std::string>& tightLooseTrigs,
139 const std::vector<std::string>& filterNames,
143 const std::vector<std::string>& filterNames,
159 template <
class T,
typename varType>
169 template <
class T,
typename varType>
195 tightTrig +
"_" + looseTrig +
"_" + histId +
"_passTrig",
198 addStdHist<T, float>(passEtMonElem->
monElems(),
199 passEtMonElem->
name() +
"_etUnCut",
200 passEtMonElem->
name() +
" E_{T} (Uncut);E_{T} (GeV)",
206 tightTrig +
"_" + looseTrig +
"_" + histId +
"_failTrig",
209 addStdHist<T, float>(failEtMonElem->monElems(),
210 failEtMonElem->name() +
"_etUnCut",
211 failEtMonElem->name() +
" E_{T} (Uncut);E_{T} (GeV)",
215 monElems.push_back(passEtMonElem);
216 monElems.push_back(failEtMonElem);
222 const std::vector<std::string>& tightLooseTrigs,
225 for (
size_t trigNr = 0; trigNr < tightLooseTrigs.size(); trigNr++) {
229 if (splitString.size() != 2)
236 if (trigNr != tightLooseTrigs.size() - 2)
void initStdPhoCutHists(std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffPho > *cut=nullptr)
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=nullptr)
void initTightLooseTrigHistsTrigCuts(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)
const edm::EventSetup & c
const TrigCodes & trigCodes
void initStdPhoHists(std::vector< MonElemManagerBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
TrigBitSet getCode(const char *descript) const
void addStdHistHEP(std::vector< MonElemManagerBase< T > * > &histVec, const std::string &name, const std::string &title, const BinData::Data1D &binData, varType(T::*varFunc)() const)
void initTrigTagProbeHist(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
const std::string & name() const
MonElemFuncs(DQMStore::IBooker &i, const TrigCodes &c)
void initTightLooseDiObjTrigHistsTrigCuts(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
std::vector< std::string > splitString(const std::string &fLine)
dqm::reco::DQMStore DQMStore
void addTightLooseTrigHist(std::vector< MonElemContainer< T > * > &monElems, const std::string &tightTrig, const std::string &looseTrig, const std::string &histId, const BinData &bins)
void initTrigTagProbeHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &filterNames, int cutMask, const BinData &bins)
void addStdHist(std::vector< MonElemManagerBase< T > * > &histVec, const std::string &name, const std::string &title, const BinData::Data1D &binData, varType(T::*varFunc)() const)
void initTightLooseTrigHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffEle > *eleCut)
void initTrigTagProbeHist_2Leg(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
dqm::legacy::MonitorElement MonitorElement
void initStdEleHistsHEP(std::vector< MonElemManagerBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
DQMStore::IBooker & iBooker
void initStdPhoHistsHEP(std::vector< MonElemManagerBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
std::vector< MonElemManagerBase< T > * > & monElems()
DQMStore::IBooker & getIB()
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 initTightLooseTrigHists(std::vector< MonElemContainer< T > * > &monElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, const std::string &objName)
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)