CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::MonElemFuncs Class Reference

#include <EgHLTMonElemFuncs.h>

Public Member Functions

template<class T , typename varType >
void addStdHist (std::vector< MonElemManagerBase< T > * > &histVec, const std::string &name, const std::string &title, const BinData::Data1D &binData, varType(T::*varFunc)() const)
 
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 addTightLooseTrigHist (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::string &tightTrig, const std::string &looseTrig, EgHLTDQMCut< OffPho > *phoCut, const std::string &histId, const BinData &bins)
 
template<class T >
void addTightLooseTrigHist (std::vector< MonElemContainer< T > * > &monElems, const std::string &tightTrig, const std::string &looseTrig, const std::string &histId, const BinData &bins)
 
DQMStore::IBookergetIB ()
 
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 initStdEffHists (std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData::Data1D &bins, float(OffEle::*vsVarFunc)() const, const CutMasks &masks)
 
void initStdEffHists (std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, int nrBins, double xMin, double xMax, float(OffPho::*vsVarFunc)() const, const CutMasks &masks)
 
void initStdEffHists (std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData::Data1D &bins, float(OffPho::*vsVarFunc)() const, const CutMasks &masks)
 
void initStdEleCutHists (std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=0)
 
void initStdEleHists (std::vector< MonElemManagerBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
 
void initStdPhoCutHists (std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffPho > *cut=0)
 
void initStdPhoHists (std::vector< MonElemManagerBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
 
void initTightLooseDiObjTrigHistsTrigCuts (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
 
void initTightLooseDiObjTrigHistsTrigCuts (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
 
void initTightLooseTrigHists (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffEle > *eleCut)
 
void initTightLooseTrigHists (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffPho > *phoCut)
 
template<class T >
void initTightLooseTrigHists (std::vector< MonElemContainer< T > * > &monElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, const std::string &objName)
 
void initTightLooseTrigHistsTrigCuts (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
 
void initTightLooseTrigHistsTrigCuts (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
 
void initTrigTagProbeHist (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
 
void initTrigTagProbeHist (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::string &filterName, int cutMask, const BinData &bins)
 
void initTrigTagProbeHist_2Leg (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
 
void initTrigTagProbeHists (std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &filterNames, int cutMask, const BinData &bins)
 
void initTrigTagProbeHists (std::vector< MonElemContainer< OffPho > * > &phoMonElems, const std::vector< std::string > &filterNames, int cutMask, const BinData &bins)
 
 MonElemFuncs (DQMStore::IBooker &i, const TrigCodes &c)
 
 ~MonElemFuncs ()=default
 

Private Attributes

DQMStore::IBookeriBooker
 
const TrigCodestrigCodes
 

Detailed Description

Definition at line 28 of file EgHLTMonElemFuncs.h.

Constructor & Destructor Documentation

egHLT::MonElemFuncs::MonElemFuncs ( DQMStore::IBooker i,
const TrigCodes c 
)
inline

Definition at line 34 of file EgHLTMonElemFuncs.h.

References ~MonElemFuncs().

34 : iBooker(i), trigCodes(c) {};
const TrigCodes & trigCodes
DQMStore::IBooker & iBooker
egHLT::MonElemFuncs::~MonElemFuncs ( )
default

Referenced by MonElemFuncs().

Member Function Documentation

template<class T , typename varType >
void egHLT::MonElemFuncs::addStdHist ( std::vector< MonElemManagerBase< T > * > &  histVec,
const std::string &  name,
const std::string &  title,
const BinData::Data1D binData,
varType(T::*)() const  varFunc 
)
inline

Definition at line 82 of file EgHLTMonElemFuncs.h.

References egHLT::BinData::Data1D::max, egHLT::BinData::Data1D::min, and egHLT::BinData::Data1D::nr.

83  {
84  histVec.push_back(new MonElemMgrEBEE<T,varType>(iBooker, name,title,binData.nr,binData.min,binData.max,varFunc));
85  }
DQMStore::IBooker & iBooker
void MonElemFuncs::addTightLooseTrigHist ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::string &  tightTrig,
const std::string &  looseTrig,
EgHLTDQMCut< OffEle > *  eleCut,
const std::string &  histId,
const BinData bins 
)

Definition at line 301 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::EgHLTDQMCut< T >::clone(), egHLT::TrigCodes::getCode(), initStdEleHists(), egHLT::MonElemContainer< T >::monElems(), egHLT::MonElemContainer< T >::name(), and trigCodes.

Referenced by addTightLooseTrigHist(), getIB(), initTightLooseDiObjTrigHistsTrigCuts(), initTightLooseTrigHists(), and initTightLooseTrigHistsTrigCuts().

305 {
306  MonElemContainer<OffEle>* passMonElem = nullptr;
307  passMonElem = new MonElemContainer<OffEle>(tightTrig+"_"+looseTrig+"_"+histId+"_passTrig","",
308  &(*(new EgMultiCut<OffEle>) <<
309  new EgObjTrigCut<OffEle>(trigCodes.getCode(tightTrig+":"+looseTrig),EgObjTrigCut<OffEle>::AND) <<
310  eleCut->clone()));
311 
312 
313  MonElemContainer<OffEle>* failMonElem = nullptr;
314  failMonElem = new MonElemContainer<OffEle>(tightTrig+"_"+looseTrig+"_"+histId+"_failTrig","",
315  &(*(new EgMultiCut<OffEle>) <<
317  eleCut));
318 
319  MonElemFuncs::initStdEleHists(passMonElem->monElems(),tightTrig+"_"+looseTrig,passMonElem->name(),bins);
320  MonElemFuncs::initStdEleHists(failMonElem->monElems(),tightTrig+"_"+looseTrig,failMonElem->name(),bins);
321  eleMonElems.push_back(passMonElem);
322  eleMonElems.push_back(failMonElem);
323 }
void initStdEleHists(std::vector< MonElemManagerBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins)
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
virtual EgHLTDQMCut< T > * clone() const =0
const std::string & name() const
std::vector< MonElemManagerBase< T > * > & monElems()
void MonElemFuncs::addTightLooseTrigHist ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::string &  tightTrig,
const std::string &  looseTrig,
EgHLTDQMCut< OffPho > *  phoCut,
const std::string &  histId,
const BinData bins 
)

Definition at line 327 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::EgHLTDQMCut< T >::clone(), egHLT::TrigCodes::getCode(), initStdPhoHists(), egHLT::MonElemContainer< T >::monElems(), egHLT::MonElemContainer< T >::name(), and trigCodes.

331 {
332  MonElemContainer<OffPho>* passMonElem = nullptr;
333  passMonElem = new MonElemContainer<OffPho>(tightTrig+"_"+looseTrig+"_"+histId+"_passTrig","",
334  &(*(new EgMultiCut<OffPho>) <<
335  new EgObjTrigCut<OffPho>(trigCodes.getCode(tightTrig+":"+looseTrig),EgObjTrigCut<OffPho>::AND) <<
336  phoCut->clone()));
337 
338 
339  MonElemContainer<OffPho>* failMonElem = nullptr;
340  failMonElem = new MonElemContainer<OffPho>(tightTrig+"_"+looseTrig+"_"+histId+"_failTrig","",
341  &(*(new EgMultiCut<OffPho>) <<
343  phoCut));
344 
345  MonElemFuncs::initStdPhoHists(passMonElem->monElems(),tightTrig+"_"+looseTrig,passMonElem->name(),bins);
346  MonElemFuncs::initStdPhoHists(failMonElem->monElems(),tightTrig+"_"+looseTrig,failMonElem->name(),bins);
347  phoMonElems.push_back(passMonElem);
348  phoMonElems.push_back(failMonElem);
349 }
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
virtual EgHLTDQMCut< T > * clone() const =0
const std::string & name() const
std::vector< MonElemManagerBase< T > * > & monElems()
template<class T >
void egHLT::MonElemFuncs::addTightLooseTrigHist ( std::vector< MonElemContainer< T > * > &  monElems,
const std::string &  tightTrig,
const std::string &  looseTrig,
const std::string &  histId,
const BinData bins 
)
inline

Definition at line 90 of file EgHLTMonElemFuncs.h.

References addTightLooseTrigHist(), stringResolutionProvider_cfi::et, egHLT::BinData::et, interestingEgammaIsoDetIdsSequence_cff::etCut, egHLT::TrigCodes::getCode(), egHLT::trigTools::getEtThresFromName(), egHLT::MonElemContainer< T >::monElems(), and egHLT::MonElemContainer< T >::name().

93  {
94 
95  float etCutValue = trigTools::getEtThresFromName(tightTrig);
96 
97  EgHLTDQMCut<T>* etCut = new EgGreaterCut<T,float>(etCutValue,&T::etSC); //note the cut in trigger is on SC Et
98  addTightLooseTrigHist(monElems,tightTrig,looseTrig,etCut,histId,bins);
99 
100  //now make the new mon elems without the et cut (have to be placed in containers even though each container just has one monelem)
101  MonElemContainer<T>* passEtMonElem;
102  passEtMonElem = new MonElemContainer<T>(tightTrig+"_"+looseTrig+"_"+histId+"_passTrig","",
103  new EgObjTrigCut<T>(trigCodes.getCode(tightTrig+":"+looseTrig),EgObjTrigCut<T>::AND));
104  addStdHist<T,float>(passEtMonElem->monElems(),passEtMonElem->name()+"_etUnCut",passEtMonElem->name()+" E_{T} (Uncut);E_{T} (GeV)",bins.et,&T::et);
105 
106  MonElemContainer<T>* failEtMonElem;
107  failEtMonElem = new MonElemContainer<T>(tightTrig+"_"+looseTrig+"_"+histId+"_failTrig","",
108  new EgObjTrigCut<T>(trigCodes.getCode(looseTrig),EgObjTrigCut<T>::AND,trigCodes.getCode(tightTrig)));
109  addStdHist<T,float>(failEtMonElem->monElems(),failEtMonElem->name()+"_etUnCut",failEtMonElem->name()+" E_{T} (Uncut);E_{T} (GeV)",bins.et,&T::et);
110 
111  monElems.push_back(passEtMonElem);
112  monElems.push_back(failEtMonElem);
113  }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
float getEtThresFromName(const std::string &trigName)
et
define resolution functions of each parameter
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)
DQMStore::IBooker& egHLT::MonElemFuncs::getIB ( )
inline
void MonElemFuncs::initStdEffHists ( std::vector< MonElemWithCutBase< OffEle > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
int  nrBins,
double  xMin,
double  xMax,
float(OffEle::*)() const  vsVarFunc,
const CutMasks masks 
)

Definition at line 109 of file EgHLTMonElemFuncs.cc.

References egHLT::OffEle::cutCode(), egHLT::EgCutCodes::DETAIN, egHLT::EgCutCodes::DPHIIN, egHLT::EgCutCodes::HADEM, egHLT::EgCutCodes::HLTISOLEM, egHLT::EgCutCodes::HLTISOLHAD, egHLT::EgCutCodes::HLTISOLTRKSELE, iBooker, egHLT::EgCutCodes::SIGMAIETAIETA, and egHLT::CutMasks::stdEle.

Referenced by egHLT::EleHLTFilterMon::EleHLTFilterMon(), getIB(), initStdEffHists(), and egHLT::PhoHLTFilterMon::PhoHLTFilterMon().

110 {
111  //some convience typedefs, I hate typedefs but atleast here where they are defined is obvious
112  using VarCut = EgHLTDQMVarCut<egHLT::OffEle>;
113  typedef MonElemWithCutEBEE<OffEle,float> MonElemFloat;
114  int stdCutCode = masks.stdEle;
115 
116  //first do the zero and all cuts histograms
117  histVec.push_back(new MonElemFloat(iBooker, baseName+"_noCuts",baseName+" NoCuts",nrBins,xMin,xMax,vsVarFunc));
118  histVec.push_back(new MonElemFloat(iBooker, baseName+"_allCuts",baseName+" All Cuts",nrBins,xMin,xMax,vsVarFunc,
119  new VarCut(stdCutCode,&OffEle::cutCode)));
120 
121  //now for the n-1
122  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_dEtaIn",baseName+" N1 #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
123  new VarCut(~EgCutCodes::DETAIN&stdCutCode,&OffEle::cutCode)));
124  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_dPhiIn",baseName+" N1 #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
125  new VarCut(~EgCutCodes::DPHIIN&stdCutCode,&OffEle::cutCode)));
126  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_sigmaIEtaIEta",baseName+" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
127  new VarCut(~EgCutCodes::SIGMAIETAIETA&stdCutCode,&OffEle::cutCode)));
128  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_hOverE",baseName+" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
129  new VarCut(~EgCutCodes::HADEM&stdCutCode,&OffEle::cutCode)));
130  /* histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolEm",baseName+" N1 Isol Em",nrBins,xMin,xMax,vsVarFunc,
131  new VarCut(~EgCutCodes::ISOLEM&stdCutCode,&OffEle::cutCode)));
132  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolHad",baseName+" N1 Isol Had",nrBins,xMin,xMax,vsVarFunc,
133  new VarCut(~EgCutCodes::ISOLHAD&stdCutCode,&OffEle::cutCode)));
134  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolPtTrks",baseName+" N1 Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
135  new VarCut(~EgCutCodes::ISOLPTTRKS&stdCutCode,&OffEle::cutCode)));*/
136  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_hltIsolEm",baseName+" N1 HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
137  new VarCut(~EgCutCodes::HLTISOLEM&stdCutCode,&OffEle::cutCode)));
138  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_hltIsolHad",baseName+" N1 HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
139  new VarCut(~EgCutCodes::HLTISOLHAD&stdCutCode,&OffEle::cutCode)));
140  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_hltIsolTrksEle",baseName+" N1 HLT Isol Tracks Ele ",nrBins,xMin,xMax,vsVarFunc,
141  new VarCut(~EgCutCodes::HLTISOLTRKSELE&stdCutCode,&OffEle::cutCode)));
142  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_dEtaIn",baseName+" Single #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
143  new VarCut(EgCutCodes::DETAIN,&OffEle::cutCode)));
144  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_dPhiIn",baseName+" Single #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
145  new VarCut(EgCutCodes::DPHIIN,&OffEle::cutCode)));
146  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_sigmaIEtaIEta",baseName+" Single #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
148  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hOverE",baseName+" Single H/E",nrBins,xMin,xMax,vsVarFunc,
149  new VarCut(EgCutCodes::HADEM,&OffEle::cutCode)));
150  /* histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolEm",baseName+" Single Isol Em",nrBins,xMin,xMax,vsVarFunc,
151  new VarCut(EgCutCodes::ISOLEM,&OffEle::cutCode)));
152  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolHad",baseName+" Single Isol Had",nrBins,xMin,xMax,vsVarFunc,
153  new VarCut(EgCutCodes::ISOLHAD,&OffEle::cutCode)));
154  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolPtTrks",baseName+" Single Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
155  new VarCut(EgCutCodes::ISOLPTTRKS,&OffEle::cutCode)));*/
156  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolEm",baseName+" Single HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
157  new VarCut(EgCutCodes::HLTISOLEM,&OffEle::cutCode)));
158  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolHad",baseName+" Single HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
160  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolTrksEle",baseName+" Single HLT Isol Tracks Ele ",nrBins,xMin,xMax,vsVarFunc,
162  /*histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolTrksPho",baseName+" Single HLT Isol Tracks Pho ",nrBins,xMin,xMax,vsVarFunc,
163  new VarCut(EgCutCodes::HLTISOLTRKSPHO,&OffEle::cutCode)));*/
164 
165 }
int cutCode() const
Definition: EgHLTOffEle.h:211
DQMStore::IBooker & iBooker
void MonElemFuncs::initStdEffHists ( std::vector< MonElemWithCutBase< OffEle > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData::Data1D bins,
float(OffEle::*)() const  vsVarFunc,
const CutMasks masks 
)

