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(
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,
122 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_dEtaIn",baseName+
" N1 #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
124 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_dPhiIn",baseName+
" N1 #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
126 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_sigmaIEtaIEta",baseName+
" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
128 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_hOverE",baseName+
" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
136 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_hltIsolEm",baseName+
" N1 HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
138 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_hltIsolHad",baseName+
" N1 HLT Isol Had",nrBins,xMin,xMax,vsVarFunc,
140 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_hltIsolTrksEle",baseName+
" N1 HLT Isol Tracks Ele ",nrBins,xMin,xMax,vsVarFunc,
142 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_single_dEtaIn",baseName+
" Single #Delta#eta_{in}",nrBins,xMin,xMax,vsVarFunc,
144 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_single_dPhiIn",baseName+
" Single #Delta#phi_{in}",nrBins,xMin,xMax,vsVarFunc,
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,
156 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_single_hltIsolEm",baseName+
" Single HLT Isol Em",nrBins,xMin,xMax,vsVarFunc,
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,
172 int stdCutCode = masks.
stdPho;
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,
179 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_sigmaIEtaIEta",baseName+
" N1 #sigma_{i#etai#eta}",nrBins,xMin,xMax,vsVarFunc,
182 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_hOverE",baseName+
" N1 H/E",nrBins,xMin,xMax,vsVarFunc,
189 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_isolEm",baseName+
" N1 Isol Em",nrBins,xMin,xMax,vsVarFunc,
191 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_isolHad",baseName+
" N1 Isol Had",nrBins,xMin,xMax,vsVarFunc,
193 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_isolPtTrks",baseName+
" N1 Pt Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
195 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_n1_isolNrTrks",baseName+
" N1 Nr Isol Tracks",nrBins,xMin,xMax,vsVarFunc,
198 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_single_hOverE",baseName+
" Single H/E",nrBins,xMin,xMax,vsVarFunc,
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,
204 histVec.push_back(
new MonElemFloat(
iBooker,baseName+
"_single_isolHad",baseName+
" Single Isol Had",nrBins,xMin,xMax,vsVarFunc,
206 histVec.push_back(
new MonElemFloat(
iBooker,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++){
268 if(splitString.size()!=2)
continue;
282 for(
size_t trigNr=0;trigNr<tightLooseTrigs.size();trigNr++){
285 if(splitString.size()!=2)
continue;
321 eleMonElems.push_back(passMonElem);
322 eleMonElems.push_back(failMonElem);
347 phoMonElems.push_back(passMonElem);
348 phoMonElems.push_back(failMonElem);
356 for(
auto const & tightLooseTrig : tightLooseTrigs){
359 if(splitString.size()!=2)
continue;
370 for(
auto const & tightLooseTrig : tightLooseTrigs){
373 if(splitString.size()!=2)
continue;
385 for(
auto const & tightLooseTrig : tightLooseTrigs){
388 if(splitString.size()!=2)
continue;
400 for(
auto const & tightLooseTrig : tightLooseTrigs){
403 if(splitString.size()!=2)
continue;
418 for(
auto trigName : filterNames){
421 float etCutValue = 0.;
439 eleMonElems.push_back(monElemCont);
449 float etCutValue = 0.;
467 eleMonElems.push_back(monElemCont);
474 std::string trigNameLeg1 = filterName.substr(0,filterName.find(
"::"));
475 std::string trigNameLeg2 = filterName.substr(filterName.find(
"::")+2);
477 float etCutValue = 0.;
492 for(
auto trigName : filterNames){
495 float etCutValue = 0.;
513 phoMonElems.push_back(monElemCont);
522 float etCutValue = 0.;
540 phoMonElems.push_back(monElemCont);
float e1x5Over5x5() const
float e2x5MaxOver5x5() const
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 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
void initTrigTagProbeHist(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
const std::string & name() const
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
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)
void initTrigTagProbeHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &filterNames, int cutMask, const BinData &bins)
float sigmaIEtaIEta() const
void initTightLooseTrigHists(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffEle > *eleCut)
float e2x5MaxOver5x5() const
void initTrigTagProbeHist_2Leg(std::vector< MonElemContainer< OffEle > * > &eleMonElems, const std::string &filterName, int cutMask, 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)
float sigmaIEtaIEta() const
DQMStore::IBooker & iBooker
float hltIsolTrksEle() const
constexpr uint32_t masks[]
void initStdEleCutHists(std::vector< MonElemWithCutBase< OffEle > * > &histVec, const std::string &filterName, const std::string &baseName, const BinData &bins, EgHLTDQMCut< OffEle > *cut=0)
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
std::vector< MonElemWithCutBase< T > * > & cutMonElems()
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)