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);
21 addStdHist<OffEle,float>(histVec,baseName+
"_hOverE",baseName+
" H/E; H/E",bins.
hOverE,&
OffEle::hOverE);
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);
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);
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);
40 addStdHist<OffEle,float>(histVec,baseName+
"_hltIsolTrksEle",baseName+
"HLT Ele Isol Trks; HLT Ele Iso Tracks (GeV/c)",bins.
isolPtTrks,&
OffEle::hltIsolTrksEle);
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);
47 baseName+
" #eta vs #phi;#eta;#phi (rad)",
52 baseName+
" HLT #eta vs HLT #phi;HLT #eta;HLT #phi (rad)",
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);
67 addStdHist<OffPho,float>(histVec,baseName+
"_hOverE",baseName+
" H/E; H/E",bins.
hOverE,&
OffPho::hOverE);
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);
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);
85 addStdHist<OffPho,float>(histVec,baseName+
"_DeltaE",baseName+
"HLT Energy - reco SC Energy;HLT Energy - reco SC Energy (GeV)",bins.
deltaE,&
OffPho::DeltaE);
88 baseName+
" #eta vs #phi;#eta;#phi (rad)",
93 baseName+
" HLT #eta vs HLT #phi;HLT #eta;HLT #phi (rad)",
114 int stdCutCode = masks.
stdEle;
117 histVec.push_back(
new MonElemFloat(baseName+
"_noCuts",baseName+
" NoCuts",nrBins,xMin,xMax,vsVarFunc));
118 histVec.push_back(
new MonElemFloat(baseName+
"_allCuts",baseName+
" All Cuts",nrBins,xMin,xMax,vsVarFunc,
122 histVec.push_back(
new MonElemFloat(baseName+
"_n1_dEtaIn",baseName+
" N1 #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
124 histVec.push_back(
new MonElemFloat(baseName+
"_n1_dPhiIn",baseName+
" N1 #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
126 histVec.push_back(
new MonElemFloat(baseName+
"_n1_sigmaIEtaIEta",baseName+
" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
128 histVec.push_back(
new MonElemFloat(baseName+
"_n1_hOverE",baseName+
" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
136 histVec.push_back(
new MonElemFloat(baseName+
"_n1_hltIsolEm",baseName+
" N1 HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
138 histVec.push_back(
new MonElemFloat(baseName+
"_n1_hltIsolHad",baseName+
" N1 HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
140 histVec.push_back(
new MonElemFloat(baseName+
"_n1_hltIsolTrksEle",baseName+
" N1 HLT Isol Tracks Ele ",nrBins,xMin,xMax,vsVarFunc,
142 histVec.push_back(
new MonElemFloat(baseName+
"_single_dEtaIn",baseName+
" Single #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
144 histVec.push_back(
new MonElemFloat(baseName+
"_single_dPhiIn",baseName+
" Single #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
146 histVec.push_back(
new MonElemFloat(baseName+
"_single_sigmaIEtaIEta",baseName+
" Single #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
148 histVec.push_back(
new MonElemFloat(baseName+
"_single_hOverE",baseName+
" Single H/E",nrBins,xMin,xMax,vsVarFunc,
156 histVec.push_back(
new MonElemFloat(baseName+
"_single_hltIsolEm",baseName+
" Single HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
158 histVec.push_back(
new MonElemFloat(baseName+
"_single_hltIsolHad",baseName+
" Single HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
160 histVec.push_back(
new MonElemFloat(baseName+
"_single_hltIsolTrksEle",baseName+
" Single HLT Isol Tracks Ele ",nrBins,xMin,xMax,vsVarFunc,
172 int stdCutCode = masks.
stdPho;
174 histVec.push_back(
new MonElemFloat(baseName+
"_noCuts",baseName+
" NoCuts",nrBins,xMin,xMax,vsVarFunc));
175 histVec.push_back(
new MonElemFloat(baseName+
"_allCuts",baseName+
" All Cuts",nrBins,xMin,xMax,vsVarFunc,
179 histVec.push_back(
new MonElemFloat(baseName+
"_n1_sigmaIEtaIEta",baseName+
" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
182 histVec.push_back(
new MonElemFloat(baseName+
"_n1_hOverE",baseName+
" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
189 histVec.push_back(
new MonElemFloat(baseName+
"_n1_isolEm",baseName+
" N1 Isol Em",nrBins,xMin,xMax,vsVarFunc,
191 histVec.push_back(
new MonElemFloat(baseName+
"_n1_isolHad",baseName+
" N1 Isol Had",nrBins,xMin,xMax,vsVarFunc,
193 histVec.push_back(
new MonElemFloat(baseName+
"_n1_isolPtTrks",baseName+
" N1 Pt Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
195 histVec.push_back(
new MonElemFloat(baseName+
"_n1_isolNrTrks",baseName+
" N1 Nr Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
198 histVec.push_back(
new MonElemFloat(baseName+
"_single_hOverE",baseName+
" Single H/E",nrBins,xMin,xMax,vsVarFunc,
200 histVec.push_back(
new MonElemFloat(baseName+
"_single_sigmaIEtaIEta",baseName+
" Single #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
202 histVec.push_back(
new MonElemFloat(baseName+
"_single_isolEm",baseName+
" Single Isol Em",nrBins,xMin,xMax,vsVarFunc,
204 histVec.push_back(
new MonElemFloat(baseName+
"_single_isolHad",baseName+
" Single Isol Had",nrBins,xMin,xMax,vsVarFunc,
206 histVec.push_back(
new MonElemFloat(baseName+
"_single_isolPtTrks",baseName+
" Single Pt Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
222 baseName+
" E_{T};E_{T} (GeV)",
225 baseName+
" #eta;#eta",
229 baseName+
" #phi;#phi (rad)",
233 baseName+
" nVertex;nVertex",
246 baseName+
" E_{T};E_{T} (GeV)",
249 baseName+
" #eta;#eta",
253 baseName+
" #phi;#phi (rad)",
265 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
267 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
268 if(splitString.size()!=2)
continue;
269 const std::string& tightTrig = splitString[0];
270 const std::string& looseTrig = splitString[1];
282 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
284 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
285 if(splitString.size()!=2)
continue;
286 const std::string& tightTrig = splitString[0];
287 const std::string& looseTrig = splitString[1];
302 const std::string& tightTrig,
const std::string& looseTrig,
304 const std::string& histId,
const BinData& bins)
321 eleMonElems.push_back(passMonElem);
322 eleMonElems.push_back(failMonElem);
328 const std::string& tightTrig,
const std::string& looseTrig,
330 const std::string& histId,
const BinData& bins)
347 phoMonElems.push_back(passMonElem);
348 phoMonElems.push_back(failMonElem);
356 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
358 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
359 if(splitString.size()!=2)
continue;
360 const std::string& tightTrig = splitString[0];
361 const std::string& looseTrig = splitString[1];
370 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
372 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
373 if(splitString.size()!=2)
continue;
374 const std::string& tightTrig = splitString[0];
375 const std::string& looseTrig = splitString[1];
385 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
387 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
388 if(splitString.size()!=2)
continue;
389 const std::string& tightTrig = splitString[0];
390 const std::string& looseTrig = splitString[1];
400 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
402 boost::split(splitString,tightLooseTrigs[trigNr],boost::is_any_of(std::string(
":")));
403 if(splitString.size()!=2)
continue;
404 const std::string& tightTrig = splitString[0];
405 const std::string& looseTrig = splitString[1];
418 for(
size_t filterNr=0;filterNr<filterNames.size();filterNr++){
420 std::string trigName(filterNames[filterNr]);
422 float etCutValue = 0.;
440 eleMonElems.push_back(monElemCont);
448 std::string trigName(filterName);
450 float etCutValue = 0.;
468 eleMonElems.push_back(monElemCont);
475 std::string trigNameLeg1 = filterName.substr(0,filterName.find(
"::"));
476 std::string trigNameLeg2 = filterName.substr(filterName.find(
"::")+2);
478 float etCutValue = 0.;
493 for(
size_t filterNr=0;filterNr<filterNames.size();filterNr++){
495 std::string trigName(filterNames[filterNr]);
497 float etCutValue = 0.;
515 phoMonElems.push_back(monElemCont);
522 std::string trigName(filterName);
524 float etCutValue = 0.;
542 phoMonElems.push_back(monElemCont);
float e1x5Over5x5() const
float e2x5MaxOver5x5() const
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)
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
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 initTrigTagProbeHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > filterNames, int cutMask, const BinData &bins)
float sigmaIEtaIEta() const
virtual EgHLTDQMCut< T > * clone() const =0
float e2x5MaxOver5x5() const
void initTrigTagProbeHist_2Leg(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string filterName, int cutMask, const BinData &bins)
float sigmaIEtaIEta() const
float hltIsolTrksEle() const
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
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)
float e1x5Over5x5() const
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)
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
static const uint32_t masks[]