Definition at line 99 of file EgHLTMonElemFuncs.cc.

References initStdEffHists(), egHLT::BinData::Data1D::max, egHLT::BinData::Data1D::min, and egHLT::BinData::Data1D::nr.

100 {
101  initStdEffHists(histVec,filterName,baseName,bins.nr,bins.min,bins.max,vsVarFunc,masks);
102 }
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 MonElemFuncs::initStdEffHists ( std::vector< MonElemWithCutBase< OffPho > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
int  nrBins,
double  xMin,
double  xMax,
float(OffPho::*)() const  vsVarFunc,
const CutMasks masks 
)

Definition at line 167 of file EgHLTMonElemFuncs.cc.

References egHLT::OffPho::cutCode(), egHLT::EgCutCodes::HADEM, iBooker, egHLT::EgCutCodes::ISOLEM, egHLT::EgCutCodes::ISOLHAD, egHLT::EgCutCodes::ISOLNRTRKS, egHLT::EgCutCodes::ISOLPTTRKS, egHLT::EgCutCodes::SIGMAIETAIETA, and egHLT::CutMasks::stdPho.

168 {
169  //some convenience typedefs, I hate typedefs but atleast here where they are defined is obvious
170  using VarCut = EgHLTDQMVarCut<egHLT::OffPho>;
171  typedef MonElemWithCutEBEE<OffPho,float> MonElemFloat;
172  int stdCutCode = masks.stdPho;
173 
174  histVec.push_back(new MonElemFloat(iBooker,baseName+"_noCuts",baseName+" NoCuts",nrBins,xMin,xMax,vsVarFunc));
175  histVec.push_back(new MonElemFloat(iBooker,baseName+"_allCuts",baseName+" All Cuts",nrBins,xMin,xMax,vsVarFunc,
176  new VarCut(stdCutCode,&OffPho::cutCode)));
177 
178 
179  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_sigmaIEtaIEta",baseName+" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
180  new VarCut(~EgCutCodes::SIGMAIETAIETA&stdCutCode,&OffPho::cutCode)));
181  //-----Morse------
182  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_hOverE",baseName+" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
183  new VarCut(~EgCutCodes::HADEM&stdCutCode,&OffPho::cutCode)));//---BUG FIX!!--
184  /*histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_minr9",baseName+" N1 MINR9",nrBins,xMin,xMax,vsVarFunc,
185  new VarCut(~EgCutCodes::MINR9&stdCutCode,&OffPho::cutCode)));
186  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_maxr9",baseName+" N1 MAXR9",nrBins,xMin,xMax,vsVarFunc,
187  new VarCut(~EgCutCodes::MAXR9&stdCutCode,&OffPho::cutCode)));*/
188  //----------------
189  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolEm",baseName+" N1 Isol Em",nrBins,xMin,xMax,vsVarFunc,
190  new VarCut(~EgCutCodes::ISOLEM&stdCutCode,&OffPho::cutCode)));
191  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolHad",baseName+" N1 Isol Had",nrBins,xMin,xMax,vsVarFunc,
192  new VarCut(~EgCutCodes::ISOLHAD&stdCutCode,&OffPho::cutCode)));
193  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolPtTrks",baseName+" N1 Pt Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
194  new VarCut(~EgCutCodes::ISOLPTTRKS&stdCutCode,&OffPho::cutCode)));
195  histVec.push_back(new MonElemFloat(iBooker,baseName+"_n1_isolNrTrks",baseName+" N1 Nr Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
196  new VarCut(~EgCutCodes::ISOLNRTRKS&stdCutCode,&OffPho::cutCode)));
197 
198  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hOverE",baseName+" Single H/E",nrBins,xMin,xMax,vsVarFunc,
199  new VarCut(EgCutCodes::HADEM,&OffPho::cutCode)));
200  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_sigmaIEtaIEta",baseName+" Single #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
202  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolEm",baseName+" Single Isol Em",nrBins,xMin,xMax,vsVarFunc,
203  new VarCut(~EgCutCodes::ISOLEM,&OffPho::cutCode)));
204  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolHad",baseName+" Single Isol Had",nrBins,xMin,xMax,vsVarFunc,
205  new VarCut(~EgCutCodes::ISOLHAD,&OffPho::cutCode)));
206  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_isolPtTrks",baseName+" Single Pt Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
207  new VarCut(~EgCutCodes::ISOLPTTRKS,&OffPho::cutCode)));
208  /*histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolHad",baseName+" Single HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
209  new VarCut(EgCutCodes::HLTISOLHAD,&OffPho::cutCode)));
210  histVec.push_back(new MonElemFloat(iBooker,baseName+"_single_hltIsolTrksPho",baseName+" Single HLT Isol Tracks Pho ",nrBins,xMin,xMax,vsVarFunc,
211  new VarCut(EgCutCodes::HLTISOLTRKSPHO,&OffPho::cutCode)));*/
212 
213 
214 }
DQMStore::IBooker & iBooker
int cutCode() const
Definition: EgHLTOffPho.h:147
void MonElemFuncs::initStdEffHists ( std::vector< MonElemWithCutBase< OffPho > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData::Data1D bins,
float(OffPho::*)() const  vsVarFunc,
const CutMasks masks 
)

