31 #include "CLHEP/Units/GlobalPhysicalConstants.h" 84 : magneticFieldToken_{esConsumes<edm::Transition::BeginRun>()},
88 verbosity_ =
pset.getUntrackedParameter<
int>(
"Verbosity");
90 fastSim_ =
pset.getParameter<
bool>(
"fastSim");
91 isRunCentrally_ =
pset.getParameter<
bool>(
"isRunCentrally");
93 photonCollectionProducer_ =
pset.getParameter<
std::string>(
"phoProducer");
95 photonCollectionToken_ =
96 consumes<reco::PhotonCollection>(
edm::InputTag(photonCollectionProducer_, photonCollection_));
98 token_tp_ = consumes<TrackingParticleCollection>(
pset.getParameter<
edm::InputTag>(
"label_tp"));
100 barrelEcalHits_ = consumes<EcalRecHitCollection>(
pset.getParameter<
edm::InputTag>(
"barrelEcalHits"));
101 endcapEcalHits_ = consumes<EcalRecHitCollection>(
pset.getParameter<
edm::InputTag>(
"endcapEcalHits"));
103 conversionOITrackProducer_ =
pset.getParameter<
std::string>(
"conversionOITrackProducer");
104 conversionIOTrackProducer_ =
pset.getParameter<
std::string>(
"conversionIOTrackProducer");
105 conversionOITrackPr_Token_ = consumes<edm::View<reco::Track> >(
edm::InputTag(conversionOITrackProducer_));
106 conversionIOTrackPr_Token_ = consumes<edm::View<reco::Track> >(
edm::InputTag(conversionIOTrackProducer_));
108 pfCandidates_ = consumes<reco::PFCandidateCollection>(
pset.getParameter<
edm::InputTag>(
"pfCandidates"));
109 valueMapPhoPFCandIso_ =
pset.getParameter<
std::string>(
"valueMapPhoToParticleBasedIso");
110 particleBasedIso_token =
111 consumes<edm::ValueMap<std::vector<reco::PFCandidateRef> > >(
pset.getUntrackedParameter<
edm::InputTag>(
112 "particleBasedIso",
edm::InputTag(
"particleBasedIsolation", valueMapPhoPFCandIso_)));
114 minPhoEtCut_ =
pset.getParameter<
double>(
"minPhoEtCut");
115 convTrackMinPtCut_ =
pset.getParameter<
double>(
"convTrackMinPtCut");
116 likelihoodCut_ =
pset.getParameter<
double>(
"likelihoodCut");
118 trkIsolExtRadius_ =
pset.getParameter<
double>(
"trkIsolExtR");
119 trkIsolInnRadius_ =
pset.getParameter<
double>(
"trkIsolInnR");
120 trkPtLow_ =
pset.getParameter<
double>(
"minTrackPtCut");
121 lip_ =
pset.getParameter<
double>(
"lipCut");
122 ecalIsolRadius_ =
pset.getParameter<
double>(
"ecalIsolR");
123 bcEtLow_ =
pset.getParameter<
double>(
"minBcEtCut");
124 hcalIsolExtRadius_ =
pset.getParameter<
double>(
"hcalIsolExtR");
125 hcalIsolInnRadius_ =
pset.getParameter<
double>(
"hcalIsolInnR");
126 hcalHitEtLow_ =
pset.getParameter<
double>(
"minHcalHitEtCut");
128 numOfTracksInCone_ =
pset.getParameter<
int>(
"maxNumOfTracksInCone");
129 trkPtSumCut_ =
pset.getParameter<
double>(
"trkPtSumCut");
130 ecalEtSumCut_ =
pset.getParameter<
double>(
"ecalEtSumCut");
131 hcalEtSumCut_ =
pset.getParameter<
double>(
"hcalEtSumCut");
132 dCotCutOn_ =
pset.getParameter<
bool>(
"dCotCutOn");
133 dCotCutValue_ =
pset.getParameter<
double>(
"dCotCutValue");
134 dCotHardCutValue_ =
pset.getParameter<
double>(
"dCotHardCutValue");
136 offline_pvToken_ = consumes<reco::VertexCollection>(
138 g4_simTk_Token_ = consumes<edm::SimTrackContainer>(
edm::InputTag(
"g4SimHits"));
139 g4_simVtx_Token_ = consumes<edm::SimVertexContainer>(
edm::InputTag(
"g4SimHits"));
140 famos_simTk_Token_ = consumes<edm::SimTrackContainer>(
edm::InputTag(
"fastSimProducer"));
141 famos_simVtx_Token_ = consumes<edm::SimVertexContainer>(
edm::InputTag(
"fastSimProducer"));
142 hepMC_Token_ = consumes<edm::HepMCProduct>(
edm::InputTag(
"generatorSmeared"));
143 genjets_Token_ = consumes<reco::GenJetCollection>(
edm::InputTag(
"ak4GenJets"));
145 genpartToken_ = consumes<reco::GenParticleCollection>(
edm::InputTag(
"genParticles"));
147 consumes<reco::TrackToTrackingParticleAssociator>(
edm::InputTag(
"trackAssociatorByHitsForPhotonValidation"));
153 nRecConvAssWithEcal_ = 0;
246 h_nSimPho_[0] = iBooker.
book1D(histname,
"# of Sim photons per event ", 20, -0.5, 19.5);
247 histname =
"SimPhoMotherEt";
250 histname =
"SimPhoMotherEtMatched";
252 histname,
"Sim photon matched by a reco Photon: Mother tranverse energy spectrum",
etBin,
etMin,
etMax);
254 "SimPhoMotherEtaMatched",
" Sim Photon matched by a reco Photon: Mother Eta ",
etaBin,
etaMin,
etaMax);
257 histname =
"h_SimPhoEta";
259 histname =
"h_SimPhoPhi";
261 histname =
"h_SimPhoEt";
264 histname =
"nOfSimPhotonsMatched";
265 h_nSimPho_[1] = iBooker.
book1D(histname,
"# of Sim photons matched by a reco Photon per event ", 20, -0.5, 19.5);
266 histname =
"h_MatchedSimPhoEta";
268 histname =
"h_MatchedSimPhoPhi";
270 histname =
"h_MatchedSimPhoEt";
273 histname =
"h_MatchedSimPhoBadChEta";
275 histname =
"h_MatchedSimPhoBadChPhi";
277 histname =
"h_MatchedSimPhoBadChEt";
281 histname =
"nOfSimConversions";
283 h_nSimConv_[0] = iBooker.
book1D(histname,
"# of Sim conversions per event ", 20, -0.5, 19.5);
284 histname =
"nOfVisSimConversions";
285 h_nSimConv_[1] = iBooker.
book1D(histname,
"# of Sim conversions per event ", 20, -0.5, 19.5);
288 histname =
"h_AllSimConvEta";
290 histname =
"h_AllSimConvPhi";
292 histname =
"h_AllSimConvR";
294 histname =
"h_AllSimConvZ";
296 histname =
"h_AllSimConvEt";
299 histname =
"h_VisSimConvEta";
301 histname =
"h_VisSimConvPhi";
303 histname =
"h_VisSimConvR";
305 histname =
"h_VisSimConvZ";
307 histname =
"h_VisSimConvEt";
310 histname =
"h_SimConvOneTracksEta";
313 histname =
"h_SimConvOneTracksPhi";
316 histname =
"h_SimConvOneTracksR";
318 iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated R",
rBin,
rMin,
rMax);
319 histname =
"h_SimConvOneTracksZ";
321 iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Z",
zBin,
zMin,
zMax);
322 histname =
"h_SimConvOneTracksEt";
324 iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Et",
etBin,
etMin,
etMax);
326 histname =
"h_SimConvTwoMTracksEta";
328 histname,
" All vis conversions with 2 reco-matching tracks: simulated #eta",
etaBin2,
etaMin,
etaMax);
329 histname =
"h_SimConvTwoMTracksPhi";
331 histname,
" All vis conversions with 2 reco-matching tracks: simulated #phi",
phiBin,
phiMin,
phiMax);
332 histname =
"h_SimConvTwoMTracksR";
334 iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated R",
rBin,
rMin,
rMax);
335 histname =
"h_SimConvTwoMTracksZ";
337 iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Z",
zBin,
zMin,
zMax);
338 histname =
"h_SimConvTwoMTracksEt";
340 iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Et",
etBin,
etMin,
etMax);
342 histname =
"h_SimConvTwoTracksEta";
345 histname =
"h_SimConvTwoTracksPhi";
348 histname =
"h_SimConvTwoTracksR";
350 iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated R",
rBin,
rMin,
rMax);
351 histname =
"h_SimConvTwoTracksZ";
353 iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Z",
zBin,
zMin,
zMax);
354 histname =
"h_SimConvTwoTracksEt";
356 iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Et",
etBin,
etMin,
etMax);
358 histname =
"h_SimConvOneMTracksEta";
360 histname,
" All vis conversions with 1 reco-matching tracks: simulated #eta",
etaBin2,
etaMin,
etaMax);
361 histname =
"h_SimConvOneMTracksPhi";
363 histname,
" All vis conversions with 1 reco-matching tracks: simulated #phi",
phiBin,
phiMin,
phiMax);
364 histname =
"h_SimConvOneMTracksR";
366 iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated R",
rBin,
rMin,
rMax);
367 histname =
"h_SimConvOneMTracksZ";
369 iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Z",
zBin,
zMin,
zMax);
370 histname =
"h_SimConvOneMTracksEt";
372 iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Et",
etBin,
etMin,
etMax);
374 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0";
376 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",
etaBin2,
etaMin,
etaMax);
377 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0";
379 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",
phiBin,
phiMin,
phiMax);
380 histname =
"h_SimConvTwoMTracksRAndVtxPGT0";
382 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",
rBin,
rMin,
rMax);
383 histname =
"h_SimConvTwoMTracksZAndVtxPGT0";
385 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",
zBin,
zMin,
zMax);
386 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0";
388 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",
etBin,
etMin,
etMax);
390 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0005";
392 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",
etaBin2,
etaMin,
etaMax);
393 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0005";
395 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",
phiBin,
phiMin,
phiMax);
396 histname =
"h_SimConvTwoMTracksRAndVtxPGT0005";
398 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",
rBin,
rMin,
rMax);
399 histname =
"h_SimConvTwoMTracksZAndVtxPGT0005";
401 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",
zBin,
zMin,
zMax);
402 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0005";
404 histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",
etBin,
etMin,
etMax);
411 " Photon Sim conversion vtx position",
419 " Photon Sim conversion vtx position",
427 " Photon Sim conversion vtx position",
435 "simConvVtxYvsXTrkBarrel",
" Photon Sim conversion vtx position, (x,y) eta<1 ", 100, -80., 80., 100, -80., 80.);
439 histname =
"h_SimJetEta";
441 histname =
"h_SimJetPhi";
443 histname =
"h_SimJetEt";
446 histname =
"h_MatchedSimJetEta";
448 histname =
"h_MatchedSimJetPhi";
450 histname =
"h_MatchedSimJetEt";
453 histname =
"h_MatchedSimJetBadChEta";
455 histname =
"h_MatchedSimJetBadChPhi";
457 histname =
"h_MatchedSimJetBadChEt";
462 histname =
"nOfPhotons";
463 h_nPho_ = iBooker.
book1D(histname,
"# of Reco photons per event ", 20, -0.5, 19.5);
474 histname =
"phoBkgE";
479 histname =
"phoBkgEt";
489 histname =
"scBkgEt";
499 histname =
"R9VsEtaBkg";
504 histname =
"R9VsEtBkg";
507 iBooker.
book2D(histname +
"All",
" Bkg photons r9 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
514 histname =
"R1VsEtaBkg";
517 histname +
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
518 histname =
"pR1VsEtaBkg";
521 histname +
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
523 histname =
"R1VsEtBkg";
526 iBooker.
book2D(histname +
"All",
" Bkg photons e1x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
527 histname =
"pR1VsEtBkg";
530 histname +
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
537 histname =
"R2VsEtaBkg";
540 histname +
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
541 histname =
"pR2VsEtaBkg";
544 histname +
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
546 histname =
"R2VsEtBkg";
549 iBooker.
book2D(histname +
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
550 histname =
"pR2VsEtBkg";
553 histname +
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
555 histname =
"sigmaIetaIetaBkg";
560 histname =
"sigmaIetaIetaVsEtaBkg";
563 histname +
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
564 histname =
"pSigmaIetaIetaVsEtaBkg";
567 histname +
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
569 histname =
"sigmaIetaIetaVsEtBkg";
572 histname +
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
575 histname +
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
578 histname +
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
580 histname =
"pSigmaIetaIetaVsEtBkg";
583 histname +
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
586 histname +
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
589 histname +
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
591 histname =
"hOverEBkg";
593 h_hOverEBkg_[1] = iBooker.
book1D(histname +
"Barrel",
"H/E bkg: Barrel ", 100, 0., 1.);
594 h_hOverEBkg_[2] = iBooker.
book1D(histname +
"Endcap",
"H/E bkg: Endcap ", 100, 0., 1.);
596 histname =
"pHOverEVsEtaBkg";
600 histname =
"pHOverEVsEtBkg";
605 histname =
"hOverEVsEtaBkg";
609 histname =
"hOverEVsEtBkg";
611 iBooker.
book2D(histname +
"All",
" Bkg photons H/E vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
614 histname =
"ecalRecHitSumEtConeDR04Bkg";
616 iBooker.
book1D(histname +
"All",
"bkg ecalRecHitSumEtDR04: All Ecal",
etBin,
etMin, 50.);
618 iBooker.
book1D(histname +
"Barrel",
"bkg ecalRecHitSumEtDR04: Barrel ",
etBin,
etMin, 50.);
620 iBooker.
book1D(histname +
"Endcap",
"bkg ecalRecHitSumEtDR04: Endcap ",
etBin,
etMin, 50.);
623 histname =
"ecalRecHitSumEtConeDR04VsEtaBkg";
625 " bkg ecalRecHitSumEtDR04 vs #eta: all Ecal ",
632 histname =
"ecalRecHitSumEtConeDR04VsEtBkg";
634 " Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",
642 " Bkg ecalRecHitSumEtDR04 vs Et: Barrel ",
650 " Bkg ecalRecHitSumEtDR04 vs Et: Endcap ",
657 histname =
"hcalTowerSumEtConeDR04VsEtaBkg";
659 " bkg hcalTowerSumEtDR04 vs #eta: all Ecal ",
666 histname =
"hcalTowerSumEtConeDR04VsEtBkg";
668 " Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",
676 " Bkg hcalTowerSumEtDR04 vs Et: Barrel ",
684 " Bkg hcalTowerSumEtDR04 vs Et: Endcap ",
693 histname =
"pEcalRecHitSumEtConeDR04VsEtaBkg";
696 "bkg photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",
705 histname =
"pEcalRecHitSumEtConeDR04VsEtBkg";
708 "Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",
718 "Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",
728 "Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",
737 histname =
"hcalTowerSumEtConeDR04Bkg";
739 iBooker.
book1D(histname +
"All",
"bkg hcalTowerSumEtDR04: All Ecal",
etBin,
etMin, 20.);
741 iBooker.
book1D(histname +
"Barrel",
"bkg hcalTowerSumEtDR04: Barrel ",
etBin,
etMin, 20.);
743 iBooker.
book1D(histname +
"Endcap",
"bkg hcalTowerSumEtDR04: Endcap ",
etBin,
etMin, 20.);
745 histname =
"pHcalTowerSumEtConeDR04VsEtaBkg";
748 "bkg photons hcalTowerSumEtDR04 vs #eta: all Ecal ",
757 histname =
"pHcalTowerSumEtConeDR04VsEtBkg";
760 "Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",
770 "Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",
780 "Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",
789 histname =
"isoTrkSolidConeDR04Bkg";
797 histname =
"isoTrkSolidConeDR04VsEtaBkg";
800 " Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ",
807 histname =
"pIsoTrkSolidConeDR04VsEtaBkg";
810 " Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ",
818 histname =
"isoTrkSolidConeDR04VsEtBkg";
821 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
830 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
839 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
846 histname =
"pIsoTrkSolidConeDR04VsEtBkg";
849 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
858 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
867 " Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",
875 histname =
"nTrkSolidConeDR04Bkg";
880 histname =
"nTrkSolidConeDR04VsEtaBkg";
883 histname +
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 20, 0., 20);
884 histname =
"p_nTrkSolidConeDR04VsEtaBkg";
887 histname +
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 20, 0., 20);
889 histname =
"nTrkSolidConeDR04VsEtBkg";
892 histname +
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
895 histname +
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
898 histname +
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
900 histname =
"pnTrkSolidConeDR04VsEtBkg";
903 histname +
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
906 histname +
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
909 histname +
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
914 histname =
"mvaOutBkg";
915 h_mvaOutBkg_[0] = iBooker.
book1D(histname +
"All",
" mvaOut conversions bkg : All Ecal", 100, 0., 1.);
916 h_mvaOutBkg_[1] = iBooker.
book1D(histname +
"Barrel",
" mvaOut conversions bkg: Barrel Ecal", 100, 0., 1.);
917 h_mvaOutBkg_[2] = iBooker.
book1D(histname +
"Endcap",
" mvaOut conversions bkg: Endcap Ecal", 100, 0., 1.);
919 histname =
"PoverEtracksBkg";
927 histname =
"EoverPtracksBkg";
935 histname =
"hDCotTracksBkg";
937 " bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",
942 " bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",
947 " bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",
952 histname =
"hDPhiTracksAtVtxBkg";
954 iBooker.
book1D(histname +
"All",
955 " Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",
960 iBooker.
book1D(histname +
"Barrel",
961 " Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",
966 iBooker.
book1D(histname +
"Endcap",
967 " Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",
974 " Bkg Photon Reco conversion vtx position",
982 " Bkg Photon Reco conversion vtx position",
990 " Bkg Photon Reco conversion vtx position, (x,y) eta<1 ",
1002 histname =
"nOfflineVtx";
1003 h_nRecoVtx_ = iBooker.
book1D(histname,
"# of Offline Vertices", 200, -0.5, 199.5);
1039 histname =
"r9ConvFromMC";
1044 histname =
"r9ConvFromReco";
1049 histname =
"EtR9Less093";
1053 histname =
"EtR9Less093Conv";
1063 histname =
"pR9VsEta";
1065 histname +
"All",
" All photons r9 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1067 histname +
"Unconv",
" Unconv photons r9 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1069 histname +
"Conv",
" Conv photons r9 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1071 histname =
"R9VsEt";
1074 iBooker.
book2D(histname +
"All",
" All photons r9 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1077 iBooker.
book2D(histname +
"Unconv",
" All photons r9 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1084 histname =
"R1VsEta";
1087 histname +
"All",
" All photons e1x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1090 histname +
"Unconv",
" All photons e1x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1092 histname =
"R1VsEt";
1095 iBooker.
book2D(histname +
"All",
" All photons e1x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1098 histname +
"Unconv",
" All photons e1x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1105 histname =
"R2VsEta";
1108 histname +
"All",
" All photons e2x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1111 histname +
"Unconv",
" All photons e2x5/e5x5 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 1.1);
1113 histname =
"R2VsEt";
1116 iBooker.
book2D(histname +
"All",
" All photons e2x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1119 histname +
"Unconv",
" All photons e2x5/e5x5 vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 1.1);
1121 histname =
"sigmaIetaIeta";
1126 histname =
"sigmaIetaIetaVsEta";
1129 histname +
"All",
" All photons sigmaIetaIeta vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1132 histname +
"Unconv",
" All photons sigmaIetaIeta vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1134 histname =
"sigmaIetaIetaVsEt";
1137 histname +
"All",
" All photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
1140 histname +
"Unconv",
" All photons sigmaIetaIeta vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
1142 histname =
"hOverE";
1143 h_hOverE_[0][0] = iBooker.
book1D(histname +
"All",
"H/E: All Ecal", 100, 0., 0.1);
1144 h_hOverE_[0][1] = iBooker.
book1D(histname +
"Barrel",
"H/E: Barrel ", 100, 0., 0.1);
1145 h_hOverE_[0][2] = iBooker.
book1D(histname +
"Endcap",
"H/E: Endcap ", 100, 0., 0.1);
1147 histname =
"newhOverE";
1148 h_newhOverE_[0][0] = iBooker.
book1D(histname +
"All",
"new H/E: All Ecal", 100, 0., 0.1);
1149 h_newhOverE_[0][1] = iBooker.
book1D(histname +
"Barrel",
"new H/E: Barrel ", 100, 0., 0.1);
1150 h_newhOverE_[0][2] = iBooker.
book1D(histname +
"Endcap",
"new H/E: Endcap ", 100, 0., 0.1);
1154 histname =
"hOverEVsEta";
1158 histname +
"Unconv",
" All photons H/E vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1160 histname =
"hOverEVsEt";
1162 iBooker.
book2D(histname +
"All",
" All photons H/E vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
1164 iBooker.
book2D(histname +
"Unconv",
" All photons H/E vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
1167 histname =
"pHoverEVsEta";
1169 histname +
"All",
" All photons H/E vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1171 histname +
"Unconv",
" All photons H/E vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1173 histname =
"pHoverEVsEt";
1179 histname =
"pnewHoverEVsEta";
1181 histname +
"All",
" All photons new H/E vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1183 histname +
"Unconv",
" All photons new H/E vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 0.1);
1185 histname =
"pnewHoverEVsEt";
1189 histname +
"Unconv",
" All photons new H/E vs Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0., 0.1);
1191 histname =
"ecalRecHitSumEtConeDR04";
1193 iBooker.
book1D(histname +
"All",
"ecalRecHitSumEtDR04: All Ecal",
etBin,
etMin, 50.);
1195 iBooker.
book1D(histname +
"Barrel",
"ecalRecHitSumEtDR04: Barrel ",
etBin,
etMin, 50.);
1197 iBooker.
book1D(histname +
"Endcap",
"ecalRecHitSumEtDR04: Endcap ",
etBin,
etMin, 50.);
1201 histname =
"ecalRecHitSumEtConeDR04VsEta";
1203 " All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",
1211 " All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",
1219 histname =
"pEcalRecHitSumEtConeDR04VsEta";
1221 "All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",
1230 "All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",
1240 histname =
"ecalRecHitSumEtConeDR04VsEt";
1242 " All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",
1250 " All photons ecalRecHitSumEtDR04 vs Et: Barrel ",
1258 " All photons ecalRecHitSumEtDR04 vs Et: Endcap ",
1266 histname =
"pEcalRecHitSumEtConeDR04VsEt";
1269 "All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",
1278 "All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",
1287 "All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",
1296 histname =
"hcalTowerSumEtConeDR04";
1298 iBooker.
book1D(histname +
"All",
"hcalTowerSumEtConeDR04: All Ecal",
etBin,
etMin, 50.);
1300 iBooker.
book1D(histname +
"Barrel",
"hcalTowerSumEtConeDR04: Barrel ",
etBin,
etMin, 50.);
1302 iBooker.
book1D(histname +
"Endcap",
"hcalTowerSumEtConeDR04: Endcap ",
etBin,
etMin, 50.);
1304 histname =
"hcalTowerBcSumEtConeDR04";
1307 iBooker.
book1D(histname +
"All",
"hcalTowerBcSumEtConeDR04: All Ecal",
etBin,
etMin, 50.);
1309 iBooker.
book1D(histname +
"Barrel",
"hcalTowerBcSumEtConeDR04: Barrel ",
etBin,
etMin, 50.);
1311 iBooker.
book1D(histname +
"Endcap",
"hcalTowerBcSumEtConeDR04: Endcap ",
etBin,
etMin, 50.);
1315 histname =
"hcalTowerSumEtConeDR04VsEta";
1317 " All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ",
1325 " All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ",
1333 histname =
"pHcalTowerSumEtConeDR04VsEta";
1335 "All photons hcalTowerSumEtDR04 vs #eta: all Ecal ",
1344 "All photons hcalTowerSumEtDR04 vs #eta: all Ecal ",
1352 histname =
"pHcalTowerBcSumEtConeDR04VsEta";
1354 "All photons hcalTowerBcSumEtDR04 vs #eta: all Ecal ",
1363 "All photons hcalTowerBcSumEtDR04 vs #eta: all Ecal ",
1373 histname =
"hcalTowerSumEtConeDR04VsEt";
1375 " All photons hcalTowerSumEtConeDR04 vs Et: all Ecal ",
1383 " All photons hcalTowerSumEtConeDR04 vs Et: Barrel ",
1391 " All photons hcalTowerSumEtConeDR04 vs Et: Endcap ",
1399 histname =
"pHcalTowerSumEtConeDR04VsEt";
1402 "All photons hcalTowerSumEtDR04 vs Et: all Ecal ",
1411 "All photons hcalTowerSumEtDR04 vs Et: all Ecal ",
1420 "All photons hcalTowerSumEtDR04 vs Et: all Ecal ",
1429 histname =
"pHcalTowerBcSumEtConeDR04VsEt";
1432 "All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ",
1441 "All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ",
1450 "All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ",
1460 histname =
"isoTrkSolidConeDR04";
1469 histname =
"isoTrkSolidConeDR04VsEta";
1472 " All photons isoTrkSolidConeDR04 vs #eta: all Ecal ",
1481 " All photons isoTrkSolidConeDR04 vs #eta: all Ecal ",
1490 histname =
"isoTrkSolidConeDR04VsEt";
1493 " All photons isoTrkSolidConeDR04 vs Et: all Ecal ",
1502 " All photons isoTrkSolidConeDR04 vs Et: all Ecal ",
1510 histname =
"nTrkSolidConeDR04";
1515 histname =
"nTrkSolidConeDR04VsEta";
1518 histname +
"All",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 20, 0., 20);
1521 histname +
"Unconv",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 20, 0., 20);
1523 histname =
"nTrkSolidConeDR04VsEt";
1526 histname +
"All",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
1529 histname +
"Unconv",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",
etBin,
etMin,
etMax, 20, 0., 20);
1550 histname +
"unconvAll",
" Photon E/E_{true} if r9>0.94, 0.95: All ecal; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1552 histname +
"unconvBarrel",
" Photon E/E_{true} if r9>0.94: Barrel; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1554 histname +
"unconvEndcap",
" Photon E/E_{true} if r9>0.95: Endcap; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1557 histname +
"convAll",
" Photon E/E_{true} if r9<0.0.94, 0.95: All ecal; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1559 histname +
"convBarrel",
" Photon E/E_{true} if r9<0.94: Barrel; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1561 histname +
"convEndcap",
" Photon E/E_{true} if r9<0.95: Endcap; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
1563 histname =
"sigmaEoE";
1564 h_phoSigmaEoE_[0][0] = iBooker.
book1D(histname +
"All",
"#sigma_{E}/E: All ecal; #sigma_{E}/E", 100, 0., 0.08);
1565 h_phoSigmaEoE_[0][1] = iBooker.
book1D(histname +
"Barrel",
"#sigma_{E}/E: Barrel; #sigma_{E}/E", 100, 0., 0.08);
1566 h_phoSigmaEoE_[0][2] = iBooker.
book1D(histname +
"Endcap",
"#sigma_{E}/E: Endcap, #sigma_{E}/E", 100, 0., 0.08);
1569 iBooker.
book1D(histname +
"unconvAll",
"#sigma_{E}/E if r9>0.94, 0.95: All ecal; #sigma_{E}/E", 100, 0., 0.08);
1571 iBooker.
book1D(histname +
"unconvBarrel",
"#sigma_{E}/E if r9>0.94: Barrel; #sigma_{E}/E", 100, 0., 0.08);
1573 iBooker.
book1D(histname +
"unconvEndcap",
"#sigma_{E}/E r9>0.95: Endcap; #sigma_{E}/E", 100, 0., 0.08);
1576 iBooker.
book1D(histname +
"convAll",
"#sigma_{E}/E if r9<0.0.94, 0.95: All ecal, #sigma_{E}/E", 100, 0., 0.08);
1578 iBooker.
book1D(histname +
"convBarrel",
"#sigma_{E}/E if r9<0.94: Barrel, #sigma_{E}/E", 100, 0., 0.08);
1580 iBooker.
book1D(histname +
"convEndcap",
"#sigma_{E}/E if r9<0.95: Endcap, #sigma_{E}/E", 100, 0., 0.08);
1582 histname =
"eResVsEta";
1585 histname +
"All",
" All photons E/Etrue vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 2.5);
1588 histname +
"Unconv",
" Unconv photons E/Etrue vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 2.5);
1590 histname =
"pEResVsEta";
1594 "Unconv photons E/Etrue vs #eta: all Ecal",
1605 histname =
"pSigmaEoEVsEta";
1607 "All photons: #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E",
1616 "Unconv photons #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E ",
1625 "Conv photons #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E",
1634 histname =
"pSigmaEoEVsEt";
1636 "All photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E ",
1646 "Unconv photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E ",
1655 "Conv photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E",
1664 "All photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E ",
1674 "Unconv photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E ",
1683 "Conv photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E",
1692 histname =
"pSigmaEoEVsNVtx";
1694 "All photons: #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E",
1704 "Unconv photons #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E ",
1713 "Conv photons #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E",
1722 "All photons: #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E",
1732 "Unconv photons #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E ",
1741 "Conv photons #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E",
1751 histname =
"eResVsEt";
1753 histname +
"All",
" All photons E/Etrue vs true Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1755 histname +
"unconv",
" All photons E/Etrue vs true Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1757 histname +
"conv",
" All photons E/Etrue vs true Et: all Ecal ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1759 histname +
"Barrel",
" All photons E/Etrue vs true Et: Barrel ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1761 histname +
"unconvBarrel",
" All photons E/Etrue vs true Et: Barrel ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1763 histname +
"convBarrel",
" All photons E/Etrue vs true Et: Barrel ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1765 histname +
"Endcap",
" All photons E/Etrue vs true Et: Endcap ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1767 histname +
"unconvEndcap",
" All photons E/Etrue vs true Et: Endcap ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1769 histname +
"convEndcap",
" All photons E/Etrue vs true Et: Endcap ",
etBin,
etMin,
etMax, 100, 0.9, 1.1);
1772 histname =
"pEResVsEt";
1792 histname =
"pEResVsNVtx";
1794 "All photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true}",
1804 "Unconverted photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true} ",
1814 " Converted photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true} ",
1823 "All photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",
1833 "Uncoverted photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",
1842 "Converted photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",
1851 histname =
"eResVsR9";
1854 histname +
"All",
" All photons E/Etrue vs R9: all Ecal ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1857 histname +
"Barrel",
" All photons E/Etrue vs R9: Barrel ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1860 histname +
"Endcap",
" All photons E/Etrue vs R9: Endcap ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1861 histname =
"pEResVsR9";
1869 histname =
"sceResVsR9";
1872 histname +
"All",
" All photons scE/Etrue vs R9: all Ecal ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1875 histname +
"Barrel",
" All photons scE/Etrue vs R9: Barrel ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1878 histname +
"Endcap",
" All photons scE/Etrue vs R9: Endcap ",
r9Bin * 2,
r9Min,
r9Max, 100, 0., 2.5);
1879 histname =
"scpEResVsR9";
1882 " All photons scE/Etrue vs R9: all Ecal ",
1891 " All photons scE/Etrue vs R9: Barrel ",
1900 " All photons scE/Etrue vs R9: Endcap ",
1910 histname =
"eResRegr1";
1919 " Photon rec/true Energy from Regression1 if r9>0.94, 0.95: All ecal ",
1924 histname +
"unconvBarrel",
" Photon rec/true Energy from Regression1 if r9>0.94: Barrel ",
resBin,
resMin,
resMax);
1926 histname +
"unconvEndcap",
" Photon rec/true Energy from Regression1 if r9>0.95: Endcap ",
resBin,
resMin,
resMax);
1929 " Photon rec/true Energy from Regression1if r9<0.0.94, 0.95: All ecal ",
1934 histname +
"convBarrel",
" Photon rec/true Energy from Regression1 if r9<0.94: Barrel ",
resBin,
resMin,
resMax);
1936 histname +
"convEndcap",
" Photon rec/true Energy from Regression1 if r9<0.95: Endcap ",
resBin,
resMin,
resMax);
1938 histname =
"eResRegr2";
1947 " Photon rec/true Energy from Regression2 if r9>0.94, 0.95: All ecal ",
1952 histname +
"unconvBarrel",
" Photon rec/true Energy from Regression2 if r9>0.94: Barrel ",
resBin,
resMin,
resMax);
1954 histname +
"unconvEndcap",
" Photon rec/true Energy from Regression2 if r9>0.95: Endcap ",
resBin,
resMin,
resMax);
1957 " Photon rec/true Energy from Regression2 if r9<0.0.94, 0.95: All ecal ",
1962 histname +
"convBarrel",
" Photon rec/true Energy from Regression2 if r9<0.94: Barrel ",
resBin,
resMin,
resMax);
1964 histname +
"convEndcap",
" Photon rec/true Energy from Regression2 if r9<0.95: Endcap ",
resBin,
resMin,
resMax);
1966 histname =
"phoPixSeedSize";
1971 histname =
"chargedHadIso";
1975 histname =
"neutralHadIso";
1979 histname =
"photonIso";
1983 histname =
"nCluOutMustache";
1985 iBooker.
book1D(histname +
"All",
"PF number of clusters outside Mustache: All Ecal", 50, 0., 50.);
1987 iBooker.
book1D(histname +
"Barrel",
"PF number of clusters outside Mustache: Barrel", 50, 0., 50.);
1989 iBooker.
book1D(histname +
"Endcap",
"PF number of clusters outside Mustache: Endcap", 50, 0., 50.);
1990 histname =
"etOutMustache";
1995 h_pfMva_[0] = iBooker.
book1D(histname +
"All",
"PF MVA output: All Ecal", 50, -1., 2.);
1996 h_pfMva_[1] = iBooker.
book1D(histname +
"Barrel",
"PF MVA output: Barrel", 50, -1., 2.);
1997 h_pfMva_[2] = iBooker.
book1D(histname +
"Endcap",
"PF MVA output: Endcap", 50, -1, 2.);
1999 histname =
"SumPtOverPhoPt_ChHad_Cleaned";
2001 iBooker.
book1D(histname +
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: All Ecal",
etBin,
etMin, 2.);
2003 iBooker.
book1D(histname +
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: Barrel",
etBin,
etMin, 2.);
2005 iBooker.
book1D(histname +
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: Endcap",
etBin,
etMin, 2.);
2006 histname =
"SumPtOverPhoPt_NeuHad_Cleaned";
2008 iBooker.
book1D(histname +
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: All Ecal",
etBin,
etMin, 2.);
2010 iBooker.
book1D(histname +
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: Barrel",
etBin,
etMin, 2.);
2012 iBooker.
book1D(histname +
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: Endcap",
etBin,
etMin, 2.);
2013 histname =
"SumPtOverPhoPt_Pho_Cleaned";
2015 iBooker.
book1D(histname +
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Photons: All Ecal",
etBin,
etMin, 2.);
2017 iBooker.
book1D(histname +
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Photons: Barrel",
etBin,
etMin, 2.);
2019 iBooker.
book1D(histname +
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Photons: Endcap",
etBin,
etMin, 2.);
2021 histname =
"dRPhoPFcand_ChHad_Cleaned";
2023 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Charged Hadrons : All Ecal",
etBin,
etMin, 0.7);
2025 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Charged Hadrons : Barrel",
etBin,
etMin, 0.7);
2027 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Charged Hadrons : Endcap",
etBin,
etMin, 0.7);
2028 histname =
"dRPhoPFcand_NeuHad_Cleaned";
2030 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Neutral Hadrons : All Ecal",
etBin,
etMin, 0.7);
2032 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Neutral Hadrons : Barrel",
etBin,
etMin, 0.7);
2034 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Neutral Hadrons : Endcap",
etBin,
etMin, 0.7);
2036 iBooker.
book1D(histname +
"Barrel_1",
"dR(pho,cand) Neutral Hadrons : Barrel |eta| <=1",
etBin,
etMin, 0.7);
2038 iBooker.
book1D(histname +
"Barrel_2",
"dR(pho,cand) Neutral Hadrons : Barrel |eta | > 1",
etBin,
etMin, 0.7);
2039 histname =
"dRPhoPFcand_Pho_Cleaned";
2041 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Photons : All Ecal",
etBin,
etMin, 0.7);
2043 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Photons : Barrel",
etBin,
etMin, 0.7);
2045 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Photons : Endcap",
etBin,
etMin, 0.7);
2048 histname =
"SumPtOverPhoPt_ChHad_unCleaned";
2050 iBooker.
book1D(histname +
"All",
"Pf Cand Sum Pt Over photon pt Charged Hadrons : All Ecal",
etBin,
etMin, 2.);
2052 iBooker.
book1D(histname +
"Barrel",
"PF Cand Sum Pt Over photon pt Charged Hadrons: Barrel",
etBin,
etMin, 2.);
2054 iBooker.
book1D(histname +
"Endcap",
"PF Cand Sum Pt Over photon pt Charged Hadrons: Endcap",
etBin,
etMin, 2.);
2055 histname =
"SumPtOverPhoPt_NeuHad_unCleaned";
2057 iBooker.
book1D(histname +
"All",
"Pf Cand Sum Pt Over photon pt Neutral Hadrons : All Ecal",
etBin,
etMin, 2.);
2059 iBooker.
book1D(histname +
"Barrel",
"PF Cand Sum Pt Over photon pt Neutral Hadrons: Barrel",
etBin,
etMin, 2.);
2061 iBooker.
book1D(histname +
"Endcap",
"PF Cand Sum Pt Over photon pt Neutral Hadrons: Endcap",
etBin,
etMin, 2.);
2062 histname =
"SumPtOverPhoPt_Pho_unCleaned";
2064 iBooker.
book1D(histname +
"All",
"Pf Cand Sum Pt Over photon pt Photons: All Ecal",
etBin,
etMin, 2.);
2066 iBooker.
book1D(histname +
"Barrel",
"PF Cand Sum Pt Over photon pt Photons: Barrel",
etBin,
etMin, 2.);
2068 iBooker.
book1D(histname +
"Endcap",
"PF Cand Sum Pt Over photon pt Photons: Endcap",
etBin,
etMin, 2.);
2069 histname =
"dRPhoPFcand_ChHad_unCleaned";
2071 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Charged Hadrons : All Ecal",
etBin,
etMin, 0.7);
2073 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Charged Hadrons : Barrel",
etBin,
etMin, 0.7);
2075 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Charged Hadrons : Endcap",
etBin,
etMin, 0.7);
2077 histname =
"dRPhoPFcand_NeuHad_unCleaned";
2079 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Neutral Hadrons : All Ecal",
etBin,
etMin, 0.7);
2081 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Neutral Hadrons : Barrel",
etBin,
etMin, 0.7);
2083 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Neutral Hadrons : Endcap",
etBin,
etMin, 0.7);
2085 iBooker.
book1D(histname +
"Barrel_1",
"dR(pho,cand) Neutral Hadrons : Barrel |eta| <=1 ",
etBin,
etMin, 0.7);
2087 iBooker.
book1D(histname +
"Barrel_2",
"dR(pho,cand) Neutral Hadrons : Barrel |eta| > 1",
etBin,
etMin, 0.7);
2089 histname =
"dRPhoPFcand_Pho_unCleaned";
2091 iBooker.
book1D(histname +
"All",
"dR(pho,cand) Photons: All Ecal",
etBin,
etMin, 0.7);
2093 iBooker.
book1D(histname +
"Barrel",
"dR(pho,cand) Photons: Barrel",
etBin,
etMin, 0.7);
2095 iBooker.
book1D(histname +
"Endcap",
"dR(pho,cand) Photons: Endcap",
etBin,
etMin, 0.7);
2099 histname =
"gamgamMass";
2107 histname =
"gamgamMassNoConv";
2115 histname =
"gamgamMassConv";
2123 histname =
"gamgamMassRegr1";
2131 histname =
"gamgamMassRegr1NoConv";
2135 "2 photons with no conversion invariant mass Regr1: Barrel ",
2140 "2 photons with no conversion invariant mass Regr1: Endcap ",
2145 histname =
"gamgamMassRegr1Conv";
2149 "2 photons with conversion invariant mass Regr1: Barrel ",
2154 "2 photons with conversion invariant mass Regr1: Endcap ",
2159 histname =
"gamgamMassRegr2";
2167 histname =
"gamgamMassRegr2NoConv";
2171 "2 photons with no conversion invariant mass Regr2: Barrel ",
2176 "2 photons with no conversion invariant mass Regr2: Endcap ",
2181 histname =
"gamgamMassRegr2Conv";
2185 "2 photons with conversion invariant mass Regr2: Barrel ",
2190 "2 photons with conversion invariant mass Regr2: Endcap ",
2208 iBooker.
book1D(histname +
"All_miniAOD",
" Photon Transverse Energy: All ecal ",
etBin,
etMin,
etMax);
2210 iBooker.
book1D(histname +
"Barrel_miniAOD",
" Photon Transverse Energy: Barrel ",
etBin,
etMin,
etMax);
2212 iBooker.
book1D(histname +
"Endcap_miniAOD",
" Photon Transverse Energy: Endcap ",
etBin,
etMin,
etMax);
2216 histname +
"All_miniAOD",
" Photon E/E_{true}: All ecal; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
2218 histname +
"Barrel_miniAOD",
"Photon E/E_{true}: Barrel; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
2220 histname +
"Endcap_miniAOD",
" Photon E/E_{true}: Endcap; E/E_{true} (GeV)",
resBin,
resMin,
resMax);
2222 histname =
"sigmaEoE";
2224 iBooker.
book1D(histname +
"All_miniAOD",
"#sigma_{E}/E: All ecal; #sigma_{E}/E", 100, 0., 0.08);
2226 iBooker.
book1D(histname +
"Barrel_miniAOD",
"#sigma_{E}/E: Barrel; #sigma_{E}/E", 100, 0., 0.08);
2228 iBooker.
book1D(histname +
"Endcap_miniAOD",
"#sigma_{E}/E: Endcap, #sigma_{E}/E", 100, 0., 0.08);
2234 histname =
"full5x5_r9";
2246 histname =
"hOverE";
2251 histname =
"newhOverE";
2256 histname =
"sigmaIetaIeta";
2260 histname =
"full5x5_sigmaIetaIeta";
2262 iBooker.
book1D(histname +
"All_miniAOD",
"Full5x5 sigmaIetaIeta: All Ecal", 100, 0., 0.1);
2264 iBooker.
book1D(histname +
"Barrel_miniAOD",
"Full5x5 sigmaIetaIeta: Barrel ", 100, 0., 0.05);
2266 iBooker.
book1D(histname +
"Endcap_miniAOD",
"Full5x5 sigmaIetaIeta: Endcap ", 100, 0., 0.1);
2268 histname =
"ecalRecHitSumEtConeDR04";
2270 iBooker.
book1D(histname +
"All_miniAOD",
"ecalRecHitSumEtDR04: All Ecal",
etBin,
etMin, 50.);
2272 iBooker.
book1D(histname +
"Barrel_miniAOD",
"ecalRecHitSumEtDR04: Barrel ",
etBin,
etMin, 50.);
2274 iBooker.
book1D(histname +
"Endcap_miniAOD",
"ecalRecHitSumEtDR04: Endcap ",
etBin,
etMin, 50.);
2275 histname =
"hcalTowerSumEtConeDR04";
2277 iBooker.
book1D(histname +
"All_miniAOD",
"hcalTowerSumEtConeDR04: All Ecal",
etBin,
etMin, 50.);
2279 iBooker.
book1D(histname +
"Barrel_miniAOD",
"hcalTowerSumEtConeDR04: Barrel ",
etBin,
etMin, 50.);
2281 iBooker.
book1D(histname +
"Endcap_miniAOD",
"hcalTowerSumEtConeDR04: Endcap ",
etBin,
etMin, 50.);
2283 histname =
"hcalTowerBcSumEtConeDR04";
2285 iBooker.
book1D(histname +
"All_miniAOD",
"hcalTowerBcSumEtConeDR04: All Ecal",
etBin,
etMin, 50.);
2287 iBooker.
book1D(histname +
"Barrel_miniAOD",
"hcalTowerBcSumEtConeDR04: Barrel ",
etBin,
etMin, 50.);
2289 iBooker.
book1D(histname +
"Endcap_miniAOD",
"hcalTowerBcSumEtConeDR04: Endcap ",
etBin,
etMin, 50.);
2290 histname =
"isoTrkSolidConeDR04";
2292 iBooker.
book1D(histname +
"All_miniAOD",
"isoTrkSolidConeDR04: All Ecal",
etBin,
etMin,
etMax * 0.1);
2294 iBooker.
book1D(histname +
"Barrel_miniAOD",
"isoTrkSolidConeDR04: Barrel ",
etBin,
etMin,
etMax * 0.1);
2296 iBooker.
book1D(histname +
"Endcap_miniAOD",
"isoTrkSolidConeDR04: Endcap ",
etBin,
etMin,
etMax * 0.1);
2297 histname =
"nTrkSolidConeDR04";
2299 iBooker.
book1D(histname +
"All_miniAOD",
"nTrkSolidConeDR04: All Ecal", 20, 0., 20);
2301 iBooker.
book1D(histname +
"Barrel_miniAOD",
"nTrkSolidConeDR04: Barrel ", 20, 0., 20);
2303 iBooker.
book1D(histname +
"Endcap_miniAOD",
"nTrkSolidConeDR04: Endcap ", 20, 0., 20);
2306 histname =
"chargedHadIso";
2310 histname =
"neutralHadIso";
2314 histname =
"photonIso";
2323 "Number Of two-tracks Conversions per isolated candidates per events: All Ecal ",
2328 "Number Of two-tracks Conversions per isolated candidates per events: Ecal Barrel ",
2333 "Number Of two-tracks Conversions per isolated candidates per events: Ecal Endcap ",
2338 "Number Of single leg Conversions per isolated candidates per events: All Ecal ",
2343 "Number Of single leg Conversions per isolated candidates per events: Ecal Barrel ",
2348 "Number Of single leg Conversions per isolated candidates per events: Ecal Endcap ",
2358 histname =
"convERes";
2366 histname =
"p_EResVsR";
2368 histname +
"All",
" photons conversion E/Etrue vs R: all Ecal ",
rBin,
rMin,
rMax, 100, 0., 1.5,
"");
2370 histname =
"convPtRes";
2372 iBooker.
book1D(histname +
"All",
" Conversion Pt rec/true from tracks : All ecal ",
resBin, 0., 1.5);
2374 iBooker.
book1D(histname +
"Barrel",
" Conversion Pt rec/true from tracks: Barrel ",
resBin, 0., 1.5);
2376 iBooker.
book1D(histname +
"Endcap",
" Conversion Pt rec/true from tracks: Endcap ",
resBin, 0., 1.5);
2379 histname =
"r9VsTracks";
2381 histname +
"All",
" photons r9 vs nTracks from conversions: All Ecal",
r9Bin,
r9Min,
r9Max, 3, -0.5, 2.5);
2383 histname +
"Barrel",
" photons r9 vs nTracks from conversions: Barrel Ecal",
r9Bin,
r9Min,
r9Max, 3, -0.5, 2.5);
2385 histname +
"Endcap",
" photons r9 vs nTracks from conversions: Endcap Ecal",
r9Bin,
r9Min,
r9Max, 3, -0.5, 2.5);
2388 histname =
"mvaOut";
2389 h_mvaOut_[0] = iBooker.
book1D(histname +
"All",
" mvaOut for all conversions : All Ecal", 100, 0., 1.);
2390 h_mvaOut_[1] = iBooker.
book1D(histname +
"Barrel",
" mvaOut for all conversions : Barrel Ecal", 100, 0., 1.);
2391 h_mvaOut_[2] = iBooker.
book1D(histname +
"Endcap",
" mvaOut for all conversions : Endcap Ecal", 100, 0., 1.);
2393 histname =
"EoverPtracks";
2401 h_EoverPTracks_[1][0] = iBooker.
book1D(histname +
"All",
" photons conversion E/p: all Ecal ", 100, 0., 5.);
2402 h_EoverPTracks_[1][1] = iBooker.
book1D(histname +
"Barrel",
" photons conversion E/p: Barrel Ecal", 100, 0., 5.);
2403 h_EoverPTracks_[1][2] = iBooker.
book1D(histname +
"Endcap",
" photons conversion E/p: Endcap Ecal ", 100, 0., 5.);
2404 histname =
"EoverP_SL";
2405 h_EoverP_SL_[0] = iBooker.
book1D(histname +
"All",
" photons single leg conversion E/p: all Ecal ", 100, 0., 5.);
2406 h_EoverP_SL_[1] = iBooker.
book1D(histname +
"Barrel",
" photons single leg conversion E/p: Barrel Ecal", 100, 0., 5.);
2408 iBooker.
book1D(histname +
"Endcap",
" photons single leg conversion E/p: Endcap Ecal ", 100, 0., 5.);
2410 histname =
"PoverEtracks";
2418 histname =
"pEoverEtrueVsEta";
2421 " photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",
2430 histname =
"pEoverEtrueVsR";
2432 histname +
"All",
" photons conversion E/Etrue vs R: all Ecal ",
rBin,
rMin,
rMax, 100, 0., 2.5,
"");
2434 histname =
"pEoverEtrueVsEta";
2436 " photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",
2445 histname =
"pPoverPtrueVsEta";
2447 histname +
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 5.,
"");
2449 histname =
"pEoverPVsEta";
2451 histname +
"All",
" photons conversion E/P vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 5.,
"");
2454 histname =
"EoverEtrueVsEoverP";
2456 iBooker.
book2D(histname +
"All",
" photons conversion E/Etrue vs E/P: all Ecal ", 100, 0., 5., 100, 0.5, 1.5);
2458 histname +
"Barrel",
" photons conversion E/Etrue vs E/: Barrel Ecal", 100, 0., 5., 100, 0.5, 1.5);
2460 histname +
"Endcap",
" photons conversion E/Etrue vs E/: Endcap Ecal ", 100, 0., 5., 100, 0.5, 1.5);
2461 histname =
"PoverPtrueVsEoverP";
2463 iBooker.
book2D(histname +
"All",
" photons conversion P/Ptrue vs E/P: all Ecal ", 100, 0., 5., 100, 0., 2.5);
2465 histname +
"Barrel",
" photons conversion P/Ptrue vs E/: Barrel Ecal", 100, 0., 5., 100, 0., 2.5);
2467 histname +
"Endcap",
" photons conversion P/Ptrue vs E/: Endcap Ecal ", 100, 0., 5., 100, 0., 2.5);
2469 histname =
"EoverEtrueVsEta";
2471 iBooker.
book2D(histname +
"All",
2472 " photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",
2480 histname =
"EoverEtrueVsEta";
2482 " photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",
2490 histname =
"EoverEtrueVsR";
2492 iBooker.
book2D(histname +
"All",
" photons conversion E/Etrue vs R: all Ecal ",
rBin,
rMin,
rMax, 100, 0., 2.5);
2494 histname =
"PoverPtrueVsEta";
2496 histname +
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 5.);
2498 histname =
"EoverPVsEta";
2500 histname +
"All",
" photons conversion E/P vs #eta: all Ecal ",
etaBin2,
etaMin,
etaMax, 100, 0., 5.);
2502 histname =
"EoverPVsR";
2504 iBooker.
book2D(histname +
"All",
" photons conversion E/P vs R: all Ecal ",
rBin,
rMin,
rMax, 100, 0., 5.);
2506 histname =
"etaVsRsim";
2508 " eta(sim) vs R (sim) for associated conversions: all Ecal ",
2515 histname =
"etaVsRreco";
2517 " eta(reco) vs R (reco) for associated conversions: all Ecal ",
2526 histname =
"pEoverPVsR";
2528 histname +
"All",
" photons conversion E/P vs R: all Ecal ",
rBin,
rMin,
rMax, 100, 0., 5.,
"");
2530 histname =
"hInvMass";
2532 histname +
"All_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ", 100, 0., 1.5);
2534 histname +
"Barrel_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ", 100, 0., 1.5);
2536 histname +
"Endcap_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ", 100, 0., 1.5);
2537 histname =
"hInvMass";
2539 histname +
"All_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ", 100, 0., 1.5);
2541 histname +
"Barrel_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ", 100, 0., 1.5);
2543 histname +
"Endcap_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ", 100, 0., 1.5);
2545 histname =
"hDPhiTracksAtVtx";
2547 " Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",
2552 iBooker.
book1D(histname +
"Barrel",
2553 " Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",
2558 iBooker.
book1D(histname +
"Endcap",
2559 " Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",
2565 histname =
"hDPhiTracksAtVtxVsEta";
2567 " Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta",
2575 histname =
"hDPhiTracksAtVtxVsR";
2577 " Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R",
2585 histname =
"hDCotTracksVsEta";
2587 " Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta",
2595 histname =
"hDCotTracksVsR";
2597 " Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R",
2605 histname =
"h2_DPhiTracksAtEcalVsR";
2606 if (
fName_ !=
"pfPhotonValidator" &&
fName_ !=
"oldpfPhotonValidator")
2608 " Photons:Tracks from conversions: #delta#phi at Ecal vs R : all Ecal ",
2616 histname =
"h2_DPhiTracksAtEcalVsEta";
2617 if (
fName_ !=
"pfPhotonValidator" &&
fName_ !=
"oldpfPhotonValidator")
2619 iBooker.
book2D(histname +
"All",
2620 " Photons:Tracks from conversions: #delta#phi at Ecal vs #eta : all Ecal ",
2629 histname =
"pDPhiTracksAtVtxVsEta";
2632 " Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta ",
2641 histname =
"pDPhiTracksAtVtxVsR";
2643 " Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R ",
2652 histname =
"hDCotTracks";
2654 " Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",
2659 " Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",
2664 " Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",
2669 histname =
"pDCotTracksVsEta";
2671 " Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta ",
2680 histname =
"pDCotTracksVsR";
2683 " Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R ",
2692 histname =
"hDistMinAppTracks";
2694 " Photons:Tracks from conversions Min Approach Dist Tracks: all Ecal ",
2699 " Photons:Tracks from conversions Min Approach Dist Tracks: Barrel Ecal ",
2704 " Photons:Tracks from conversions Min Approach Dist Tracks: Endcap Ecal ",
2710 histname =
"hDPhiTracksAtEcal";
2712 " Photons:Tracks from conversions: #delta#phi at Ecal : all Ecal ",
2717 " Photons:Tracks from conversions: #delta#phi at Ecal : Barrel Ecal ",
2722 " Photons:Tracks from conversions: #delta#phi at Ecal : Endcap Ecal ",
2727 histname =
"pDPhiTracksAtEcalVsR";
2729 " Photons:Tracks from conversions: #delta#phi at Ecal vs R ",
2738 histname =
"pDPhiTracksAtEcalVsEta";
2740 " Photons:Tracks from conversions: #delta#phi at Ecal vs #eta ",
2749 histname =
"hDEtaTracksAtEcal";
2751 " Photons:Tracks from conversions: #delta#eta at Ecal : all Ecal ",
2756 " Photons:Tracks from conversions: #delta#eta at Ecal : Barrel Ecal ",
2761 " Photons:Tracks from conversions: #delta#eta at Ecal : Endcap Ecal ",
2769 " Photon Reco conversion vtx position",
2777 " Photon Reco conversion vtx position",
2785 " Photon Reco conversion vtx position",
2793 "convVtxYvsXTrkBarrel",
" Photon Reco conversion vtx position, (x,y) eta<1 ", 100, -80., 80., 100, -80., 80.);
2796 " Photon Reco single leg conversion innermost hit position",
2804 " Photon Reco single leg conversion innermost hit position",
2812 " Photon Reco single leg conversion innermost hit position",
2823 " Photon Reco conversion vtx position",
2831 " Photon Reco conversion vtx position",
2839 " Photon Reco conversion vtx position, (x,y) eta<1 ",
2847 " Photon Reco conversion vtx position, (x,y) eta<1 ",
2856 h_convVtxdX_ = iBooker.
book1D(
"convVtxdX",
" Photon Reco conversion vtx dX", 100, -20., 20.);
2857 h_convVtxdY_ = iBooker.
book1D(
"convVtxdY",
" Photon Reco conversion vtx dY", 100, -20., 20.);
2858 h_convVtxdZ_ = iBooker.
book1D(
"convVtxdZ",
" Photon Reco conversion vtx dZ", 100, -20., 20.);
2859 h_convVtxdR_ = iBooker.
book1D(
"convVtxdR",
" Photon Reco conversion vtx dR", 100, -20., 20.);
2862 iBooker.
book1D(
"convVtxdX_barrel",
" Photon Reco conversion vtx dX, |eta|<=1.2", 100, -20., 20.);
2864 iBooker.
book1D(
"convVtxdY_barrel",
" Photon Reco conversion vtx dY, |eta|<=1.2 ", 100, -20., 20.);
2866 iBooker.
book1D(
"convVtxdZ_barrel",
" Photon Reco conversion vtx dZ, |eta|<=1.2,", 100, -20., 20.);
2868 iBooker.
book1D(
"convVtxdR_barrel",
" Photon Reco conversion vtx dR, |eta|<=1.2", 100, -20., 20.);
2870 iBooker.
book1D(
"convVtxdX_endcap",
" Photon Reco conversion vtx dX, |eta|>1.2", 100, -20., 20.);
2872 iBooker.
book1D(
"convVtxdY_endcap",
" Photon Reco conversion vtx dY, |eta|>1.2", 100, -20., 20.);
2874 iBooker.
book1D(
"convVtxdZ_endcap",
" Photon Reco conversion vtx dZ, |eta|>1.2", 100, -20., 20.);
2876 iBooker.
book1D(
"convVtxdR_endcap",
" Photon Reco conversion vtx dR, |eta|>1.2 ", 100, -20., 20.);
2878 h_convVtxdPhi_ = iBooker.
book1D(
"convVtxdPhi",
" Photon Reco conversion vtx dPhi", 100, -0.005, 0.005);
2879 h_convVtxdEta_ = iBooker.
book1D(
"convVtxdEta",
" Photon Reco conversion vtx dEta", 100, -0.5, 0.5);
2883 iBooker.
book2D(
"h2ConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR",
rBin,
rMin,
rMax, 100, -20., 20.);
2885 "h2ConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta",
etaBin2,
etaMin,
etaMax, 100, -20., 20.);
2889 iBooker.
bookProfile(
"pConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR",
rBin,
rMin,
rMax, 100, -20., 20.,
"");
2891 "pConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta",
etaBin2,
etaMin,
etaMax, 100, -20., 20.,
"");
2902 histname =
"vtxChi2";
2906 histname =
"vtxChi2Prob";
2908 h_vtxChi2Prob_[1] = iBooker.
book1D(histname +
"Barrel",
"vertex #chi^{2} barrel", 100, 0., 1.);
2909 h_vtxChi2Prob_[2] = iBooker.
book1D(histname +
"Endcap",
"vertex #chi^{2} endcap", 100, 0., 1.);
2911 histname =
"zPVFromTracks";
2912 h_zPVFromTracks_[0] = iBooker.
book1D(histname +
"All",
" Photons: PV z from conversion tracks", 100, -30., 30.);
2913 h_zPVFromTracks_[1] = iBooker.
book1D(histname +
"Barrel",
" Photons: PV z from conversion tracks", 100, -30., 30.);
2914 h_zPVFromTracks_[2] = iBooker.
book1D(histname +
"Endcap",
" Photons: PV z from conversion tracks", 100, -30., 30.);
2915 h_zPVFromTracks_[3] = iBooker.
book1D(histname +
"EndcapP",
" Photons: PV z from conversion tracks", 100, -30., 30.);
2916 h_zPVFromTracks_[4] = iBooker.
book1D(histname +
"EndcapM",
" Photons: PV z from conversion tracks", 100, -30., 30.);
2917 histname =
"dzPVFromTracks";
2919 iBooker.
book1D(histname +
"All",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
2921 iBooker.
book1D(histname +
"Barrel",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
2923 iBooker.
book1D(histname +
"Endcap",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
2925 iBooker.
book1D(histname +
"EndcapP",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
2927 iBooker.
book1D(histname +
"EndcapM",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
2931 "pdzPVVsEta",
"Photon Reco conversions: dz(PV) vs Eta",
etaBin,
etaMin,
etaMax, 100, -3., 3.,
"");
2939 histname =
"nHitsVsEta";
2941 "Photons:Tracks from conversions: # of hits vs #eta all tracks",
2949 histname =
"nHitsVsEta";
2951 "Photons:Tracks from conversions: # of hits vs #eta associated tracks",
2959 histname =
"nHitsVsR";
2961 "Photons:Tracks from conversions: # of hits vs radius all tracks",
2969 histname =
"nHitsVsR";
2971 "Photons:Tracks from conversions: # of hits vs radius associated tracks",
2979 histname =
"h2Chi2VsEta";
2983 histname =
"h2Chi2VsR";
2988 histname =
"h_nHitsVsEta";
2990 "Photons:Tracks from conversions: # of hits vs #eta all tracks",
2999 histname =
"h_nHitsVsEta";
3001 "Photons:Tracks from conversions: # of hits vs #eta associated tracks",
3010 histname =
"p_nHitsVsEtaSL";
3012 "Photons:Tracks from single leg conversions: # of hits vs #eta all tracks",
3021 histname =
"h_nHitsVsR";
3023 "Photons:Tracks from conversions: # of hits vs radius all tracks",
3031 histname =
"p_nHitsVsRSL";
3033 "Photons:Tracks from single leg conversions: # of hits vs radius all tracks",
3042 histname =
"tkChi2";
3044 histname +
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 100,
chi2Min,
chi2Max);
3045 histname =
"tkChi2SL";
3047 "Photons:Tracks from single leg conversions: #chi^{2} of associated tracks",
3051 histname =
"tkChi2Large";
3053 histname +
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 1000, 0., 5000.0);
3055 histname =
"h_nHitsVsR";
3057 "Photons:Tracks from conversions: # of hits vs radius associated tracks",
3066 histname =
"tkChi2";
3068 histname +
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 100,
chi2Min,
chi2Max);
3069 histname =
"tkChi2Large";
3071 histname +
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 1000, 0., 5000.0);
3073 histname =
"pChi2VsEta";
3077 histname =
"pChi2VsR";
3082 h_TkD0_[0] = iBooker.
book1D(histname +
"All",
" Reco Track D0*q: All ", 100, -0.1, 0.6);
3083 h_TkD0_[1] = iBooker.
book1D(histname +
"Barrel",
" Reco Track D0*q: Barrel ", 100, -0.1, 0.6);
3084 h_TkD0_[2] = iBooker.
book1D(histname +
"Endcap",
" Reco Track D0*q: Endcap ", 100, -0.1, 0.6);
3086 histname =
"hTkPtPull";
3087 h_TkPtPull_[0] = iBooker.
book1D(histname +
"All",
" Reco Track Pt pull: All ", 100, -10., 10.);
3088 histname =
"hTkPtPull";
3089 h_TkPtPull_[1] = iBooker.
book1D(histname +
"Barrel",
" Reco Track Pt pull: Barrel ", 100, -10., 10.);
3090 histname =
"hTkPtPull";
3091 h_TkPtPull_[2] = iBooker.
book1D(histname +
"Endcap",
" Reco Track Pt pull: Endcap ", 100, -10., 10.);
3093 histname =
"pTkPtPullEta";
3098 histname =
"h2TkPtPullEta";
3102 histname =
"PtRecVsPtSim";
3109 histname =
"PtRecVsPtSimMixProv";
3115 histname =
"eBcOverTkPout";
3126 h_trkProv_[0] = iBooker.
book1D(
"allTrkProv",
" Track pair provenance ", 4, 0., 4.);
3127 h_trkProv_[1] = iBooker.
book1D(
"assTrkProv",
" Track pair provenance ", 4, 0., 4.);
3138 histname =
"h_RecoConvTwoTracksEta";
3141 histname =
"h_RecoConvTwoTracksPhi";
3144 histname =
"h_RecoConvTwoTracksR";
3146 iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated R",
rBin,
rMin,
rMax);
3147 histname =
"h_RecoConvTwoTracksZ";
3149 iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Z",
zBin,
zMin,
zMax);
3150 histname =
"h_RecoConvTwoTracksEt";
3152 iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Et",
etBin,
etMin,
etMax);
3154 histname =
"h_RecoConvTwoMTracksEta";
3157 histname =
"h_RecoConvTwoMTracksPhi";
3160 histname =
"h_RecoConvTwoMTracksR";
3162 iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated R",
rBin,
rMin,
rMax);
3163 histname =
"h_RecoConvTwoMTracksZ";
3165 iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Z",
zBin,
zMin,
zMax);
3166 histname =
"h_RecoConvTwoMTracksEt";
3168 iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Et",
etBin,
etMin,
etMax);
3173 edm::LogInfo(
"ConvertedPhotonProducer") <<
" get magnetic field" 3184 using namespace edm;
3188 const float BARL = 1.4442;
3190 const float END_HI = 2.5;
3195 e.getByLabel(
"trackAssociatorByHitsForPhotonValidation", theHitsAssociator);
3199 LogInfo(
"PhotonValidator") <<
"PhotonValidator Analyzing event number: " <<
e.id() <<
" Global Counter " <<
nEvt_ 3216 if (!photonHandle.
isValid()) {
3217 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the Photon collection " << std::endl;
3224 if (!pfCandidateHandle.
isValid()) {
3225 edm::LogError(
"PhotonValidator") <<
"Error! Can't get the product pfCandidates " << std::endl;
3230 if (
fName_ ==
"pfPhotonValidator") {
3232 if (!phoToParticleBasedIsoMapHandle.
isValid()) {
3233 edm::LogInfo(
"PhotonValidator") <<
"Error! Can't get the product: valueMap photons to particle based iso " 3236 phoToParticleBasedIsoMap = *(phoToParticleBasedIsoMapHandle.
product());
3251 std::vector<SimTrack> theSimTracks;
3252 std::vector<SimVertex> theSimVertices;
3264 theSimTracks.insert(theSimTracks.end(), SimTk->begin(), SimTk->end());
3265 theSimVertices.insert(theSimVertices.end(), SimVtx->begin(), SimVtx->end());
3292 std::vector<reco::PhotonCollection::const_iterator> StoRMatchedConvertedPhotons;
3302 OISimToReco =
trackAssociator->associateSimToReco(outInTrkHandle, ElectronTPHandle);
3303 IOSimToReco =
trackAssociator->associateSimToReco(inOutTrkHandle, ElectronTPHandle);
3305 OIRecoToSim =
trackAssociator->associateRecoToSim(outInTrkHandle, ElectronTPHandle);
3306 IORecoToSim =
trackAssociator->associateRecoToSim(inOutTrkHandle, ElectronTPHandle);
3310 vector<reco::SimToRecoCollection*> StoRCollPtrs;
3311 StoRCollPtrs.push_back(&OISimToReco);
3312 StoRCollPtrs.push_back(&IOSimToReco);
3313 vector<reco::RecoToSimCollection*> RtoSCollPtrs;
3314 RtoSCollPtrs.push_back(&OIRecoToSim);
3315 RtoSCollPtrs.push_back(&IORecoToSim);
3317 for (
int i = 0;
i < 2;
i++)
3319 for (
int i = 0;
i < 2;
i++)
3322 std::vector<reco::PhotonRef> myPhotons;
3324 for (
unsigned int iPho = 0; iPho < photonHandle->size(); iPho++) {
3327 if (fabs(phoRef->eta()) > 2.5)
3329 myPhotons.push_back(phoRef);
3334 if (myPhotons.size() >= 2) {
3335 if (myPhotons[0]->
et() > 40 && myPhotons[1]->et() > 25) {
3341 float gamgamMass2 = p12.Dot(p12);
3342 float gamgamMass2_regr1 = p12_regr1.Dot(p12_regr1);
3343 float gamgamMass2_regr2 = p12_regr2.Dot(p12_regr2);
3346 if (gamgamMass2 > 0) {
3349 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3351 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3352 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3355 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3357 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3359 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3360 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3370 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3372 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3375 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3376 (myPhotons[0]->
isEB() && myPhotons[1]->isEE())) {
3382 myPhotons[1]->
r9() > 0.93) {
3386 if (chi2Prob1 > 0.0005) {
3388 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3391 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3397 myPhotons[0]->
r9() > 0.93) {
3401 if (chi2Prob1 > 0.0005) {
3403 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3406 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3415 if (gamgamMass2_regr1 > 0) {
3418 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3420 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3421 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3424 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3426 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3428 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3429 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3440 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3442 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3445 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3446 (myPhotons[0]->
isEB() && myPhotons[1]->isEE())) {
3452 myPhotons[1]->
r9() > 0.93) {
3456 if (chi2Prob1 > 0.0005) {
3458 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3461 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3467 myPhotons[0]->
r9() > 0.93) {
3471 if (chi2Prob1 > 0.0005) {
3473 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3476 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3485 if (gamgamMass2_regr2 > 0) {
3488 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3490 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3491 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3494 if (myPhotons[0]->
r9() > 0.94 && myPhotons[1]->
r9() > 0.94) {
3496 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB())
3498 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3499 (myPhotons[0]->
isEB() && myPhotons[1]->isEE()))
3510 if (chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005) {
3512 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3515 if ((myPhotons[0]->isEE() && myPhotons[1]->isEE()) || (myPhotons[0]->isEE() && myPhotons[1]->
isEB()) ||
3516 (myPhotons[0]->
isEB() && myPhotons[1]->isEE())) {
3522 myPhotons[1]->
r9() > 0.93) {
3526 if (chi2Prob1 > 0.0005) {
3528 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3531 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3537 myPhotons[0]->
r9() > 0.93) {
3541 if (chi2Prob1 > 0.0005) {
3543 if (myPhotons[0]->
isEB() && myPhotons[1]->
isEB()) {
3546 if (myPhotons[0]->isEE() || myPhotons[1]->isEE()) {
3557 for (std::vector<PhotonMCTruth>::const_iterator mcPho = mcPhotons.begin(); mcPho != mcPhotons.end(); mcPho++) {
3561 for (HepMC::GenEvent::particle_const_iterator mcIter = myGenEvent->particles_begin();
3562 mcIter != myGenEvent->particles_end();
3564 if ((*mcIter)->pdg_id() != 22)
3566 bool isTheSame =
false;
3568 if ((*mcIter)->production_vertex()) {
3569 if ((*mcIter)->production_vertex()->particles_begin(
HepMC::parents) !=
3571 mother = *((*mcIter)->production_vertex()->particles_begin(
HepMC::parents));
3574 float mcPhi = (*mcPho).fourMomentum().phi();
3576 mcEta_ = (*mcPho).fourMomentum().pseudoRapidity();
3579 mcConvR_ = (*mcPho).vertex().perp();
3586 if (fabs(
mcEta_) > END_HI)
3589 if (mother ==
nullptr || (mother !=
nullptr && mother->pdg_id() == 22) ||
3590 (mother !=
nullptr && mother->pdg_id() == 25) || (mother !=
nullptr && mother->pdg_id() == 35)) {
3591 double dPt = fabs((*mcIter)->momentum().perp() - (*mcPho).fourMomentum().et());
3592 float phiMother = (*mcIter)->momentum().phi();
3594 double dEta = fabs((*mcIter)->momentum().eta() - (*mcPho).fourMomentum().pseudoRapidity());
3596 if (
dEta <= 0.0001 &&
dPhi <= 0.0001 && dPt <= 0.0001)
3614 bool goodSimConversion =
false;
3615 bool visibleConversion =
false;
3616 bool visibleConversionsWithTwoSimTracks =
false;
3617 if ((*mcPho).isAConversion() == 1) {
3631 (fabs(
mcEta_) > BARL && fabs(
mcEta_) <= END_HI && fabs((*mcPho).vertex().z()) < 210))
3632 visibleConversion =
true;
3637 if (fabs(
tp->vx() - (*mcPho).vertex().x()) < 0.001 && fabs(
tp->vy() - (*mcPho).vertex().y()) < 0.001 &&
3638 fabs(
tp->vz() - (*mcPho).vertex().z()) < 0.001) {
3643 visibleConversionsWithTwoSimTracks =
true;
3644 goodSimConversion =
false;
3646 if (visibleConversion && visibleConversionsWithTwoSimTracks)
3647 goodSimConversion =
true;
3648 if (goodSimConversion) {
3669 float minDelta = 10000.;
3670 std::vector<reco::PhotonRef> thePhotons;
3675 for (
unsigned int iPho = 0; iPho < photonHandle->size(); iPho++) {
3677 thePhotons.push_back(aPho);
3678 float phiPho = aPho->phi();
3679 float etaPho = aPho->eta();
3712 bool phoIsInBarrel =
false;
3713 bool phoIsInBarrel1 =
false;
3714 bool phoIsInBarrel2 =
false;
3715 bool phoIsInEndcap =
false;
3716 bool phoIsInEndcapP =
false;
3717 bool phoIsInEndcapM =
false;
3721 if (fabs(matchingPho->superCluster()->position().eta()) < 1.479) {
3722 phoIsInBarrel =
true;
3724 phoIsInEndcap =
true;
3725 if (matchingPho->superCluster()->position().eta() > 0)
3726 phoIsInEndcapP =
true;
3727 if (matchingPho->superCluster()->position().eta() < 0)
3728 phoIsInEndcapM =
true;
3730 if (fabs(matchingPho->superCluster()->position().eta()) <= 1) {
3731 phoIsInBarrel1 =
true;
3732 }
else if (fabs(matchingPho->superCluster()->position().eta()) > 1) {
3733 phoIsInBarrel2 =
true;
3737 if (phoIsInBarrel) {
3740 if (!ecalRecHitHandle.
isValid()) {
3743 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
3747 }
else if (phoIsInEndcap) {
3750 if (!ecalRecHitHandle.
isValid()) {
3753 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
3760 float photonE = matchingPho->energy();
3761 float sigmaEoE = matchingPho->getCorrectedEnergyError(matchingPho->getCandidateP4type()) / matchingPho->energy();
3763 float photonEt = matchingPho->pt();
3766 float r9 = matchingPho->r9();
3768 float r1 = matchingPho->r1x5();
3769 float r2 = matchingPho->r2x5();
3772 float hOverE = matchingPho->hadronicOverEm();
3773 float newhOverE = matchingPho->hadTowOverEm();
3774 float ecalIso = matchingPho->ecalRecHitSumEtConeDR04();
3775 float hcalIso = matchingPho->hcalTowerSumEtConeDR04();
3776 float newhcalIso = matchingPho->hcalTowerSumEtBcConeDR04();
3777 float trkIso = matchingPho->trkSumPtSolidConeDR04();
3778 float nIsoTrk = matchingPho->nTrkSolidConeDR04();
3780 float chargedHadIso = matchingPho->chargedHadronIso();
3781 float neutralHadIso = matchingPho->neutralHadronIso();
3782 float photonIso = matchingPho->photonIso();
3783 float etOutsideMustache = matchingPho->etOutsideMustache();
3784 int nClusterOutsideMustache = matchingPho->nClusterOutsideMustache();
3785 float pfMVA = matchingPho->pfMVA();
3787 std::vector<std::pair<DetId, float> >::const_iterator rhIt;
3788 bool atLeastOneDeadChannel =
false;
3790 bcIt != matchingPho->superCluster()->clustersEnd();
3792 for (rhIt = (*bcIt)->hitsAndFractions().begin(); rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
3795 if (rhIt->first == (*it).id()) {
3796 if ((*it).recoFlag() == 9) {
3797 atLeastOneDeadChannel =
true;
3805 if (atLeastOneDeadChannel) {
3823 h_scEt_[
type][0]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
3825 h_psE_->
Fill(matchingPho->superCluster()->preshowerEnergy());
3898 h_phoDEta_[0]->
Fill(matchingPho->eta() - (*mcPho).fourMomentum().eta());
3902 h_nConv_[0][0]->
Fill(
float(matchingPho->conversions().size()));
3903 h_nConv_[1][0]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
3913 p_eResVsEt_[0][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3918 h2_eResVsEt_[0][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3922 h2_sceResVsR9_[0]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
3926 p_sceResVsR9_[0]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
3928 if ((*mcPho).isAConversion() == 0) {
3959 if (photonE / (*mcPho).fourMomentum().e() < 0.3 && photonE / (*mcPho).fourMomentum().e() > 0.1) {
3962 if ((
r9 > 0.94 && phoIsInBarrel) || (
r9 > 0.95 && phoIsInEndcap)) {
3968 h2_eResVsEt_[0][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3969 p_eResVsEt_[0][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3974 }
else if ((
r9 <= 0.94 && phoIsInBarrel) || (
r9 <= 0.95 && phoIsInEndcap)) {
3979 p_eResVsEt_[0][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3985 h2_eResVsEt_[0][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
3990 if (phoIsInBarrel) {
3992 h_scEt_[
type][1]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
4016 h_nConv_[1][1]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
4022 p_sceResVsR9_[1]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4025 h2_sceResVsR9_[1]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4028 h2_eResVsEt_[1][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4030 p_eResVsEt_[1][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4031 p_eResVsNVtx_[1][0]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4041 h2_eResVsEt_[1][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4042 p_eResVsEt_[1][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4043 p_eResVsNVtx_[1][1]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4052 p_eResVsEt_[1][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4053 p_eResVsNVtx_[1][2]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4057 h2_eResVsEt_[1][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4062 if (phoIsInEndcap) {
4064 h_scEt_[
type][2]->
Fill(matchingPho->superCluster()->energy() / cosh(matchingPho->superCluster()->eta()));
4088 h_nConv_[1][2]->
Fill(
float(matchingPho->conversionsOneLeg().size()));
4094 p_sceResVsR9_[2]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4097 h2_sceResVsR9_[2]->
Fill(
r9, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4100 h2_eResVsEt_[2][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4103 p_eResVsEt_[2][0]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4104 p_eResVsNVtx_[2][0]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4114 h2_eResVsEt_[2][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4115 p_eResVsEt_[2][1]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4116 p_eResVsNVtx_[2][1]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4125 p_eResVsEt_[2][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4126 p_eResVsNVtx_[2][2]->
Fill(
float(vtxH->size()), photonE / (*mcPho).fourMomentum().e());
4131 h2_eResVsEt_[2][2]->
Fill((*mcPho).fourMomentum().et(), photonE / (*mcPho).fourMomentum().e());
4138 if (
fName_ ==
"pfPhotonValidator") {
4139 float SumPtIsoValCh = 0.;
4140 float SumPtIsoValNh = 0.;
4141 float SumPtIsoValPh = 0.;
4143 float SumPtIsoValCleanCh = 0.;
4144 float SumPtIsoValCleanNh = 0.;
4145 float SumPtIsoValCleanPh = 0.;
4147 for (
unsigned int lCand = 0; lCand < pfCandidateHandle->size(); lCand++) {
4149 float dR =
deltaR(matchingPho->eta(), matchingPho->phi(), pfCandRef->eta(), pfCandRef->phi());
4159 SumPtIsoValCh += pfCandRef->pt();
4167 SumPtIsoValNh += pfCandRef->pt();
4169 if (phoIsInBarrel) {
4171 if (phoIsInBarrel1) {
4174 if (phoIsInBarrel2) {
4183 SumPtIsoValPh += pfCandRef->pt();
4193 for (std::vector<reco::PFCandidateRef>::const_iterator
i = phoToParticleBasedIsoMap[matchingPho].begin();
4194 i != phoToParticleBasedIsoMap[matchingPho].
end();
4196 if ((*
i) == pfCandRef) {
4204 SumPtIsoValCleanCh += pfCandRef->pt();
4212 SumPtIsoValCleanNh += pfCandRef->pt();
4214 if (phoIsInBarrel) {
4216 if (phoIsInBarrel1) {
4219 if (phoIsInBarrel2) {
4227 SumPtIsoValCleanPh += pfCandRef->pt();
4244 if (phoIsInBarrel) {
4262 if (!(visibleConversion && visibleConversionsWithTwoSimTracks))
4273 if (fabs(
mcEta_) <= 1.) {
4283 bool atLeastOneRecoTwoTrackConversion =
false;
4284 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
4286 double like = aConv->MVAout();
4295 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4298 atLeastOneRecoTwoTrackConversion =
true;
4302 if (
tracks.size() == 2) {
4317 std::map<const reco::Track*, TrackingParticleRef> myAss;
4318 std::map<const reco::Track*, TrackingParticleRef>::const_iterator itAss;
4319 std::map<reco::TrackRef, TrackingParticleRef>::const_iterator itAssMin;
4320 std::map<reco::TrackRef, TrackingParticleRef>::const_iterator itAssMax;
4324 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4341 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
4345 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[0]];
4347 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[1]];
4361 float refP = -99999.;
4362 float refPt = -99999.;
4363 if (aConv->conversionVertex().isValid()) {
4364 refP =
sqrt(aConv->refittedPairMomentum().Mag2());
4365 refPt =
sqrt(aConv->refittedPairMomentum().perp2());
4367 float invM = aConv->pairInvariantMass();
4376 if (
tracks.size() == 2) {
4383 if (!aConv->caloCluster().empty())
4386 float trkProvenance = 3;
4387 if (
tracks[0]->
algoName() ==
"outInEcalSeededConv" &&
tracks[1]->algoName() ==
"outInEcalSeededConv")
4389 if (
tracks[0]->
algoName() ==
"inOutEcalSeededConv" &&
tracks[1]->algoName() ==
"inOutEcalSeededConv")
4392 (
tracks[1]->algoName() ==
"outInEcalSeededConv" &&
tracks[0]->algoName() ==
"inOutEcalSeededConv"))
4394 if (trkProvenance == 3) {
4411 if (!aConv->caloCluster().empty())
4421 if (aConv->conversionVertex().isValid()) {
4431 if (chi2Prob > 0.0005) {
4439 if (chi2Prob > 0.0005) {
4440 if (!aConv->caloCluster().empty()) {
4443 h_convERes_[0][0]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4453 if (phoIsInBarrel) {
4454 if (!aConv->caloCluster().empty())
4455 h_convERes_[0][1]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4460 if (phoIsInEndcap) {
4461 if (!aConv->caloCluster().empty())
4462 h_convERes_[0][2]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
4476 float eoverp = -99999.;
4478 if (aConv->conversionVertex().isValid()) {
4479 eoverp = photonE /
sqrt(aConv->refittedPairMomentum().Mag2());
4486 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4503 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4506 matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4514 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
4531 if (phoIsInBarrel) {
4533 if (aConv->conversionVertex().isValid()) {
4545 eoverp, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4553 if (phoIsInEndcap) {
4555 if (aConv->conversionVertex().isValid()) {
4561 eoverp, matchingPho->superCluster()->energy() / (*mcPho).fourMomentum().e());
4569 if (aConv->conversionVertex().isValid()) {
4595 float signX = aConv->refittedPairMomentum().x() / fabs(aConv->refittedPairMomentum().x());
4596 float signY = aConv->refittedPairMomentum().y() / fabs(aConv->refittedPairMomentum().y());
4597 float signZ = aConv->refittedPairMomentum().z() / fabs(aConv->refittedPairMomentum().z());
4606 float thetaConv = aConv->refittedPairMomentum().Theta();
4607 float thetaSC = matchingPho->superCluster()->position().theta();
4609 sqrt(matchingPho->superCluster()->position().x() * matchingPho->superCluster()->position().x() +
4610 matchingPho->superCluster()->position().y() * matchingPho->superCluster()->position().y());
4611 float zSC = matchingPho->superCluster()->position().z();
4612 float zPV =
sqrt(rSC * rSC + zSC * zSC) *
sin(thetaConv - thetaSC) /
sin(thetaConv);
4617 if (phoIsInBarrel) {
4620 }
else if (phoIsInEndcap) {
4623 }
else if (phoIsInEndcapP) {
4626 }
else if (phoIsInEndcapM) {
4637 float dPhiTracksAtEcal = -99;
4638 float dEtaTracksAtEcal = -99;
4639 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[0].
isNonnull() &&
4640 aConv->bcMatchingWithTracks()[1].
isNonnull()) {
4642 float recoPhi1 = aConv->ecalImpactPosition()[0].phi();
4643 float recoPhi2 = aConv->ecalImpactPosition()[1].phi();
4644 float recoEta1 = aConv->ecalImpactPosition()[0].eta();
4645 float recoEta2 = aConv->ecalImpactPosition()[1].eta();
4652 dPhiTracksAtEcal = recoPhi1 - recoPhi2;
4654 dEtaTracksAtEcal = recoEta1 - recoEta2;
4666 if (phoIsInBarrel) {
4670 if (phoIsInEndcap) {
4676 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4678 itAss = myAss.find(tfrb.
get());
4679 if (itAss == myAss.end())
4682 float trkProvenance = 3;
4683 if (
tracks[0]->
algoName() ==
"outInEcalSeededConv" &&
tracks[1]->algoName() ==
"outInEcalSeededConv")
4685 if (
tracks[0]->
algoName() ==
"inOutEcalSeededConv" &&
tracks[1]->algoName() ==
"inOutEcalSeededConv")
4689 (
tracks[1]->algoName() ==
"outInEcalSeededConv" &&
tracks[0]->algoName() ==
"inOutEcalSeededConv"))
4707 float simPt =
sqrt(((*itAss).second)->momentum().perp2());
4709 float refPt = -9999.;
4710 float px = 0,
py = 0;
4712 if (aConv->conversionVertex().isValid()) {
4713 reco::Track refTrack = aConv->conversionVertex().refittedTracks()[
i];
4718 float ptres = refPt - simPt;
4720 float pterror = aConv->conversionVertex().refittedTracks()[
i].ptError();
4723 if (trkProvenance == 3)
4734 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4736 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4738 if (phoIsInBarrel) {
4744 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4746 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4748 if (phoIsInEndcap) {
4754 if (!aConv->bcMatchingWithTracks().empty() && aConv->bcMatchingWithTracks()[
i].
isNonnull())
4756 sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()));
4769 if (!atLeastOneRecoTwoTrackConversion) {
4770 for (
unsigned int iConv = 0; iConv < conversionsOneLeg.
size(); iConv++) {
4772 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4778 std::map<const reco::Track*, TrackingParticleRef> myAss;
4779 for (
unsigned int i = 0;
i <
tracks.size();
i++) {
4784 float eoverp = photonE /
tracks[0]->p();
4786 if (phoIsInBarrel) {
4792 if (fabs(
mcEta_) <= 1.) {
4802 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
4806 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[0]];
4808 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >)
q[
theConvTP_[1]];
4847 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
4849 double like = aConv->MVAout();
4853 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
4863 bool phoIsInBarrel =
false;
4864 bool phoIsInEndcap =
false;
4865 if (fabs(aPho.
superCluster()->position().eta()) < 1.479) {
4866 phoIsInBarrel =
true;
4868 phoIsInEndcap =
true;
4880 if (aConv->conversionVertex().isValid())
4886 for (std::vector<PhotonMCTruth>::const_iterator mcPho = mcPhotons.begin(); mcPho != mcPhotons.end(); mcPho++) {
4888 float mcPhi = (*mcPho).fourMomentum().phi();
4891 mcEta_ = (*mcPho).fourMomentum().pseudoRapidity();
4899 if (fabs(
mcEta_) > END_HI)
4906 if ((*mcPho).isAConversion() != 1)
4909 (fabs(
mcEta_) > BARL && fabs(
mcEta_) <= END_HI && fabs((*mcPho).vertex().z()) < 210)))
4915 if (fabs(
tp->vx() - (*mcPho).vertex().x()) < 0.0001 && fabs(
tp->vy() - (*mcPho).vertex().y()) < 0.0001 &&
4916 fabs(
tp->vz() - (*mcPho).vertex().z()) < 0.0001) {
4926 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV1, trackV2;
4928 auto itP1 =
p1.find(tk1);
4929 auto itP2 =
p2.find(tk2);
4930 bool good = (itP1 !=
p1.end()) and (not itP1->val.empty()) and (itP2 !=
p2.end()) and (not itP2->val.empty());
4932 itP1 =
p1.find(tk2);
4933 itP2 =
p2.find(tk1);
4934 good = (itP1 !=
p1.end()) and (not itP1->val.empty()) and (itP2 !=
p2.end()) and (not itP2->val.empty());
4937 std::vector<std::pair<TrackingParticleRef, double> >
const& tp1 = itP1->val;
4938 std::vector<std::pair<TrackingParticleRef, double> >
const& tp2 = itP2->val;
4943 if (
abs(tpr1->pdgId()) == 11 &&
abs(tpr2->pdgId()) == 11) {
4944 if ((tpr1->parentVertex()->sourceTracks_end() - tpr1->parentVertex()->sourceTracks_begin() == 1) &&
4945 (tpr2->parentVertex()->sourceTracks_end() - tpr2->parentVertex()->sourceTracks_begin() == 1)) {
4946 if (tpr1->parentVertex().
key() == tpr2->parentVertex().
key() &&
4947 ((*tpr1->parentVertex()->sourceTracks_begin())->
pdgId() == 22)) {
4960 if (aConv->conversionVertex().isValid())
4967 if (aConv->conversionVertex().isValid()) {
4968 float chi2Prob =
ChiSquaredProbability(aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof());
4969 double convR =
sqrt(aConv->conversionVertex().position().perp2());
4970 double scalar = aConv->conversionVertex().position().x() * aConv->pairMomentum().x() +
4971 aConv->conversionVertex().position().y() * aConv->pairMomentum().y();
4974 convR = -
sqrt(aConv->conversionVertex().position().perp2());
4976 sqrt(aConv->conversionVertex().position().perp2()));
4978 if (!aConv->caloCluster().empty()) {
4981 sqrt(aConv->conversionVertex().position().perp2()));
4982 if (fabs(aConv->caloCluster()[0]->eta()) <= 1.) {
4983 h_convVtxYvsX_->
Fill(aConv->conversionVertex().position().y(), aConv->conversionVertex().position().x());
4988 aConv->conversionVertex().position().x());
4990 aConv->conversionVertex().position().x());
4995 if (fabs(aConv->caloCluster()[0]->eta()) > 1.)
5001 if (phoIsInBarrel) {
5005 if (phoIsInEndcap) {
5017 for (reco::GenJetCollection::const_iterator genJetIter =
genJetCollection.begin();
5022 if (fabs(genJetIter->eta()) > 2.5)
5025 float mcJetPhi = genJetIter->phi();
5028 float mcJetPt = genJetIter->pt();
5034 std::vector<reco::Photon> thePhotons;
5041 float phiPho = aPho.
phi();
5042 float etaPho = aPho.
eta();
5053 matchingPho = *iPho;
5066 bool phoIsInBarrel =
false;
5067 bool phoIsInEndcap =
false;
5068 if (fabs(matchingPho.
superCluster()->position().eta()) < 1.479) {
5069 phoIsInBarrel =
true;
5071 phoIsInEndcap =
true;
5074 if (phoIsInBarrel) {
5077 if (!ecalRecHitHandle.
isValid()) {
5080 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
5084 }
else if (phoIsInEndcap) {
5087 if (!ecalRecHitHandle.
isValid()) {
5090 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product " <<
l.module;
5096 float photonE = matchingPho.
energy();
5097 float photonEt = matchingPho.
et();
5098 float r9 = matchingPho.
r9();
5099 float r1 = matchingPho.
r1x5();
5100 float r2 = matchingPho.
r2x5();
5107 std::vector<std::pair<DetId, float> >::const_iterator rhIt;
5109 bool atLeastOneDeadChannel =
false;
5113 for (rhIt = (*bcIt)->hitsAndFractions().begin(); rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
5116 if (rhIt->first == (*it).id()) {
5117 if ((*it).recoFlag() == 9) {
5118 atLeastOneDeadChannel =
true;
5126 if (atLeastOneDeadChannel) {
5195 if (phoIsInBarrel) {
5219 }
else if (phoIsInEndcap) {
5248 for (
unsigned int iConv = 0; iConv <
conversions.size(); iConv++) {
5251 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
5252 double like = aConv->MVAout();
5257 if (!aConv->caloCluster().empty()) {
5262 float eoverp = aConv->EoverP();
5266 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
5269 if (phoIsInBarrel) {
5275 }
else if (phoIsInEndcap) {
5283 if (aConv->conversionVertex().isValid()) {
5284 double convR =
sqrt(aConv->conversionVertex().position().perp2());
5285 double scalar = aConv->conversionVertex().position().x() * aConv->pairMomentum().x() +
5286 aConv->conversionVertex().position().y() * aConv->pairMomentum().y();
5288 convR = -
sqrt(aConv->conversionVertex().position().perp2());
5292 sqrt(aConv->conversionVertex().position().perp2()));
5293 if (!aConv->caloCluster().empty() && fabs(aConv->caloCluster()[0]->eta()) <= 1.) {
5295 aConv->conversionVertex().position().x());
5309 if (!(mcIter->pdgId() == 22))
5311 if (mcIter->mother() !=
nullptr and !(mcIter->mother()->pdgId() == 25))
5313 if (fabs(mcIter->eta()) > 2.5)
5316 float mcPhi = mcIter->phi();
5317 float mcEta = mcIter->eta();
5319 float mcEnergy = mcIter->energy();
5321 double dR = 9999999.;
5322 float minDr = 10000.;
5326 for (
unsigned int ipho = 0; ipho < photonHandle->size(); ipho++) {
5329 double dphi = pho->phi() - mcPhi;
5331 dphi = dphi < 0 ? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi;
5333 double deta = pho->superCluster()->position().eta() - mcEta;
5336 if (
dR < 0.1 &&
dR < minDr) {
5349 bool phoIsInBarrel =
false;
5350 bool phoIsInEndcap =
false;
5352 float phoEta = matchingPho->superCluster()->position().eta();
5353 if (fabs(phoEta) < 1.479) {
5354 phoIsInBarrel =
true;
5356 phoIsInEndcap =
true;
5359 float photonE = matchingPho->energy();
5360 float sigmaEoE = matchingPho->getCorrectedEnergyError(matchingPho->getCandidateP4type()) / matchingPho->energy();
5361 float photonEt = matchingPho->energy() / cosh(matchingPho->eta());
5364 float r9 = matchingPho->r9();
5365 float full5x5_r9 = matchingPho->full5x5_r9();
5366 float r1 = matchingPho->r1x5();
5367 float r2 = matchingPho->r2x5();
5369 float full5x5_sieie = matchingPho->full5x5_sigmaIetaIeta();
5370 float hOverE = matchingPho->hadronicOverEm();
5371 float newhOverE = matchingPho->hadTowOverEm();
5372 float ecalIso = matchingPho->ecalRecHitSumEtConeDR04();
5373 float hcalIso = matchingPho->hcalTowerSumEtConeDR04();
5374 float newhcalIso = matchingPho->hcalTowerSumEtBcConeDR04();
5375 float trkIso = matchingPho->trkSumPtSolidConeDR04();
5376 float nIsoTrk = matchingPho->nTrkSolidConeDR04();
5378 float chargedHadIso = matchingPho->chargedHadronIso();
5379 float neutralHadIso = matchingPho->neutralHadronIso();
5380 float photonIso = matchingPho->photonIso();
5385 if ((photonEt > 14 && newhOverE < 0.15) || (photonEt > 10 && photonEt < 14 && chargedHadIso < 10)) {
5417 if (phoIsInBarrel) {
5441 if (phoIsInEndcap) {
5473 const float PI = 3.1415927;
5488 const float PI = 3.1415927;
5491 const float R_ECAL = 136.5;
5498 float ZEcal =
R_ECAL * sinh(EtaParticle) + Zvertex;
5501 Theta = atan(
R_ECAL / ZEcal);
5508 if (EtaParticle < 0.0)
5510 float Zlen = Zend - Zvertex;
5511 float RR = Zlen / sinh(EtaParticle);
5512 Theta = atan(RR / Zend);
MonitorElement * p_DCotTracksVsR_
MonitorElement * p_sigmaEoEVsEta_[3]
MonitorElement * h_convVtxdX_endcap_
MonitorElement * h_SumPtOverPhoPt_NeuHad_unCleaned_[3]
MonitorElement * h_zPVFromTracks_[5]
MonitorElement * h_hOverE_miniAOD_[3][3]
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
MonitorElement * h_OIinnermostHitR_
MonitorElement * h2_nTrkSolidConeDR04VsEta_[3]
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
MonitorElement * p_hOverEVsEtBkg_
MonitorElement * h_nSimPho_[2]
MonitorElement * p_DPhiTracksAtEcalVsR_
MonitorElement * h_scBkgPhi_
MonitorElement * h2_Chi2VsR_[3]
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
T getParameter(std::string const &) const
MonitorElement * h_sigmaIetaIeta_[3][3]
auto const good
min quality of good
ParticleType
particle types
MonitorElement * p_sceResVsR9_[3]
MonitorElement * h_DPhiTracksAtEcal_[2][3]
MonitorElement * h_scPhi_miniAOD_[2]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEta_[3]
MonitorElement * h_IOinnermostHitR_
MonitorElement * h_phoBkgDPhi_
MonitorElement * p_nHitsVsEtaSL_[2]
MonitorElement * h_DPhiTracksAtVtx_[2][3]
MonitorElement * p_EoverEtrueVsEta_[3]
MonitorElement * p_EoverPVsEta_[3]
MonitorElement * h_convVtxdZ_
MonitorElement * h_dRPhoPFcand_Pho_Cleaned_[3]
MonitorElement * h_newhOverE_[3][3]
MonitorElement * h_phoBkgPhi_
MonitorElement * h_chHadIso_[3]
MonitorElement * h_phoPhi_[2]
edm::EDGetTokenT< edm::SimVertexContainer > g4_simVtx_Token_
MonitorElement * h_hcalTowerBcSumEtConeDR04_[3][3]
MonitorElement * h2_PoverPtrueVsEoverP_[3]
reco::ConversionRefVector conversions() const
vector of references to Conversion's
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * h_mvaOut_[3]
MonitorElement * h_scE_[2][3]
edm::EDGetTokenT< reco::VertexCollection > offline_pvToken_
MonitorElement * h_nRecoVtx_
MonitorElement * h_convVtxRvsZ_zoom_[2]
MonitorElement * h2_hOverEVsEt_[3]
MonitorElement * h_hcalTowerSumEtConeDR04_miniAOD_[3][3]
edm::EDGetTokenT< edm::HepMCProduct > hepMC_Token_
MonitorElement * h_SumPtOverPhoPt_NeuHad_Cleaned_[3]
MonitorElement * p_hcalTowerSumEtConeDR04VsEt_[3]
MonitorElement * p_isoTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h_DPhiTracksAtVtxBkg_[3]
edm::EDGetTokenT< edm::SimVertexContainer > famos_simVtx_Token_
MonitorElement * h2_EoverPVsR_[3]
MonitorElement * h_phoEt_[2][3]
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > transientTrackBuilderToken_
float ecalRecHitSumEtConeDR04() const
MonitorElement * h_DEtaTracksAtEcal_[2][3]
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidates_
MonitorElement * h_phoEResRegr2_[3][3]
MonitorElement * p_convVtxdYVsY_
MonitorElement * h_phoDEta_[2]
MonitorElement * h_SimJet_[3]
MonitorElement * h2_convVtxdRVsEta_
MonitorElement * h_RecoConvTwoMTracks_[5]
MonitorElement * h_convVtxdY_
MonitorElement * h_scEtaWidth_[2]
Sin< T >::type sin(const T &t)
MonitorElement * h2_hOverEVsEtaBkg_
MonitorElement * h2_DCotTracksVsEta_
std::vector< GenJet > GenJetCollection
collection of GenJet objects
T const * product() const
MonitorElement * h2_etaVsRsim_[3]
MonitorElement * h2_PtRecVsPtSim_[3]
MonitorElement * h2_PoverPtrueVsEta_[3]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_convVtxdZ_endcap_
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< edm::View< reco::Track > > conversionIOTrackPr_Token_
MonitorElement * h_scEt_[2][3]
MonitorElement * h_dzPVFromTracks_[5]
MonitorElement * p_EoverEtrueVsR_[3]
MonitorElement * h2_sigmaIetaIetaVsEtBkg_[3]
MonitorElement * h_ecalRecHitSumEtConeDR04Bkg_[3]
MonitorElement * h_simConvVtxRvsZ_[4]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEt_[3]
MonitorElement * h_MatchedSimJet_[3]
MonitorElement * p_nHitsVsRSL_[2]
MonitorElement * p_r2VsEtBkg_
bool isNonnull() const
Checks for non-null.
MonitorElement * h2_isoTrkSolidConeDR04VsEtaBkg_
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0005_[5]
MonitorElement * h2_r1VsEtaBkg_
MonitorElement * h2_isoTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h_TkD0_[3]
MonitorElement * h_dRPhoPFcand_ChHad_Cleaned_[3]
MonitorElement * h_chHadIso_miniAOD_[3]
MonitorElement * h_convVtxdY_endcap_
MonitorElement * h_EoverP_SL_[3]
std::unique_ptr< PhotonMCTruthFinder > thePhotonMCTruthFinder_
MonitorElement * p_eResVsR9_[3]
MonitorElement * h_etOutsideMustache_[3]
MonitorElement * h2_DPhiTracksAtVtxVsEta_
MonitorElement * p_DPhiTracksAtVtxVsR_
MonitorElement * h_SumPtOverPhoPt_ChHad_Cleaned_[3]
MonitorElement * p_sigmaEoEVsEt_[3][3]
MonitorElement * h_convVtxdR_endcap_
Log< level::Error, false > LogError
MonitorElement * h_convSLVtxRvsZ_[3]
MonitorElement * h_phoEt_miniAOD_[2][3]
static constexpr float R_ECAL
MonitorElement * p_newhOverEVsEta_[3]
MonitorElement * h2_convVtxRrecVsTrue_
MonitorElement * h2_DCotTracksVsR_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
MonitorElement * h2_PtRecVsPtSimMixProv_
MonitorElement * h_SumPtOverPhoPt_ChHad_unCleaned_[3]
key_type key() const
Accessor for product key.
MonitorElement * h_convEtaBkg_
edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIso_token
static const double deltaEta
MonitorElement * h_phoE_miniAOD_[2][3]
MonitorElement * h_scPhi_[2]
MonitorElement * h2_r2VsEtaBkg_
MonitorElement * h_convVtxdPhi_
MonitorElement * h_scBkgE_[3]
MonitorElement * h_convERes_[2][3]
MonitorElement * p_Chi2VsR_[3]
MonitorElement * h_SimPho_[3]
Denominator for efficiencies.
const_iterator end() const
MonitorElement * h2_r2VsEtBkg_
MonitorElement * p_r2VsEtaBkg_
MonitorElement * h_convVtxRvsZ_[3]
MonitorElement * h_nTrkSolidConeDR04_miniAOD_[3][3]
MonitorElement * h_convPhi_[2]
MonitorElement * h_nConv_[2][3]
info per conversion
MonitorElement * h2_isoTrkSolidConeDR04VsEt_[3]
MonitorElement * h_full5x5_r9_miniAOD_[3][3]
MonitorElement * h_r9_[3][3]
eBin
CAREFULL for the time being only Loos exists 1 => Tight Photon = GoodCandidate.
MonitorElement * h2_sigmaIetaIetaVsEta_[3]
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
MonitorElement * h_dRPhoPFcand_Pho_unCleaned_[3]
MonitorElement * p_EoverPVsR_[3]
float trkSumPtSolidConeDR04() const
edm::ESHandle< MagneticField > theMF_
MonitorElement * h2_sceResVsR9_[3]
MonitorElement * h_phoEta_[2]
MonitorElement * h2_Chi2VsEta_[3]
MonitorElement * h_simTkPt_
MonitorElement * h_mvaOutBkg_[3]
MonitorElement * h_trkAlgo_
MonitorElement * h2_dzPVVsR_
edm::EDGetTokenT< edm::SimTrackContainer > g4_simTk_Token_
MonitorElement * h_scEta_[2]
MonitorElement * h_convVtxdX_barrel_
MonitorElement * h2_hOverEVsEta_[3]
MonitorElement * p_eResVsR_
MonitorElement * p_hcalTowerSumEtConeDR04VsEtBkg_[3]
MonitorElement * h_tkChi2Large_[2]
MonitorElement * h2_r1VsEt_[3]
MonitorElement * h_trkProv_[2]
MonitorElement * p_sigmaIetaIetaVsEtaBkg_
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
float hcalTowerSumEtConeDR04(int depth=0) const
edm::ParameterSet parameters_
MonitorElement * p_convVtxdRVsEta_
MonitorElement * h_r1_[3][3]
MonitorElement * h_EoverPTracks_[2][3]
MonitorElement * h_phoSigmaEoE_miniAOD_[3][3]
MonitorElement * h_scPhiWidth_[2]
MonitorElement * h2_etaVsRreco_[3]
float sigmaIetaIeta() const
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * h2_r1VsEta_[3]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * p_ecalRecHitSumEtConeDR04VsEtaBkg_
float phiNormalization(float &a)
MonitorElement * h2_r2VsEta_[3]
MonitorElement * h_nHadIso_miniAOD_[3]
MonitorElement * h_isoTrkSolidConeDR04_[3][3]
MonitorElement * p_hOverEVsEt_[3]
MonitorElement * h_EtR9Less093_[3][3]
MonitorElement * h_tkChi2SL_[2]
MonitorElement * h2_eResVsEt_[3][3]
MonitorElement * h_r9VsNofTracks_[2][3]
MonitorElement * h_ecalRecHitSumEtConeDR04_[3][3]
MonitorElement * h_ecalRecHitSumEtConeDR04_miniAOD_[3][3]
MonitorElement * h_phoEResRegr1_[3][3]
MonitorElement * h2_r9VsEtBkg_
MonitorElement * p_hOverEVsEta_[3]
MonitorElement * h2_TkPtPull_[3]
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
MonitorElement * h_dRPhoPFcand_NeuHad_Cleaned_[5]
MonitorElement * h_SumPtOverPhoPt_Pho_Cleaned_[3]
MonitorElement * h_MatchedSimPhoBadCh_[3]
MonitorElement * h_MatchedSimJetBadCh_[3]
MonitorElement * h_convVtxdEta_
MonitorElement * h_r2_[3][3]
MonitorElement * p_nHitsVsEta_[2]
MonitorElement * h_convVtxdY_barrel_
float ChiSquaredProbability(double chiSquared, double nrDOF)
~PhotonValidator() override
MonitorElement * p_sigmaIetaIetaVsEtBkg_[3]
MonitorElement * h2_EoverEtrueVsEta_[3]
MonitorElement * h_phoBkgDEta_
MonitorElement * h_phoIso_miniAOD_[3]
MonitorElement * h_simTkEta_
MonitorElement * nHitsVsEta_[2]
static constexpr float etaBarrelEndcap
const_iterator begin() const
MonitorElement * p_nTrkSolidConeDR04VsEtaBkg_
MonitorElement * h2_sigmaIetaIetaVsEtaBkg_
MonitorElement * h_gamgamMassRegr1_[3][3]
MonitorElement * p_convVtxdXVsX_
MonitorElement * p_dzPVVsR_
double convTrackMinPtCut_
MonitorElement * hBCEnergyOverTrackPout_[3]
MonitorElement * h_PoverETracksBkg_[3]
MonitorElement * h_invMass_[2][3]
edm::EDGetTokenT< TrackingParticleCollection > token_tp_
MonitorElement * h2_EoverEtrueVsEoverP_[3]
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
MonitorElement * h_phoE_[2][3]
MonitorElement * h_simConvVtxYvsX_
MonitorElement * h_hOverE_[3][3]
MonitorElement * p_TkPtPull_[3]
MonitorElement * h_hOverEBkg_[3]
MonitorElement * h_SimPhoMotherEt_[2]
MonitorElement * h2_eResVsR9_[3]
MonitorElement * nHitsVsR_[2]
MonitorElement * h_r1Bkg_[3]
MonitorElement * h_scEta_miniAOD_[2]
Histos for comparison with miniAOD content.
const_iterator end() const
MonitorElement * h_convVtxdX_
MonitorElement * p_isoTrkSolidConeDR04VsEtaBkg_
MonitorElement * h2_DPhiTracksAtVtxVsR_
MonitorElement * h_convVtxYvsXBkg_
MonitorElement * h_TkPtPull_[3]
MonitorElement * h2_EoverPVsEta_[3]
edm::ESHandle< CaloGeometry > theCaloGeom_
MonitorElement * h_nTrkSolidConeDR04Bkg_[3]
Log< level::Info, false > LogInfo
int nTrkSolidConeDR04() const
MonitorElement * p_DCotTracksVsEta_
MonitorElement * h_convPtRes_[2][3]
MonitorElement * h2_nTrkSolidConeDR04VsEtaBkg_
MonitorElement * h_r2Bkg_[3]
MonitorElement * h_MatchedSimPho_[3]
Numerator for efficiencies.
MonitorElement * p_convVtxdRVsR_
static constexpr float d0
float hadronicOverEm(int depth=0) const
MonitorElement * h_convVtxRvsZBkg_[2]
MonitorElement * p_Chi2VsEta_[3]
MonitorElement * h_nHadIso_[3]
MonitorElement * h2_hOverEVsEtBkg_
MonitorElement * p_sigmaEoEVsNVtx_[3][3]
size_type size() const
Size of the RefVector.
MonitorElement * p_eResVsNVtx_[3][3]
MonitorElement * h_SumPtOverPhoPt_Pho_unCleaned_[3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEtBkg_[3]
void clear()
Clear the vector.
MonitorElement * h_nSimConv_[2]
MonitorElement * h_nTrkSolidConeDR04_[3][3]
MonitorElement * h_sigmaIetaIetaBkg_[3]
MonitorElement * h2_EoverEtrueVsR_[3]
MonitorElement * p_hcalTowerBcSumEtConeDR04VsEta_[3]
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0_[5]
MonitorElement * h_gamgamMass_[3][3]
MonitorElement * h_distMinAppTracks_[2][3]
std::vector< Photon > PhotonCollection
collectin of Photon objects
edm::EDGetTokenT< reco::GenParticleCollection > genpartToken_
MonitorElement * p_PoverPtrueVsEta_[3]
const_iterator end() const
Termination of iteration.
MonitorElement * h_r9Bkg_[3]
MonitorElement * h_phoERes_[3][3]
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * h_isoTrkSolidConeDR04Bkg_[3]
MonitorElement * h2_r9VsEtaBkg_
MonitorElement * h_convVtxYvsX_zoom_[2]
MonitorElement * h_convAlgo_
MonitorElement * h_nCluOutsideMustache_[3]
edm::EDGetTokenT< reco::GenJetCollection > genjets_Token_
MonitorElement * h_hcalTowerSumEtConeDR04_[3][3]
MonitorElement * h2_nTrkSolidConeDR04VsEt_[3]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEtBkg_[3]
MonitorElement * h_convQuality_
MonitorElement * h2_r1VsEtBkg_
MonitorElement * h_DCotTracksBkg_[3]
MonitorElement * h_phoIso_[3]
MonitorElement * p_ecalRecHitSumEtConeDR04VsEta_[3]
MonitorElement * p_r1VsEtaBkg_
MonitorElement * h_PoverETracks_[2][3]
float etaTransformation(float a, float b)
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEt_[3]
MonitorElement * h_phoPixSeedSize_[2]
const Vector & momentum() const
track momentum vector
MonitorElement * h_vtxChi2_[3]
MonitorElement * p_nTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * p_hcalTowerBcSumEtConeDR04VsEt_[3]
MonitorElement * h_pfMva_[3]
edm::EDGetTokenT< reco::PhotonCollection > photonCollectionToken_
MonitorElement * p_ecalRecHitSumEtConeDR04VsEtBkg_[3]
MonitorElement * h_hcalTowerSumEtConeDR04Bkg_[3]
MonitorElement * p_convVtxdZVsZ_
MonitorElement * p_hcalTowerSumEtConeDR04VsEta_[3]
MonitorElement * h_r1_miniAOD_[3][3]
MonitorElement * p_r1VsEtBkg_
MonitorElement * h_phoBkgEt_[3]
double et() const final
transverse energy
MonitorElement * h2_isoTrkSolidConeDR04VsEta_[3]
MonitorElement * h_SimPhoMotherEta_[2]
MonitorElement * h_EoverPTracksBkg_[3]
MonitorElement * h_convVtxdR_barrel_
void push_back(const RefToBase< T > &)
MonitorElement * h_VisSimConv_[6]
MonitorElement * h_SimConvTwoMTracks_[5]
MonitorElement * h2_nTrkSolidConeDR04VsEtBkg_[3]
MonitorElement * h2_hcalTowerSumEtConeDR04VsEtaBkg_
MonitorElement * p_eResVsEt_[3][3]
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
MonitorElement * h_dRPhoPFcand_NeuHad_unCleaned_[5]
MonitorElement * h_convVtxYvsX_
MonitorElement * h_phoBkgE_[3]
MonitorElement * p_hOverEVsEtaBkg_
MonitorElement * h_r2_miniAOD_[3][3]
MonitorElement * h_phoSigmaEoE_[3][3]
MonitorElement * h_RecoConvTwoTracks_[5]
MonitorElement * p_r9VsEta_[3]
MonitorElement * h_DCotTracks_[2][3]
MonitorElement * h_phoERes_miniAOD_[3][3]
MonitorElement * h2_DPhiTracksAtEcalVsR_
std::vector< TrackingParticle > TrackingParticleCollection
MonitorElement * p_eResVsEta_[3]
edm::RefVector< TrackingParticleCollection > theConvTP_
MonitorElement * h_newhOverE_miniAOD_[3][3]
void dqmBeginRun(edm::Run const &r, edm::EventSetup const &theEventSetup) override
MonitorElement * h_dRPhoPFcand_ChHad_unCleaned_[3]
MonitorElement * h_AllSimConv_[5]
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * h_vtxChi2Prob_[3]
MonitorElement * h_scBkgEta_
MonitorElement * p_nHitsVsR_[2]
const_iterator begin() const
Initialize an iterator over the RefVector.
MonitorElement * h_hcalTowerBcSumEtConeDR04_miniAOD_[3][3]
MonitorElement * h_r9_miniAOD_[3][3]
MonitorElement * h2_convVtxdRVsR_
double phi() const final
momentum azimuthal angle
MonitorElement * h_gamgamMassRegr2_[3][3]
MonitorElement * p_newhOverEVsEt_[3]
MonitorElement * h2_r2VsEt_[3]
MonitorElement * h_convVtxdR_
MonitorElement * h_convVtxdZ_barrel_
value_type const * get() const
MonitorElement * h_SimConvOneTracks_[5]
MonitorElement * h_full5x5_sigmaIetaIeta_miniAOD_[3][3]
MonitorElement * h_convEta_[3]
MonitorElement * p_hcalTowerSumEtConeDR04VsEtaBkg_
MonitorElement * p_ecalRecHitSumEtConeDR04VsEt_[3]
double mcPhi_
global variable for the MC photon
Power< A, B >::type pow(const A &a, const B &b)
MonitorElement * h_SimConvTwoTracks_[5]
MonitorElement * h2_sigmaIetaIetaVsEt_[3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEtaBkg_
MonitorElement * h_scBkgEt_[3]
MonitorElement * h2_DPhiTracksAtEcalVsEta_
edm::EDGetTokenT< edm::View< reco::Track > > conversionOITrackPr_Token_
MonitorElement * h_sigmaIetaIeta_miniAOD_[3][3]
MonitorElement * h2_ecalRecHitSumEtConeDR04VsEta_[3]
MonitorElement * h_SimConvEtaPix_[2]
static constexpr float Z_Endcap
MonitorElement * h2_eResVsEta_[3]
MonitorElement * p_DPhiTracksAtVtxVsEta_
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
MonitorElement * p_DPhiTracksAtEcalVsEta_
MonitorElement * h_phoDPhi_[2]
MonitorElement * h_convPhiBkg_
edm::EDGetTokenT< edm::SimTrackContainer > famos_simTk_Token_
MonitorElement * h_phoBkgEta_
MonitorElement * h2_r9VsEt_[3]
MonitorElement * h_tkChi2_[2]
MonitorElement * p_dzPVVsEta_
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .
PhotonValidator(const edm::ParameterSet &)
MonitorElement * h_SimConvOneMTracks_[5]
double energy() const final
energy
MonitorElement * h_isoTrkSolidConeDR04_miniAOD_[3][3]
double eta() const final
momentum pseudorapidity
void dqmEndRun(edm::Run const &r, edm::EventSetup const &es) override