Definition at line 104 of file EgHLTMonElemFuncs.cc.

References initStdEffHists(), egHLT::BinData::Data1D::max, egHLT::BinData::Data1D::min, and egHLT::BinData::Data1D::nr.

105 {
106  initStdEffHists(histVec,filterName,baseName,bins.nr,bins.min,bins.max,vsVarFunc,masks);
107 }
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 MonElemFuncs::initStdEleCutHists ( std::vector< MonElemWithCutBase< OffEle > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData bins,
EgHLTDQMCut< OffEle > *  cut = 0 
)

Definition at line 219 of file EgHLTMonElemFuncs.cc.

References egHLT::EgHLTDQMCut< T >::clone(), egHLT::OffEle::detEta(), egHLT::BinData::et, egHLT::OffEle::et(), egHLT::BinData::eta, iBooker, egHLT::BinData::Data1D::max, egHLT::BinData::Data1D::min, egHLT::BinData::Data1D::nr, egHLT::BinData::nVertex, egHLT::OffEle::NVertex(), egHLT::BinData::phi, and egHLT::OffEle::phi().

Referenced by getIB(), initTrigTagProbeHist(), initTrigTagProbeHist_2Leg(), and initTrigTagProbeHists().

220 {
221  histVec.push_back(new MonElemWithCutEBEE<OffEle,float>(iBooker,baseName+"_et",
222  baseName+" E_{T};E_{T} (GeV)",
223  bins.et.nr,bins.et.min,bins.et.max,&OffEle::et,cut));
224  histVec.push_back(new MonElemWithCutEBEE<OffEle,float>(iBooker,baseName+"_eta",
225  baseName+" #eta;#eta",
226  bins.eta.nr,bins.eta.min,bins.eta.max,
227  &OffEle::detEta,cut ? cut->clone(): nullptr));
228  histVec.push_back(new MonElemWithCutEBEE<OffEle,float>(iBooker,baseName+"_phi",
229  baseName+" #phi;#phi (rad)",
230  bins.phi.nr,bins.phi.min,bins.phi.max,
231  &OffEle::phi,cut ? cut->clone():nullptr));
232  histVec.push_back(new MonElemWithCutEBEE<OffEle,int>(iBooker,baseName+"_nVertex",
233  baseName+" nVertex;nVertex",
234  bins.nVertex.nr,bins.nVertex.min,bins.nVertex.max,
235  &OffEle::NVertex,cut ? cut->clone():nullptr));
236  /* histVec.push_back(new MonElemWithCutEBEE<OffEle,int>(iBooker,baseName+"_charge",
237  baseName+" Charge; charge",
238  bins.charge.nr,bins.charge.min,bins.charge.max,
239  &OffEle::charge,cut ? cut->clone():NULL)); */
240 }
float detEta() const
Definition: EgHLTOffEle.h:125
virtual EgHLTDQMCut< T > * clone() const =0
float et() const
Definition: EgHLTOffEle.h:117
float phi() const
Definition: EgHLTOffEle.h:121
DQMStore::IBooker & iBooker
int NVertex() const
Definition: EgHLTOffEle.h:107
void MonElemFuncs::initStdEleHists ( std::vector< MonElemManagerBase< OffEle > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData bins 
)

Definition at line 11 of file EgHLTMonElemFuncs.cc.

References egHLT::BinData::deltaE, egHLT::OffEle::DeltaE(), egHLT::BinData::dEtaIn, egHLT::OffEle::dEtaIn(), egHLT::OffEle::detEta(), egHLT::BinData::dPhiIn, egHLT::OffEle::dPhiIn(), egHLT::BinData::e1x5, egHLT::OffEle::e1x5Over5x5(), egHLT::BinData::e2x5, egHLT::OffEle::e2x5MaxOver5x5(), egHLT::BinData::energy, egHLT::OffEle::energy(), egHLT::BinData::eOverP, egHLT::OffEle::epIn(), egHLT::OffEle::epOut(), egHLT::BinData::et, egHLT::OffEle::et(), egHLT::BinData::eta, egHLT::BinData::etaVsPhi, egHLT::BinData::etHigh, egHLT::OffEle::etSC(), egHLT::BinData::HLTenergy, egHLT::OffEle::hltEnergy(), egHLT::BinData::HLTeta, egHLT::OffEle::hltEta(), egHLT::OffEle::hltIsolEm(), egHLT::OffEle::hltIsolHad(), egHLT::OffEle::hltIsolTrksEle(), egHLT::BinData::HLTphi, egHLT::OffEle::hltPhi(), egHLT::BinData::hOverE, egHLT::OffEle::hOverE(), iBooker, egHLT::BinData::invEInvP, egHLT::OffEle::invEInvP(), egHLT::BinData::isolEm, egHLT::BinData::isolHad, egHLT::BinData::isolPtTrks, egHLT::BinData::maxr9, egHLT::BinData::Data2D::nrX, egHLT::BinData::Data2D::nrY, egHLT::BinData::phi, egHLT::OffEle::phi(), egHLT::OffEle::r9(), egHLT::BinData::sigEtaEta, egHLT::OffEle::sigmaIEtaIEta(), egHLT::BinData::Data2D::xMax, egHLT::BinData::Data2D::xMin, egHLT::BinData::Data2D::yMax, and egHLT::BinData::Data2D::yMin.

Referenced by addTightLooseTrigHist(), egHLT::EleHLTFilterMon::EleHLTFilterMon(), and getIB().

12 {
13  addStdHist<OffEle,float>(histVec,baseName+"_energy",baseName+" reco CaloEnergy;reco CaloEnergy (GeV)",bins.energy, &OffEle::energy);
14  addStdHist<OffEle,float>(histVec,baseName+"_et",baseName+" E_{T};E_{T} (GeV)",bins.et,&OffEle::et);
15  addStdHist<OffEle,float>(histVec,baseName+"_etHigh",baseName+" E_{T};E_{T} (GeV)",bins.etHigh,&OffEle::et);
16  addStdHist<OffEle,float>(histVec,baseName+"_etSC",baseName+" E^{SC}_{T};E^{SC}_{T} (GeV)",bins.et,&OffEle::etSC);
17  addStdHist<OffEle,float>(histVec,baseName+"_eta",baseName+" #eta;#eta",bins.eta,&OffEle::detEta);
18  addStdHist<OffEle,float>(histVec,baseName+"_phi",baseName+" #phi;#phi (rad)",bins.phi,&OffEle::phi);
19  // addStdHist<OffEle,int>(histVec,baseName+"_charge",baseName+" Charge; charge",bins.charge,&OffEle::charge);
20 
21  addStdHist<OffEle,float>(histVec,baseName+"_hOverE",baseName+" H/E; H/E",bins.hOverE,&OffEle::hOverE);
22  //----Morse
23  addStdHist<OffEle,float>(histVec,baseName+"_maxr9",baseName+" MAXR9 ; MAXR9",bins.maxr9,&OffEle::r9);
24  addStdHist<OffEle,float>(histVec,baseName+"_HLTenergy",baseName+" HLT Energy;HLT Energy (GeV)",bins.HLTenergy,&OffEle::hltEnergy);
25  addStdHist<OffEle,float>(histVec,baseName+"_HLTeta",baseName+" HLT #eta;HLT #eta",bins.HLTeta,&OffEle::hltEta);
26  addStdHist<OffEle,float>(histVec,baseName+"_HLTphi",baseName+" HLT #phi;HLT #phi (rad)",bins.HLTphi,&OffEle::hltPhi);
27  //-------
28  addStdHist<OffEle,float>(histVec,baseName+"_dPhiIn",baseName+" #Delta #phi_{in}; #Delta #phi_{in}",bins.dPhiIn,&OffEle::dPhiIn);
29  addStdHist<OffEle,float>(histVec,baseName+"_dEtaIn",baseName+" #Delta #eta_{in}; #Delta #eta_{in}",bins.dEtaIn,&OffEle::dEtaIn);
30  addStdHist<OffEle,float>(histVec,baseName+"_sigmaIEtaIEta",baseName+"#sigma_{i#etai#eta}; #sigma_{i#etai#eta}",bins.sigEtaEta,&OffEle::sigmaIEtaIEta);
31  addStdHist<OffEle,float>(histVec,baseName+"_epIn",baseName+"E/p_{in}; E/p_{in}",bins.eOverP,&OffEle::epIn);
32  addStdHist<OffEle,float>(histVec,baseName+"_epOut",baseName+"E/p_{out}; E/p_{out}",bins.eOverP,&OffEle::epOut);
33  addStdHist<OffEle,float>(histVec,baseName+"_invEInvP",baseName+"1/E -1/p; 1/E - 1/p",bins.invEInvP,&OffEle::invEInvP);
34 
35  addStdHist<OffEle,float>(histVec,baseName+"_e2x5Over5x5",baseName+"E^{2x5}/E^{5x5}; E^{2x5}/E^{5x5}",bins.e2x5,&OffEle::e2x5MaxOver5x5);
36  addStdHist<OffEle,float>(histVec,baseName+"_e1x5Over5x5",baseName+"E^{1x5}/E^{5x5}; E^{1x5}/E^{5x5}",bins.e1x5,&OffEle::e1x5Over5x5);
37  //addStdHist<OffEle,float>(histVec,baseName+"_isolEM",baseName+"Isol EM; Isol EM (GeV)",bins.isolEm,&OffEle::isolEm);
38  //addStdHist<OffEle,float>(histVec,baseName+"_isolHad",baseName+"Isol Had; Isol Had (GeV)",bins.isolHad,&OffEle::isolHad);
39  //addStdHist<OffEle,float>(histVec,baseName+"_isolPtTrks",baseName+"Isol Pt Trks; Isol Pt Tracks (GeV/c)",bins.isolPtTrks,&OffEle::isolPtTrks);
40  addStdHist<OffEle,float>(histVec,baseName+"_hltIsolTrksEle",baseName+"HLT Ele Isol Trks; HLT Ele Iso Tracks (GeV/c)",bins.isolPtTrks,&OffEle::hltIsolTrksEle);
41  //addStdHist<OffEle,float>(histVec,baseName+"_hltIsolTrksPho",baseName+"HLT Pho Isol Trks; HLT Pho Iso Tracks (GeV/c)",bins.isolPtTrks,&OffEle::hltIsolTrksPho);
42  addStdHist<OffEle,float>(histVec,baseName+"_hltIsolHad",baseName+"HLT Isol Had; HLT Isol Had (GeV)",bins.isolHad,&OffEle::hltIsolHad);
43  addStdHist<OffEle,float>(histVec,baseName+"_hltIsolEm",baseName+"HLT Isol Em; HLT Isol Em (GeV)",bins.isolEm,&OffEle::hltIsolEm);
44  addStdHist<OffEle,float>(histVec,baseName+"_DeltaE",baseName+"HLT Energy - reco SC Energy;HLT Energy - reco SC Energy (GeV)",bins.deltaE,&OffEle::DeltaE);
45 
46  histVec.push_back(new MonElemManager2D<OffEle,float,float>(iBooker, baseName+"_etaVsPhi",
47  baseName+" #eta vs #phi;#eta;#phi (rad)",
48  bins.etaVsPhi.nrX,bins.etaVsPhi.xMin,bins.etaVsPhi.xMax,
49  bins.etaVsPhi.nrY,bins.etaVsPhi.yMin,bins.etaVsPhi.yMax,
51  histVec.push_back(new MonElemManager2D<OffEle,float,float>(iBooker, baseName+"_HLTetaVsHLTphi",
52  baseName+" HLT #eta vs HLT #phi;HLT #eta;HLT #phi (rad)",
53  bins.etaVsPhi.nrX,bins.etaVsPhi.xMin,bins.etaVsPhi.xMax,
54  bins.etaVsPhi.nrY,bins.etaVsPhi.yMin,bins.etaVsPhi.yMax,
56 }
float e2x5MaxOver5x5() const
Definition: EgHLTOffEle.h:157
float detEta() const
Definition: EgHLTOffEle.h:125
float epIn() const
Definition: EgHLTOffEle.h:148
float r9() const
Definition: EgHLTOffEle.h:160
float invEInvP() const
Definition: EgHLTOffEle.h:163
float et() const
Definition: EgHLTOffEle.h:117
float dPhiIn() const
Definition: EgHLTOffEle.h:145
float hltEnergy() const
Definition: EgHLTOffEle.h:186
Data1D isolPtTrks
Definition: EgHLTBinData.h:59
float dEtaIn() const
Definition: EgHLTOffEle.h:144
float phi() const
Definition: EgHLTOffEle.h:121
float hltEta() const
Definition: EgHLTOffEle.h:185
float DeltaE() const
Definition: EgHLTOffEle.h:188
float sigmaIEtaIEta() const
Definition: EgHLTOffEle.h:154
float hltPhi() const
Definition: EgHLTOffEle.h:184
float hltIsolHad() const
Definition: EgHLTOffEle.h:175
float epOut() const
Definition: EgHLTOffEle.h:149
float energy() const
Definition: EgHLTOffEle.h:119
Data1D HLTenergy
Definition: EgHLTBinData.h:52
DQMStore::IBooker & iBooker
float etSC() const
Definition: EgHLTOffEle.h:122
Data1D sigEtaEta
Definition: EgHLTBinData.h:44
float hltIsolTrksEle() const
Definition: EgHLTOffEle.h:173
float e1x5Over5x5() const
Definition: EgHLTOffEle.h:158
float hOverE() const
Definition: EgHLTOffEle.h:143
float hltIsolEm() const
Definition: EgHLTOffEle.h:176
void MonElemFuncs::initStdPhoCutHists ( std::vector< MonElemWithCutBase< OffPho > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData bins,
EgHLTDQMCut< OffPho > *  cut = 0 
)

Definition at line 243 of file EgHLTMonElemFuncs.cc.

References egHLT::EgHLTDQMCut< T >::clone(), egHLT::OffPho::detEta(), egHLT::BinData::et, egHLT::OffPho::et(), egHLT::BinData::eta, iBooker, egHLT::BinData::Data1D::max, egHLT::BinData::Data1D::min, egHLT::BinData::Data1D::nr, egHLT::BinData::phi, and egHLT::OffPho::phi().

Referenced by getIB(), initTrigTagProbeHist(), and initTrigTagProbeHists().

244 {
245  histVec.push_back(new MonElemWithCutEBEE<OffPho,float>(iBooker,baseName+"_et",
246  baseName+" E_{T};E_{T} (GeV)",
247  bins.et.nr,bins.et.min,bins.et.max,&OffPho::et,cut));
248  histVec.push_back(new MonElemWithCutEBEE<OffPho,float>(iBooker,baseName+"_eta",
249  baseName+" #eta;#eta",
250  bins.eta.nr,bins.eta.min,bins.eta.max,
251  &OffPho::detEta,cut ? cut->clone(): nullptr));
252  histVec.push_back(new MonElemWithCutEBEE<OffPho,float>(iBooker,baseName+"_phi",
253  baseName+" #phi;#phi (rad)",
254  bins.phi.nr,bins.phi.min,bins.phi.max,
255  &OffPho::phi,cut ? cut->clone():nullptr));
256  /* histVec.push_back(new MonElemWithCutEBEE<OffPho,int>(iBooker,baseName+"_charge",
257  baseName+" Charge; charge",
258  bins.charge.nr,bins.charge.min,bins.charge.max,
259  &OffPho::charge,cut ? cut->clone():NULL)); */
260 }
virtual EgHLTDQMCut< T > * clone() const =0
float et() const
Definition: EgHLTOffPho.h:101
float detEta() const
Definition: EgHLTOffPho.h:108
DQMStore::IBooker & iBooker
float phi() const
Definition: EgHLTOffPho.h:105
void MonElemFuncs::initStdPhoHists ( std::vector< MonElemManagerBase< OffPho > * > &  histVec,
const std::string &  filterName,
const std::string &  baseName,
const BinData bins 
)

Definition at line 58 of file EgHLTMonElemFuncs.cc.

References egHLT::BinData::deltaE, egHLT::OffPho::DeltaE(), egHLT::OffPho::detEta(), egHLT::BinData::e1x5, egHLT::OffPho::e1x5Over5x5(), egHLT::BinData::e2x5, egHLT::OffPho::e2x5MaxOver5x5(), egHLT::BinData::energy, egHLT::OffPho::energy(), egHLT::BinData::et, egHLT::OffPho::et(), egHLT::BinData::eta, egHLT::BinData::etaVsPhi, egHLT::BinData::etHigh, egHLT::OffPho::etSC(), egHLT::BinData::HLTenergy, egHLT::OffPho::hltEnergy(), egHLT::BinData::HLTeta, egHLT::OffPho::hltEta(), egHLT::BinData::HLTphi, egHLT::OffPho::hltPhi(), egHLT::BinData::hOverE, egHLT::OffPho::hOverE(), iBooker, egHLT::BinData::isolEm, egHLT::OffPho::isolEm(), egHLT::BinData::isolHad, egHLT::OffPho::isolHad(), egHLT::BinData::isolNrTrks, egHLT::OffPho::isolNrTrks(), egHLT::BinData::isolPtTrks, egHLT::OffPho::isolPtTrks(), egHLT::BinData::maxr9, egHLT::BinData::Data2D::nrX, egHLT::BinData::Data2D::nrY, egHLT::BinData::phi, egHLT::OffPho::phi(), egHLT::OffPho::r9(), egHLT::BinData::sigEtaEta, egHLT::OffPho::sigmaIEtaIEta(), egHLT::BinData::Data2D::xMax, egHLT::BinData::Data2D::xMin, egHLT::BinData::Data2D::yMax, and egHLT::BinData::Data2D::yMin.

Referenced by addTightLooseTrigHist(), getIB(), and egHLT::PhoHLTFilterMon::PhoHLTFilterMon().

59 {
60  addStdHist<OffPho,float>(histVec,baseName+"_energy",baseName+" reco Energy;reco Energy (GeV)",bins.energy, &OffPho::energy);
61  addStdHist<OffPho,float>(histVec,baseName+"_et",baseName+" E_{T};E_{T} (GeV)",bins.et,&OffPho::et);
62  addStdHist<OffPho,float>(histVec,baseName+"_etHigh",baseName+" E_{T};E_{T} (GeV)",bins.etHigh,&OffPho::et);
63  addStdHist<OffPho,float>(histVec,baseName+"_etSC",baseName+" E^{SC}_{T};E^{SC}_{T} (GeV)",bins.et,&OffPho::etSC);
64  addStdHist<OffPho,float>(histVec,baseName+"_eta",baseName+" #eta;#eta",bins.eta,&OffPho::detEta);
65  addStdHist<OffPho,float>(histVec,baseName+"_phi",baseName+" #phi;#phi (rad)",bins.phi,&OffPho::phi);
66 
67  addStdHist<OffPho,float>(histVec,baseName+"_hOverE",baseName+" H/E; H/E",bins.hOverE,&OffPho::hOverE);
68  //----Morse
69  //addStdHist<OffPho,float>(histVec,baseName+"_r9",baseName+" R9 ; R9",bins.r9,&OffPho::r9);
70  //addStdHist<OffPho,float>(histVec,baseName+"_minr9",baseName+" MINR9 ; MINR9",bins.minr9,&OffPho::r9);
71  addStdHist<OffPho,float>(histVec,baseName+"_maxr9",baseName+" MAXR9 ; MAXR9",bins.maxr9,&OffPho::r9);
72  addStdHist<OffPho,float>(histVec,baseName+"_HLTenergy",baseName+" HLT Energy;HLT Energy (GeV)",bins.HLTenergy,&OffPho::hltEnergy);
73  addStdHist<OffPho,float>(histVec,baseName+"_HLTeta",baseName+" HLT #eta;HLT #eta",bins.HLTeta,&OffPho::hltEta);
74  addStdHist<OffPho,float>(histVec,baseName+"_HLTphi",baseName+" HLT #phi;HLT #phi (rad)",bins.HLTphi,&OffPho::hltPhi);
75  //-------
76  addStdHist<OffPho,float>(histVec,baseName+"_sigmaIEtaIEta",baseName+"#sigma_{i#etai#eta}; #sigma_{i#etai#eta}",bins.sigEtaEta,&OffPho::sigmaIEtaIEta);
77  addStdHist<OffPho,float>(histVec,baseName+"_e2x5Over5x5",baseName+"E^{2x5}/E^{5x5}; E^{2x5}/E^{5x5}",bins.e2x5,&OffPho::e2x5MaxOver5x5);
78  addStdHist<OffPho,float>(histVec,baseName+"_e1x5Over5x5",baseName+"E^{1x5}/E^{5x5}; E^{1x5}/E^{5x5}",bins.e1x5,&OffPho::e1x5Over5x5);
79  addStdHist<OffPho,float>(histVec,baseName+"_isolEM",baseName+"Isol EM; Isol EM (GeV)",bins.isolEm,&OffPho::isolEm);
80  addStdHist<OffPho,float>(histVec,baseName+"_isolHad",baseName+"Isol Had; Isol Had (GeV)",bins.isolHad,&OffPho::isolHad);
81  addStdHist<OffPho,float>(histVec,baseName+"_isolPtTrks",baseName+"Isol Pt Trks; Isol Pt Tracks (GeV/c)",bins.isolPtTrks,&OffPho::isolPtTrks);
82  addStdHist<OffPho,int>(histVec,baseName+"_isolNrTrks",baseName+"Isol Nr Trks; Isol Nr Tracks",bins.isolNrTrks,&OffPho::isolNrTrks);
83  //addStdHist<OffPho,float>(histVec,baseName+"_hltIsolTrks",baseName+"HLT Isol Trks; HLT Iso Tracks (GeV/c)",bins.isolPtTrks,&OffPho::hltIsolTrks);
84  //addStdHist<OffPho,float>(histVec,baseName+"_hltIsolHad",baseName+"HLT Isol Had; HLT Isol Had (GeV)",bins.isolPtTrks,&OffPho::hltIsolHad);
85  addStdHist<OffPho,float>(histVec,baseName+"_DeltaE",baseName+"HLT Energy - reco SC Energy;HLT Energy - reco SC Energy (GeV)",bins.deltaE,&OffPho::DeltaE);
86 
87  histVec.push_back(new MonElemManager2D<OffPho,float,float>(iBooker, baseName+"_etaVsPhi",
88  baseName+" #eta vs #phi;#eta;#phi (rad)",
89  bins.etaVsPhi.nrX,bins.etaVsPhi.xMin,bins.etaVsPhi.xMax,
90  bins.etaVsPhi.nrY,bins.etaVsPhi.yMin,bins.etaVsPhi.yMax,
92  histVec.push_back(new MonElemManager2D<OffPho,float,float>(iBooker, baseName+"_HLTetaVsHLTphi",
93  baseName+" HLT #eta vs HLT #phi;HLT #eta;HLT #phi (rad)",
94  bins.etaVsPhi.nrX,bins.etaVsPhi.xMin,bins.etaVsPhi.xMax,
95  bins.etaVsPhi.nrY,bins.etaVsPhi.yMin,bins.etaVsPhi.yMax,
97 }
float e1x5Over5x5() const
Definition: EgHLTOffPho.h:126
Data1D isolNrTrks
Definition: EgHLTBinData.h:60
float et() const
Definition: EgHLTOffPho.h:101
float isolHad() const
Definition: EgHLTOffPho.h:131
float isolPtTrks() const
Definition: EgHLTOffPho.h:133
float DeltaE() const
Definition: EgHLTOffPho.h:144
float hltEta() const
Definition: EgHLTOffPho.h:141
float energy() const
Definition: EgHLTOffPho.h:103
Data1D isolPtTrks
Definition: EgHLTBinData.h:59
float detEta() const
Definition: EgHLTOffPho.h:108
float hOverE() const
Definition: EgHLTOffPho.h:116
float r9() const
Definition: EgHLTOffPho.h:127
float e2x5MaxOver5x5() const
Definition: EgHLTOffPho.h:125
float hltPhi() const
Definition: EgHLTOffPho.h:140
float etSC() const
Definition: EgHLTOffPho.h:106
Data1D HLTenergy
Definition: EgHLTBinData.h:52
float sigmaIEtaIEta() const
Definition: EgHLTOffPho.h:122
DQMStore::IBooker & iBooker
Data1D sigEtaEta
Definition: EgHLTBinData.h:44
float phi() const
Definition: EgHLTOffPho.h:105
int isolNrTrks() const
Definition: EgHLTOffPho.h:132
float isolEm() const
Definition: EgHLTOffPho.h:130
float hltEnergy() const
Definition: EgHLTOffPho.h:142
void MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins 
)

Definition at line 383 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), egHLT::TrigCodes::getCode(), split, splitString(), AlCaHLTBitMon_QueryRunRegistry::string, trigCodes, and egHLT::OffEle::trigCutsCutCode().

Referenced by EgHLTOfflineSource::bookHistograms(), and getIB().

384 {
385  for(auto const & tightLooseTrig : tightLooseTrigs){
386  std::vector<std::string> splitString;
387  boost::split(splitString,tightLooseTrig,boost::is_any_of(std::string(":")));
388  if(splitString.size()!=2) continue; //format incorrect
389  const std::string& tightTrig = splitString[0];
390  const std::string& looseTrig = splitString[1];
392  addTightLooseTrigHist(eleMonElems,tightTrig,looseTrig,eleCut,"gsfEle_trigCuts",bins);
393  }
394 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
std::vector< std::string > splitString(const std::string &fLine)
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffEle.cc:20
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins 
)

Definition at line 398 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), egHLT::TrigCodes::getCode(), split, splitString(), AlCaHLTBitMon_QueryRunRegistry::string, trigCodes, and egHLT::OffPho::trigCutsCutCode().

399 {
400  for(auto const & tightLooseTrig : tightLooseTrigs){
401  std::vector<std::string> splitString;
402  boost::split(splitString,tightLooseTrig,boost::is_any_of(std::string(":")));
403  if(splitString.size()!=2) continue; //format incorrect
404  const std::string& tightTrig = splitString[0];
405  const std::string& looseTrig = splitString[1];
407  addTightLooseTrigHist(phoMonElems,tightTrig,looseTrig,phoCut,"pho_trigCuts",bins);
408  }
409 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffPho.cc:16
std::vector< std::string > splitString(const std::string &fLine)
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTightLooseTrigHists ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins,
EgHLTDQMCut< OffEle > *  eleCut 
)

Definition at line 263 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), create_public_pileup_plots::bins, egHLT::EgHLTDQMCut< T >::clone(), split, splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EgHLTOfflineSource::bookHistograms(), and getIB().

264 {
265  for(size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
266  std::vector<std::string> splitString;
267  boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(":")));
268  if(splitString.size()!=2) continue; //format incorrect
269  const std::string& tightTrig = splitString[0];
270  const std::string& looseTrig = splitString[1];
271  //this step is necessary as we want to transfer ownership of eleCut to the addTrigLooseTrigHist func on the last iteration
272  //but clone it before that
273  //perhaps my object ownership rules need to be re-evalulated
274  if(trigNr!=tightLooseTrigs.size()-2) addTightLooseTrigHist(eleMonElems,tightTrig,looseTrig,eleCut->clone(),"gsfEle",bins);
275  else addTightLooseTrigHist(eleMonElems,tightTrig,looseTrig,eleCut,"gsfEle",bins);
276  }
277 }
virtual EgHLTDQMCut< T > * clone() const =0
std::vector< std::string > splitString(const std::string &fLine)
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTightLooseTrigHists ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins,
EgHLTDQMCut< OffPho > *  phoCut 
)

Definition at line 280 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), create_public_pileup_plots::bins, egHLT::EgHLTDQMCut< T >::clone(), split, splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.

281 {
282  for(size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
283  std::vector<std::string> splitString;
284  boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(":")));
285  if(splitString.size()!=2) continue; //format incorrect
286  const std::string& tightTrig = splitString[0];
287  const std::string& looseTrig = splitString[1];
288 
289  //this step is necessary as we want to transfer ownership of phoCut to the addTrigLooseTrigHist func on the last iteration
290  //but clone it before that
291  //perhaps my object ownership rules need to be re-evalulated
292  if(trigNr!=tightLooseTrigs.size()-2) addTightLooseTrigHist(phoMonElems,tightTrig,looseTrig,phoCut->clone(),"pho",bins);
293  else addTightLooseTrigHist(phoMonElems,tightTrig,looseTrig,phoCut,"pho",bins);
294  }
295 }
virtual EgHLTDQMCut< T > * clone() const =0
std::vector< std::string > splitString(const std::string &fLine)
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)
double split
Definition: MVATrainer.cc:139
template<class T >
void egHLT::MonElemFuncs::initTightLooseTrigHists ( std::vector< MonElemContainer< T > * > &  monElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins,
const std::string &  objName 
)
inline

Definition at line 117 of file EgHLTMonElemFuncs.h.

References addTightLooseTrigHist(), split, splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.

118  {
119  for(size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
120  //dbe_->SetCurrentFolder(dirName_+"/"+tightLooseTrigs[trigNr]);
121  std::vector<std::string> splitString;
122  boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(":")));
123  if(splitString.size()!=2) continue; //format incorrect
124  const std::string& tightTrig = splitString[0];
125  const std::string& looseTrig = splitString[1];
126  //this step is necessary as we want to transfer ownership of eleCut to the addTrigLooseTrigHist func on the last iteration
127  //but clone it before that
128  //perhaps my object ownership rules need to be re-evalulated
129  if(trigNr!=tightLooseTrigs.size()-2) addTightLooseTrigHist(monElems,tightTrig,looseTrig,objName,bins);
130  else addTightLooseTrigHist(monElems,tightTrig,looseTrig,objName,bins);
131  }
132  //dbe_->SetCurrentFolder(dirName_);
133  }
std::vector< std::string > splitString(const std::string &fLine)
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTightLooseTrigHistsTrigCuts ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins 
)

Definition at line 354 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), egHLT::TrigCodes::getCode(), split, splitString(), AlCaHLTBitMon_QueryRunRegistry::string, trigCodes, and egHLT::OffEle::trigCutsCutCode().

Referenced by getIB().

355 {
356  for(auto const & tightLooseTrig : tightLooseTrigs){
357  std::vector<std::string> splitString;
358  boost::split(splitString,tightLooseTrig,boost::is_any_of(std::string(":")));
359  if(splitString.size()!=2) continue; //format incorrect
360  const std::string& tightTrig = splitString[0];
361  const std::string& looseTrig = splitString[1];
363  addTightLooseTrigHist(eleMonElems,tightTrig,looseTrig,eleCut,"gsfEle_trigCuts",bins);
364  }
365 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
std::vector< std::string > splitString(const std::string &fLine)
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffEle.cc:20
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTightLooseTrigHistsTrigCuts ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::vector< std::string > &  tightLooseTrigs,
const BinData bins 
)

Definition at line 368 of file EgHLTMonElemFuncs.cc.

References addTightLooseTrigHist(), egHLT::TrigCodes::getCode(), split, splitString(), AlCaHLTBitMon_QueryRunRegistry::string, trigCodes, and egHLT::OffPho::trigCutsCutCode().

369 {
370  for(auto const & tightLooseTrig : tightLooseTrigs){
371  std::vector<std::string> splitString;
372  boost::split(splitString,tightLooseTrig,boost::is_any_of(std::string(":")));
373  if(splitString.size()!=2) continue; //format incorrect
374  const std::string& tightTrig = splitString[0];
375  const std::string& looseTrig = splitString[1];
377  addTightLooseTrigHist(phoMonElems,tightTrig,looseTrig,phoCut,"pho_trigCuts",bins);
378  }
379 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffPho.cc:16
std::vector< std::string > splitString(const std::string &fLine)
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)
double split
Definition: MVATrainer.cc:139
void MonElemFuncs::initTrigTagProbeHist ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::string &  filterName,
int  cutMask,
const BinData bins 
)

Definition at line 445 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::OffEle::cutCode(), egHLT::MonElemContainer< T >::cutMonElems(), egHLT::OffEle::etSC(), egHLT::TrigCodes::getCode(), initStdEleCutHists(), egHLT::MonElemContainer< T >::name(), AlCaHLTBitMon_QueryRunRegistry::string, and trigCodes.

Referenced by EgHLTOfflineSource::bookHistograms(), and getIB().

446 {
447  const std::string& trigName(filterName);
448  //float etCutValue = 1.1*trigTools::getSecondEtThresFromName(filterName);
449  float etCutValue = 0.;
450  //std::cout<<"TrigName= "<<trigName<<" etCutValue= "<<etCutValue<<std::endl;
451  MonElemContainer<OffEle>* monElemCont = new MonElemContainer<OffEle>("trigTagProbe","Trigger Tag and Probe",new EgTrigTagProbeCut_New(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),cutMask,&OffEle::cutCode));
452  //this is all that pass trigtagprobecut
453  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_all",bins,new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC));
454  //this is all that pass trigtagprobecut and the probe passes the test trigger
455  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_pass",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));
456  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is NOT a tag
457  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_passNotTag",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND,trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffEle>::AND)));
458  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is also a tag
459  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_passTagTag",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND) << new EgObjTrigCut<OffEle>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffEle>::AND) ));
460  //this is all that pass trigtagprobecut and the probe fails the test trigger
461  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_fail",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),EgObjTrigCut<OffEle>::AND,trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));
462  /*
463  monElemCont->monElems().push_back(new MonElemMgrEBEE<OffEle,float>(iBooker,trigName+"_"+monElemCont->name()+"_gsfEle_all_etUnCut",monElemCont->name()+"_gsfEle_all E_{T} (Uncut);E_{T} (GeV)",
464  bins.et.nr,bins.et.min,bins.et.max,&OffEle::et));
465  monElemCont->cutMonElems().push_back(new MonElemWithCutEBEE<OffEle,float>(iBooker,trigName+"_"+monElemCont->name()+"_gsfEle_pass_etUnCut",monElemCont->name()+"_gsfEle_pass E_{T} (Uncut);E_{T} (GeV)",
466  bins.et.nr,bins.et.min,bins.et.max,&OffEle::et,new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));*/
467  eleMonElems.push_back(monElemCont);
468 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
const std::string & name() const
int cutCode() const
Definition: EgHLTOffEle.h:211
float etSC() const
Definition: EgHLTOffEle.h:122
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=0)
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
void MonElemFuncs::initTrigTagProbeHist ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::string &  filterName,
int  cutMask,
const BinData bins 
)

Definition at line 518 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::OffPho::cutCode(), egHLT::MonElemContainer< T >::cutMonElems(), egHLT::OffPho::etSC(), egHLT::TrigCodes::getCode(), initStdPhoCutHists(), egHLT::MonElemContainer< T >::name(), AlCaHLTBitMon_QueryRunRegistry::string, and trigCodes.

519 {
520  const std::string& trigName(filterName);
521  //float etCutValue = 1.1*trigTools::getSecondEtThresFromName(trigName);
522  float etCutValue = 0.;
523  //std::cout<<"TrigName= "<<trigName<<" etCutValue= "<<etCutValue<<std::endl;
524  MonElemContainer<OffPho>* monElemCont = new MonElemContainer<OffPho>("trigTagProbe","Trigger Tag and Probe",new EgTrigTagProbeCut_NewPho(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),cutMask,&OffPho::cutCode));
525  //this is all that pass trigtagprobecut
526  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_all",bins,new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC));
527  //this is all that pass trigtagprobecut and the probe passes the test trigger
528  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_pass",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));
529  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is NOT a tag
530  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_passNotTag",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND,trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffPho>::AND)));
531  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is also a tag
532  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_passTagTag",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND) << new EgObjTrigCut<OffPho>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffPho>::AND) ));
533  //this is all that pass trigtagprobecut and the probe fails the test trigger
534  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_fail",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),EgObjTrigCut<OffPho>::AND,trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));
535  /*
536  monElemCont->monElems().push_back(new MonElemMgrEBEE<OffPho,float>(iBooker,trigName+"_"+monElemCont->name()+"_pho_all_etUnCut",monElemCont->name()+"_gsfEle_all E_{T} (Uncut);E_{T} (GeV)",
537  bins.et.nr,bins.et.min,bins.et.max,&OffPho::et));
538  monElemCont->cutMonElems().push_back(new MonElemWithCutEBEE<OffPho,float>(iBooker,trigName+"_"+monElemCont->name()+"_pho_pass_etUnCut",monElemCont->name()+"_gsfEle_pass E_{T} (Uncut);E_{T} (GeV)",
539  bins.et.nr,bins.et.min,bins.et.max,&OffPho::et,new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));*/
540  phoMonElems.push_back(monElemCont);
541 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
const std::string & name() const
void initStdPhoCutHists(std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffPho > *cut=0)
float etSC() const
Definition: EgHLTOffPho.h:106
int cutCode() const
Definition: EgHLTOffPho.h:147
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
void MonElemFuncs::initTrigTagProbeHist_2Leg ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::string &  filterName,
int  cutMask,
const BinData bins 
)

Definition at line 471 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::OffEle::cutCode(), egHLT::MonElemContainer< T >::cutMonElems(), egHLT::OffEle::etSC(), egHLT::TrigCodes::getCode(), initStdEleCutHists(), egHLT::MonElemContainer< T >::name(), AlCaHLTBitMon_QueryRunRegistry::string, and trigCodes.

Referenced by EgHLTOfflineSource::bookHistograms(), and getIB().

472 {
473 
474  std::string trigNameLeg1 = filterName.substr(0,filterName.find("::"));
475  std::string trigNameLeg2 = filterName.substr(filterName.find("::")+2);
476 
477  float etCutValue = 0.;
478  MonElemContainer<OffEle>* monElemCont = new MonElemContainer<OffEle>("trigTagProbe","Trigger Tag and Probe",new EgTrigTagProbeCut_New(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),cutMask,&OffEle::cutCode));
479  //this is all that pass trigtagprobecut
480  //MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigNameLeg2,trigNameLeg2+"_"+monElemCont->name()+"_gsfEle_allEt20",bins,new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC));
481  //this is all that pass trigtagprobecut and the probe passes the first trigger
482  //MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigNameLeg2,trigNameLeg2+"_"+monElemCont->name()+"_gsfEle_passEt20",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigNameLeg1),EgObjTrigCut<OffEle>::AND)));
483  //this is all that pass trigtagprobecut and the probe passes the second trigger and fails the first trigger
484  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigNameLeg2,trigNameLeg2+"_"+monElemCont->name()+"_gsfEle_passLeg2failLeg1",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigNameLeg2),EgObjTrigCut<OffEle>::AND,trigCodes.getCode(trigNameLeg1),EgObjTrigCut<OffEle>::AND)));
485 
486 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
const std::string & name() const
int cutCode() const
Definition: EgHLTOffEle.h:211
float etSC() const
Definition: EgHLTOffEle.h:122
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=0)
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
void MonElemFuncs::initTrigTagProbeHists ( std::vector< MonElemContainer< OffEle > * > &  eleMonElems,
const std::vector< std::string > &  filterNames,
int  cutMask,
const BinData bins 
)

Definition at line 416 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::OffEle::cutCode(), egHLT::MonElemContainer< T >::cutMonElems(), egHLT::OffEle::etSC(), egHLT::TrigCodes::getCode(), initStdEleCutHists(), egHLT::MonElemContainer< T >::name(), and trigCodes.

Referenced by getIB().

417 {
418  for(auto trigName : filterNames){
419 
420  // float etCutValue = trigTools::getSecondEtThresFromName(trigName);
421  float etCutValue = 0.;
422  //std::cout<<"TrigName= "<<trigName<<" etCutValue= "<<etCutValue<<std::endl;
423  MonElemContainer<OffEle>* monElemCont = new MonElemContainer<OffEle>("trigTagProbe","Trigger Tag and Probe",new EgTrigTagProbeCut_New(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFiltesr"),cutMask,&OffEle::cutCode));
424  //this is all that pass trigtagprobecut
425  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_all",bins,new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC));
426  //this is all that pass trigtagprobecut and the probe passes the test trigger
427  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_pass",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));
428  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is NOT a tag
429  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_passNotTag",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND,trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffEle>::AND)));
430  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is also a tag
431  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_passTagTag",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND) << new EgObjTrigCut<OffEle>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffEle>::AND) ));
432  //this is all that pass trigtagprobecut and the probe fails the test trigger
433  MonElemFuncs::initStdEleCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_gsfEle_fail",bins,&(*(new EgMultiCut<OffEle>) << new EgGreaterCut<OffEle,float>(etCutValue,&OffEle::etSC) << new EgObjTrigCut<OffEle>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),EgObjTrigCut<OffEle>::AND,trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));
434  /*
435  monElemCont->monElems().push_back(new MonElemMgrEBEE<OffEle,float>(iBooker,trigName+"_"+monElemCont->name()+"_gsfEle_all_etUnCut",monElemCont->name()+"_gsfEle_all E_{T} (Uncut);E_{T} (GeV)",
436  bins.et.nr,bins.et.min,bins.et.max,&OffEle::et));
437  monElemCont->cutMonElems().push_back(new MonElemWithCutEBEE<OffEle,float>(iBooker,trigName+"_"+monElemCont->name()+"_gsfEle_pass_etUnCut",monElemCont->name()+"_gsfEle_pass E_{T} (Uncut);E_{T} (GeV)",
438  bins.et.nr,bins.et.min,bins.et.max,&OffEle::et,new EgObjTrigCut<OffEle>(trigCodes.getCode(trigName),EgObjTrigCut<OffEle>::AND)));*/
439  eleMonElems.push_back(monElemCont);
440  } //end filter names loop
441 
442 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
const std::string & name() const
int cutCode() const
Definition: EgHLTOffEle.h:211
float etSC() const
Definition: EgHLTOffEle.h:122
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=0)
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
void MonElemFuncs::initTrigTagProbeHists ( std::vector< MonElemContainer< OffPho > * > &  phoMonElems,
const std::vector< std::string > &  filterNames,
int  cutMask,
const BinData bins 
)

Definition at line 490 of file EgHLTMonElemFuncs.cc.

References create_public_pileup_plots::bins, egHLT::OffPho::cutCode(), egHLT::MonElemContainer< T >::cutMonElems(), egHLT::OffPho::etSC(), egHLT::TrigCodes::getCode(), initStdPhoCutHists(), egHLT::MonElemContainer< T >::name(), and trigCodes.

491 {
492  for(auto trigName : filterNames){
493 
494  //float etCutValue = trigTools::getSecondEtThresFromName(trigName);
495  float etCutValue = 0.;
496  //std::cout<<"TrigName= "<<trigName<<" etCutValue= "<<etCutValue<<std::endl;
497  MonElemContainer<OffPho>* monElemCont = new MonElemContainer<OffPho>("trigTagProbe","Trigger Tag and Probe",new EgTrigTagProbeCut_NewPho(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),cutMask,&OffPho::cutCode));
498  //this is all that pass trigtagprobecut
499  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_all",bins,new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC));
500  //this is all that pass trigtagprobecut and the probe passes the test trigger
501  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_pass",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));
502  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is NOT a tag
503  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_passNotTag",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND,trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffPho>::AND)));
504  //this is all that pass trigtagprobecut and the probe passes the test trigger and the probe is also a tag
505  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_passTagTag",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND) << new EgObjTrigCut<OffPho>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17TrackIsolFilter"),EgObjTrigCut<OffPho>::AND) ));
506  //this is all that pass trigtagprobecut and the probe fails the test trigger
507  MonElemFuncs::initStdPhoCutHists(monElemCont->cutMonElems(),trigName,trigName+"_"+monElemCont->name()+"_pho_fail",bins,&(*(new EgMultiCut<OffPho>) << new EgGreaterCut<OffPho,float>(etCutValue,&OffPho::etSC) << new EgObjTrigCut<OffPho>(trigCodes.getCode("hltEle32CaloIdTCaloIsoTTrkIdTTrkIsoTSC17HEDoubleFilter"),EgObjTrigCut<OffPho>::AND,trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));
508  /*
509  monElemCont->monElems().push_back(new MonElemMgrEBEE<OffPho,float>(iBooker,trigName+"_"+monElemCont->name()+"_pho_all_etUnCut",monElemCont->name()+"_gsfEle_all E_{T} (Uncut);E_{T} (GeV)",
510  bins.et.nr,bins.et.min,bins.et.max,&OffPho::et));
511  monElemCont->cutMonElems().push_back(new MonElemWithCutEBEE<OffPho,float>(iBooker,trigName+"_"+monElemCont->name()+"_pho_pass_etUnCut",monElemCont->name()+"_gsfEle_pass E_{T} (Uncut);E_{T} (GeV)",
512  bins.et.nr,bins.et.min,bins.et.max,&OffPho::et,new EgObjTrigCut<OffPho>(trigCodes.getCode(trigName),EgObjTrigCut<OffPho>::AND)));*/
513  phoMonElems.push_back(monElemCont);
514  } //end filter names loop
515 
516 }
const TrigCodes & trigCodes
TrigBitSet getCode(const char *descript) const
const std::string & name() const
void initStdPhoCutHists(std::vector< MonElemWithCutBase< OffPho > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffPho > *cut=0)
float etSC() const
Definition: EgHLTOffPho.h:106
int cutCode() const
Definition: EgHLTOffPho.h:147
std::vector< MonElemWithCutBase< T > * > & cutMonElems()

Member Data Documentation

DQMStore::IBooker& egHLT::MonElemFuncs::iBooker
private
const TrigCodes& egHLT::MonElemFuncs::trigCodes
private