32 #include "CLHEP/Units/GlobalPhysicalConstants.h"
93 isRunCentrally_= pset.
getParameter<
bool>(
"isRunCentrally");
97 photonCollectionToken_ = consumes<reco::PhotonCollection>(
101 token_tp_ = consumes<TrackingParticleCollection>(
104 barrelEcalHits_ = consumes<EcalRecHitCollection>(
106 endcapEcalHits_ = consumes<EcalRecHitCollection>(
111 conversionOITrackPr_Token_ = consumes<edm::View<reco::Track> >(
113 conversionIOTrackPr_Token_ = consumes<edm::View<reco::Track> >(
120 minPhoEtCut_ = pset.
getParameter<
double>(
"minPhoEtCut");
121 convTrackMinPtCut_ = pset.
getParameter<
double>(
"convTrackMinPtCut");
122 likelihoodCut_ = pset.
getParameter<
double>(
"likelihoodCut");
124 trkIsolExtRadius_ = pset.
getParameter<
double>(
"trkIsolExtR");
125 trkIsolInnRadius_ = pset.
getParameter<
double>(
"trkIsolInnR");
128 ecalIsolRadius_ = pset.
getParameter<
double>(
"ecalIsolR");
130 hcalIsolExtRadius_ = pset.
getParameter<
double>(
"hcalIsolExtR");
131 hcalIsolInnRadius_ = pset.
getParameter<
double>(
"hcalIsolInnR");
132 hcalHitEtLow_ = pset.
getParameter<
double>(
"minHcalHitEtCut");
134 numOfTracksInCone_ = pset.
getParameter<
int>(
"maxNumOfTracksInCone");
135 trkPtSumCut_ = pset.
getParameter<
double>(
"trkPtSumCut");
136 ecalEtSumCut_ = pset.
getParameter<
double>(
"ecalEtSumCut");
137 hcalEtSumCut_ = pset.
getParameter<
double>(
"hcalEtSumCut");
139 dCotCutValue_ = pset.
getParameter<
double>(
"dCotCutValue");
140 dCotHardCutValue_ = pset.
getParameter<
double>(
"dCotHardCutValue");
142 offline_pvToken_ = consumes<reco::VertexCollection>(
145 g4_simTk_Token_ = consumes<edm::SimTrackContainer>(
edm::InputTag(
"g4SimHits"));
146 g4_simVtx_Token_ = consumes<edm::SimVertexContainer>(
edm::InputTag(
"g4SimHits"));
147 famos_simTk_Token_ = consumes<edm::SimTrackContainer>(
149 famos_simVtx_Token_ = consumes<edm::SimVertexContainer>(
151 hepMC_Token_ = consumes<edm::HepMCProduct>(
edm::InputTag(
"generatorSmeared"));
152 genjets_Token_ = consumes<reco::GenJetCollection>(
155 genpartToken_ = consumes<reco::GenParticleCollection>(
edm::InputTag(
"genParticles" ));
157 consumes<reco::TrackToTrackingParticleAssociator>(
edm::InputTag(
"trackAssociatorByHitsForPhotonValidation"));
164 nRecConvAssWithEcal_=0;
181 double resMin = parameters_.getParameter<
double>(
"resMin");
182 double resMax = parameters_.getParameter<
double>(
"resMax");
183 int resBin = parameters_.getParameter<
int>(
"resBin");
185 double eMin = parameters_.getParameter<
double>(
"eMin");
186 double eMax = parameters_.getParameter<
double>(
"eMax");
187 int eBin = parameters_.getParameter<
int>(
"eBin");
189 double etMin = parameters_.getParameter<
double>(
"etMin");
190 double etMax = parameters_.getParameter<
double>(
"etMax");
191 int etBin = parameters_.getParameter<
int>(
"etBin");
193 double etScale = parameters_.getParameter<
double>(
"etScale");
195 double etaMin = parameters_.getParameter<
double>(
"etaMin");
196 double etaMax = parameters_.getParameter<
double>(
"etaMax");
197 int etaBin = parameters_.getParameter<
int>(
"etaBin");
198 int etaBin2 = parameters_.getParameter<
int>(
"etaBin2");
200 double dEtaMin = parameters_.getParameter<
double>(
"dEtaMin");
201 double dEtaMax = parameters_.getParameter<
double>(
"dEtaMax");
202 int dEtaBin = parameters_.getParameter<
int>(
"dEtaBin");
204 double phiMin = parameters_.getParameter<
double>(
"phiMin");
205 double phiMax = parameters_.getParameter<
double>(
"phiMax");
206 int phiBin = parameters_.getParameter<
int>(
"phiBin");
208 double dPhiMin = parameters_.getParameter<
double>(
"dPhiMin");
209 double dPhiMax = parameters_.getParameter<
double>(
"dPhiMax");
210 int dPhiBin = parameters_.getParameter<
int>(
"dPhiBin");
212 double rMin = parameters_.getParameter<
double>(
"rMin");
213 double rMax = parameters_.getParameter<
double>(
"rMax");
214 int rBin = parameters_.getParameter<
int>(
"rBin");
216 double zMin = parameters_.getParameter<
double>(
"zMin");
217 double zMax = parameters_.getParameter<
double>(
"zMax");
218 int zBin = parameters_.getParameter<
int>(
"zBin");
222 double r9Min = parameters_.getParameter<
double>(
"r9Min");
223 double r9Max = parameters_.getParameter<
double>(
"r9Max");
224 int r9Bin = parameters_.getParameter<
int>(
"r9Bin");
226 double dPhiTracksMin = parameters_.getParameter<
double>(
"dPhiTracksMin");
227 double dPhiTracksMax = parameters_.getParameter<
double>(
"dPhiTracksMax");
228 int dPhiTracksBin = parameters_.getParameter<
int>(
"dPhiTracksBin");
230 double dEtaTracksMin = parameters_.getParameter<
double>(
"dEtaTracksMin");
231 double dEtaTracksMax = parameters_.getParameter<
double>(
"dEtaTracksMax");
232 int dEtaTracksBin = parameters_.getParameter<
int>(
"dEtaTracksBin");
234 double dCotTracksMin = parameters_.getParameter<
double>(
"dCotTracksMin");
235 double dCotTracksMax = parameters_.getParameter<
double>(
"dCotTracksMax");
236 int dCotTracksBin = parameters_.getParameter<
int>(
"dCotTracksBin");
239 double povereMin = parameters_.getParameter<
double>(
"povereMin");
240 double povereMax = parameters_.getParameter<
double>(
"povereMax");
241 int povereBin = parameters_.getParameter<
int>(
"povereBin");
243 double eoverpMin = parameters_.getParameter<
double>(
"eoverpMin");
244 double eoverpMax = parameters_.getParameter<
double>(
"eoverpMax");
245 int eoverpBin = parameters_.getParameter<
int>(
"eoverpBin");
247 double chi2Min = parameters_.getParameter<
double>(
"chi2Min");
248 double chi2Max = parameters_.getParameter<
double>(
"chi2Max");
250 int ggMassBin = parameters_.getParameter<
int>(
"ggMassBin");
251 double ggMassMin = parameters_.getParameter<
double>(
"ggMassMin");
252 double ggMassMax = parameters_.getParameter<
double>(
"ggMassMax");
255 double rMinForXray = parameters_.getParameter<
double>(
"rMinForXray");
256 double rMaxForXray = parameters_.getParameter<
double>(
"rMaxForXray");
257 int rBinForXray = parameters_.getParameter<
int>(
"rBinForXray");
258 double zMinForXray = parameters_.getParameter<
double>(
"zMinForXray");
259 double zMaxForXray = parameters_.getParameter<
double>(
"zMaxForXray");
260 int zBinForXray = parameters_.getParameter<
int>(
"zBinForXray");
261 int zBin2ForXray = parameters_.getParameter<
int>(
"zBin2ForXray");
273 if ( ! isRunCentrally_ ) {
274 h_nSimPho_[0] = iBooker.
book1D(histname,
"# of Sim photons per event ",20,-0.5,19.5);
275 histname =
"SimPhoMotherEt";
276 h_SimPhoMotherEt_[0] = iBooker.
book1D(histname,
"Sim photon Mother tranverse energy spectrum",etBin,etMin,etMax);
277 h_SimPhoMotherEta_[0] = iBooker.
book1D(
"SimPhoMotherEta",
" Sim Photon Mother Eta ",etaBin,etaMin, etaMax) ;
278 histname =
"SimPhoMotherEtMatched";
279 h_SimPhoMotherEt_[1] = iBooker.
book1D(histname,
"Sim photon matched by a reco Photon: Mother tranverse energy spectrum",etBin,etMin,etMax);
280 h_SimPhoMotherEta_[1] = iBooker.
book1D(
"SimPhoMotherEtaMatched",
" Sim Photon matched by a reco Photon: Mother Eta ",etaBin,etaMin, etaMax) ;
283 histname =
"h_SimPhoEta";
284 h_SimPho_[0] = iBooker.
book1D(histname,
" All photons simulated #eta",etaBin,etaMin, etaMax);
285 histname =
"h_SimPhoPhi";
286 h_SimPho_[1] = iBooker.
book1D(histname,
" All photons simulated #phi",phiBin,phiMin, phiMax);
287 histname =
"h_SimPhoEt";
288 h_SimPho_[2] = iBooker.
book1D(histname,
" All photons simulated Et",etBin,etMin, etMax);
290 histname =
"nOfSimPhotonsMatched";
291 h_nSimPho_[1] = iBooker.
book1D(histname,
"# of Sim photons matched by a reco Photon per event ",20,-0.5,19.5);
292 histname =
"h_MatchedSimPhoEta";
293 h_MatchedSimPho_[0] = iBooker.
book1D(histname,
" Matching photons simulated #eta",etaBin,etaMin, etaMax);
294 histname =
"h_MatchedSimPhoPhi";
295 h_MatchedSimPho_[1] = iBooker.
book1D(histname,
" Matching photons simulated #phi",phiBin,phiMin, phiMax);
296 histname =
"h_MatchedSimPhoEt";
297 h_MatchedSimPho_[2] = iBooker.
book1D(histname,
" Matching photons simulated Et",etBin,etMin, etMax);
299 histname =
"h_MatchedSimPhoBadChEta";
300 h_MatchedSimPhoBadCh_[0] = iBooker.
book1D(histname,
" Matching photons simulated #eta",etaBin,etaMin, etaMax);
301 histname =
"h_MatchedSimPhoBadChPhi";
302 h_MatchedSimPhoBadCh_[1] = iBooker.
book1D(histname,
" Matching photons simulated #phi",phiBin,phiMin, phiMax);
303 histname =
"h_MatchedSimPhoBadChEt";
304 h_MatchedSimPhoBadCh_[2] = iBooker.
book1D(histname,
" Matching photons simulated Et",etBin,etMin, etMax);
308 histname =
"nOfSimConversions";
309 if ( ! isRunCentrally_ ) {
310 h_nSimConv_[0] = iBooker.
book1D(histname,
"# of Sim conversions per event ",20,-0.5,19.5);
311 histname =
"nOfVisSimConversions";
312 h_nSimConv_[1] = iBooker.
book1D(histname,
"# of Sim conversions per event ",20,-0.5,19.5);
315 histname =
"h_AllSimConvEta";
316 h_AllSimConv_[0] = iBooker.
book1D(histname,
" All conversions: simulated #eta",etaBin2,etaMin,etaMax);
317 histname =
"h_AllSimConvPhi";
318 h_AllSimConv_[1] = iBooker.
book1D(histname,
" All conversions: simulated #phi",phiBin,phiMin,phiMax);
319 histname =
"h_AllSimConvR";
320 h_AllSimConv_[2] = iBooker.
book1D(histname,
" All conversions: simulated R",rBin,rMin,rMax);
321 histname =
"h_AllSimConvZ";
322 h_AllSimConv_[3] = iBooker.
book1D(histname,
" All conversions: simulated Z",zBin,zMin,zMax);
323 histname =
"h_AllSimConvEt";
324 h_AllSimConv_[4] = iBooker.
book1D(histname,
" All conversions: simulated Et",etBin,etMin,etMax);
326 histname =
"h_VisSimConvEta";
327 h_VisSimConv_[0] = iBooker.
book1D(histname,
" All vis conversions: simulated #eta",etaBin2,etaMin, etaMax);
328 histname =
"h_VisSimConvPhi";
329 h_VisSimConv_[1] = iBooker.
book1D(histname,
" All vis conversions: simulated #phi",phiBin,phiMin, phiMax);
330 histname =
"h_VisSimConvR";
331 h_VisSimConv_[2] = iBooker.
book1D(histname,
" All vis conversions: simulated R",rBin,rMin,rMax);
332 histname =
"h_VisSimConvZ";
333 h_VisSimConv_[3] = iBooker.
book1D(histname,
" All vis conversions: simulated Z",zBin,zMin, zMax);
334 histname =
"h_VisSimConvEt";
335 h_VisSimConv_[4] = iBooker.
book1D(histname,
" All vis conversions: simulated Et",etBin,etMin, etMax);
337 histname =
"h_SimConvOneTracksEta";
338 h_SimConvOneTracks_[0] = iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
339 histname =
"h_SimConvOneTracksPhi";
340 h_SimConvOneTracks_[1] = iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
341 histname =
"h_SimConvOneTracksR";
342 h_SimConvOneTracks_[2] = iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated R",rBin,rMin, rMax);
343 histname =
"h_SimConvOneTracksZ";
344 h_SimConvOneTracks_[3] = iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Z",zBin,zMin, zMax);
345 histname =
"h_SimConvOneTracksEt";
346 h_SimConvOneTracks_[4] = iBooker.
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Et",etBin,etMin, etMax);
348 histname =
"h_SimConvTwoMTracksEta";
349 h_SimConvTwoMTracks_[0] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated #eta",etaBin2,etaMin, etaMax);
350 histname =
"h_SimConvTwoMTracksPhi";
351 h_SimConvTwoMTracks_[1] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated #phi",phiBin,phiMin, phiMax);
352 histname =
"h_SimConvTwoMTracksR";
353 h_SimConvTwoMTracks_[2] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated R",rBin,rMin, rMax);
354 histname =
"h_SimConvTwoMTracksZ";
355 h_SimConvTwoMTracks_[3] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Z",zBin,zMin, zMax);
356 histname =
"h_SimConvTwoMTracksEt";
357 h_SimConvTwoMTracks_[4] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Et",etBin,etMin, etMax);
359 histname =
"h_SimConvTwoTracksEta";
360 h_SimConvTwoTracks_[0] = iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
361 histname =
"h_SimConvTwoTracksPhi";
362 h_SimConvTwoTracks_[1] = iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
363 histname =
"h_SimConvTwoTracksR";
364 h_SimConvTwoTracks_[2] = iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated R",rBin,rMin, rMax);
365 histname =
"h_SimConvTwoTracksZ";
366 h_SimConvTwoTracks_[3] = iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Z",zBin,zMin, zMax);
367 histname =
"h_SimConvTwoTracksEt";
368 h_SimConvTwoTracks_[4] = iBooker.
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Et",etBin,etMin, etMax);
370 histname =
"h_SimConvOneMTracksEta";
371 h_SimConvOneMTracks_[0] = iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated #eta",etaBin2,etaMin, etaMax);
372 histname =
"h_SimConvOneMTracksPhi";
373 h_SimConvOneMTracks_[1] = iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated #phi",phiBin,phiMin, phiMax);
374 histname =
"h_SimConvOneMTracksR";
375 h_SimConvOneMTracks_[2] = iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated R",rBin,rMin, rMax);
376 histname =
"h_SimConvOneMTracksZ";
377 h_SimConvOneMTracks_[3] = iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Z",zBin,zMin, zMax);
378 histname =
"h_SimConvOneMTracksEt";
379 h_SimConvOneMTracks_[4] = iBooker.
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Et",etBin,etMin, etMax);
381 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0";
382 h_SimConvTwoMTracksAndVtxPGT0_[0] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",etaBin2,etaMin, etaMax);
383 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0";
384 h_SimConvTwoMTracksAndVtxPGT0_[1] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",phiBin,phiMin, phiMax);
385 histname =
"h_SimConvTwoMTracksRAndVtxPGT0";
386 h_SimConvTwoMTracksAndVtxPGT0_[2] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",rBin,rMin, rMax);
387 histname =
"h_SimConvTwoMTracksZAndVtxPGT0";
388 h_SimConvTwoMTracksAndVtxPGT0_[3] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",zBin,zMin, zMax);
389 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0";
390 h_SimConvTwoMTracksAndVtxPGT0_[4] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",etBin,etMin, etMax);
392 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0005";
393 h_SimConvTwoMTracksAndVtxPGT0005_[0] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",etaBin2,etaMin, etaMax);
394 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0005";
395 h_SimConvTwoMTracksAndVtxPGT0005_[1] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",phiBin,phiMin, phiMax);
396 histname =
"h_SimConvTwoMTracksRAndVtxPGT0005";
397 h_SimConvTwoMTracksAndVtxPGT0005_[2] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",rBin,rMin, rMax);
398 histname =
"h_SimConvTwoMTracksZAndVtxPGT0005";
399 h_SimConvTwoMTracksAndVtxPGT0005_[3] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",zBin,zMin, zMax);
400 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0005";
401 h_SimConvTwoMTracksAndVtxPGT0005_[4] = iBooker.
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",etBin,etMin, etMax);
405 if ( ! isRunCentrally_ ) {
406 h_SimConvEtaPix_[0] = iBooker.
book1D(
"simConvEtaPix",
" sim converted Photon Eta: Pix ",etaBin,etaMin, etaMax) ;
407 h_simTkPt_ = iBooker.
book1D(
"simTkPt",
"Sim conversion tracks pt ",etBin*3,0.,etMax);
408 h_simTkEta_ = iBooker.
book1D(
"simTkEta",
"Sim conversion tracks eta ",etaBin,etaMin,etaMax);
409 h_simConvVtxRvsZ_[0] = iBooker.
book2D(
"simConvVtxRvsZAll",
" Photon Sim conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
410 h_simConvVtxRvsZ_[1] = iBooker.
book2D(
"simConvVtxRvsZBarrel",
" Photon Sim conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
411 h_simConvVtxRvsZ_[2] = iBooker.
book2D(
"simConvVtxRvsZEndcap",
" Photon Sim conversion vtx position",zBin2ForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
412 h_simConvVtxYvsX_ = iBooker.
book2D(
"simConvVtxYvsXTrkBarrel",
" Photon Sim conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
416 histname =
"h_SimJetEta";
417 h_SimJet_[0] = iBooker.
book1D(histname,
" Jet bkg simulated #eta",etaBin,etaMin, etaMax);
418 histname =
"h_SimJetPhi";
419 h_SimJet_[1] = iBooker.
book1D(histname,
" Jet bkg simulated #phi",phiBin,phiMin, phiMax);
420 histname =
"h_SimJetEt";
421 h_SimJet_[2] = iBooker.
book1D(histname,
" Jet bkg simulated Et",etBin,etMin, etMax);
423 histname =
"h_MatchedSimJetEta";
424 h_MatchedSimJet_[0] = iBooker.
book1D(histname,
" Matching jet simulated #eta",etaBin,etaMin, etaMax);
425 histname =
"h_MatchedSimJetPhi";
426 h_MatchedSimJet_[1] = iBooker.
book1D(histname,
" Matching jet simulated #phi",phiBin,phiMin, phiMax);
427 histname =
"h_MatchedSimJetEt";
428 h_MatchedSimJet_[2] = iBooker.
book1D(histname,
" Matching jet simulated Et",etBin,etMin, etMax);
430 histname =
"h_MatchedSimJetBadChEta";
431 h_MatchedSimJetBadCh_[0] = iBooker.
book1D(histname,
" Matching jet simulated #eta",etaBin,etaMin, etaMax);
432 histname =
"h_MatchedSimJetBadChPhi";
433 h_MatchedSimJetBadCh_[1] = iBooker.
book1D(histname,
" Matching jet simulated #phi",phiBin,phiMin, phiMax);
434 histname =
"h_MatchedSimJetBadChEt";
435 h_MatchedSimJetBadCh_[2] = iBooker.
book1D(histname,
" Matching jet simulated Et",etBin,etMin, etMax);
440 histname =
"nOfPhotons";
441 h_nPho_ = iBooker.
book1D(histname,
"# of Reco photons per event ",20,-0.5,19.5);
443 h_scBkgEta_ = iBooker.
book1D(
"scBkgEta",
" SC Bkg Eta ",etaBin,etaMin, etaMax) ;
444 h_scBkgPhi_ = iBooker.
book1D(
"scBkgPhi",
" SC Bkg Phi ",phiBin,phiMin,phiMax) ;
446 h_phoBkgEta_ = iBooker.
book1D(
"phoBkgEta",
" Photon Bkg Eta ",etaBin,etaMin, etaMax) ;
447 h_phoBkgPhi_ = iBooker.
book1D(
"phoBkgPhi",
" Photon Bkg Phi ",phiBin,phiMin,phiMax) ;
449 h_phoBkgDEta_ = iBooker.
book1D(
"phoBkgDEta",
" Photon Eta(rec)-Eta(true) ",dEtaBin,dEtaMin, dEtaMax) ;
450 h_phoBkgDPhi_ = iBooker.
book1D(
"phoBkgDPhi",
" Photon Phi(rec)-Phi(true) ",dPhiBin,dPhiMin,dPhiMax) ;
452 histname =
"phoBkgE";
453 h_phoBkgE_[0]=iBooker.
book1D(histname+
"All",
" Photon Bkg Energy: All ecal ", eBin,eMin, eMax);
454 h_phoBkgE_[1]=iBooker.
book1D(histname+
"Barrel",
" Photon Bkg Energy: barrel ",eBin,eMin, eMax);
455 h_phoBkgE_[2]=iBooker.
book1D(histname+
"Endcap",
" Photon Bkg Energy: Endcap ",eBin,eMin, eMax);
457 histname =
"phoBkgEt";
458 h_phoBkgEt_[0] = iBooker.
book1D(histname+
"All",
" Photon Bkg Transverse Energy: All ecal ", etBin,etMin, etMax);
459 h_phoBkgEt_[1] = iBooker.
book1D(histname+
"Barrel",
" Photon Bkg Transverse Energy: Barrel ",etBin,etMin, etMax);
460 h_phoBkgEt_[2] = iBooker.
book1D(histname+
"Endcap",
" Photon BkgTransverse Energy: Endcap ",etBin,etMin, etMax);
464 h_scBkgE_[0] = iBooker.
book1D(histname+
"All",
" SC bkg Energy: All Ecal ",eBin,eMin, eMax);
465 h_scBkgE_[1] = iBooker.
book1D(histname+
"Barrel",
" SC bkg Energy: Barrel ",eBin,eMin, eMax);
466 h_scBkgE_[2] = iBooker.
book1D(histname+
"Endcap",
" SC bkg Energy: Endcap ",eBin,eMin, eMax);
467 histname =
"scBkgEt";
468 h_scBkgEt_[0] = iBooker.
book1D(histname+
"All",
" SC bkg Et: All Ecal ",eBin,eMin, eMax);
469 h_scBkgEt_[1] = iBooker.
book1D(histname+
"Barrel",
" SC bkg Et: Barrel ",eBin,eMin, eMax);
470 h_scBkgEt_[2] = iBooker.
book1D(histname+
"Endcap",
" SC bkg Et: Endcap ",eBin,eMin, eMax);
473 h_r9Bkg_[0] = iBooker.
book1D(histname+
"All",
" r9 bkg: All Ecal",r9Bin,r9Min, r9Max) ;
474 h_r9Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
" r9 bkg: Barrel ",r9Bin,r9Min, r9Max) ;
475 h_r9Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
" r9 bkg: Endcap ",r9Bin,r9Min, r9Max) ;
477 histname=
"R9VsEtaBkg";
478 if ( ! isRunCentrally_ ) h2_r9VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
480 histname=
"R9VsEtBkg";
481 if ( ! isRunCentrally_ ) h2_r9VsEtBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
484 h_r1Bkg_[0] = iBooker.
book1D(histname+
"All",
" Bkg photon e1x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
485 h_r1Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
" Bkg photon e1x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
486 h_r1Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
" Bkg photon e1x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
488 histname=
"R1VsEtaBkg";
489 if ( ! isRunCentrally_ ) h2_r1VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
490 histname=
"pR1VsEtaBkg";
491 if ( ! isRunCentrally_ ) p_r1VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
493 histname=
"R1VsEtBkg";
494 if ( ! isRunCentrally_ ) h2_r1VsEtBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
495 histname=
"pR1VsEtBkg";
496 if ( ! isRunCentrally_ ) p_r1VsEtBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
499 h_r2Bkg_[0] = iBooker.
book1D(histname+
"All",
" Bkg photon e2x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
500 h_r2Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
" Bkg photon e2x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
501 h_r2Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
" Bkg photon e2x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
503 histname=
"R2VsEtaBkg";
504 if ( ! isRunCentrally_ ) h2_r2VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
505 histname=
"pR2VsEtaBkg";
506 if ( ! isRunCentrally_ ) p_r2VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
508 histname=
"R2VsEtBkg";
509 if ( ! isRunCentrally_ ) h2_r2VsEtBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
510 histname=
"pR2VsEtBkg";
511 if ( ! isRunCentrally_ ) p_r2VsEtBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
514 histname =
"sigmaIetaIetaBkg";
515 h_sigmaIetaIetaBkg_[0] = iBooker.
book1D(histname+
"All",
"Bkg sigmaIetaIeta: All Ecal",100,0., 0.1) ;
516 h_sigmaIetaIetaBkg_[1] = iBooker.
book1D(histname+
"Barrel",
"Bkg sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
517 h_sigmaIetaIetaBkg_[2] = iBooker.
book1D(histname+
"Endcap",
"Bkg sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
519 histname=
"sigmaIetaIetaVsEtaBkg";
520 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
521 histname=
"pSigmaIetaIetaVsEtaBkg";
522 if ( ! isRunCentrally_ ) p_sigmaIetaIetaVsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
524 histname=
"sigmaIetaIetaVsEtBkg";
525 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEtBkg_[0] = iBooker.
book2D(histname+
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
526 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEtBkg_[1] = iBooker.
book2D(histname+
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
527 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEtBkg_[2] = iBooker.
book2D(histname+
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
529 histname=
"pSigmaIetaIetaVsEtBkg";
530 if ( ! isRunCentrally_ ) p_sigmaIetaIetaVsEtBkg_[0] = iBooker.
bookProfile(histname+
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
531 if ( ! isRunCentrally_ ) p_sigmaIetaIetaVsEtBkg_[1] = iBooker.
bookProfile(histname+
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
532 if ( ! isRunCentrally_ ) p_sigmaIetaIetaVsEtBkg_[2] = iBooker.
bookProfile(histname+
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
534 histname =
"hOverEBkg";
535 h_hOverEBkg_[0] = iBooker.
book1D(histname+
"All",
"H/E bkg: All Ecal",100,0., 1.) ;
536 h_hOverEBkg_[1] = iBooker.
book1D(histname+
"Barrel",
"H/E bkg: Barrel ", 100,0., 1.) ;
537 h_hOverEBkg_[2] = iBooker.
book1D(histname+
"Endcap",
"H/E bkg: Endcap ", 100,0., 1.) ;
539 histname=
"pHOverEVsEtaBkg";
540 if ( ! isRunCentrally_ ) p_hOverEVsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
541 histname=
"pHOverEVsEtBkg";
542 if ( ! isRunCentrally_ ) p_hOverEVsEtBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
543 if ( ! isRunCentrally_ ) {
544 histname=
"hOverEVsEtaBkg";
545 h2_hOverEVsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
547 histname=
"hOverEVsEtBkg";
548 h2_hOverEVsEtBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
551 histname =
"ecalRecHitSumEtConeDR04Bkg";
552 h_ecalRecHitSumEtConeDR04Bkg_[0] = iBooker.
book1D(histname+
"All",
"bkg ecalRecHitSumEtDR04: All Ecal",etBin,etMin,50.);
553 h_ecalRecHitSumEtConeDR04Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
"bkg ecalRecHitSumEtDR04: Barrel ", etBin,etMin,50.);
554 h_ecalRecHitSumEtConeDR04Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
"bkg ecalRecHitSumEtDR04: Endcap ", etBin,etMin,50.);
556 if ( ! isRunCentrally_ ) {
557 histname=
"ecalRecHitSumEtConeDR04VsEtaBkg";
558 h2_ecalRecHitSumEtConeDR04VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" bkg ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
559 histname=
"ecalRecHitSumEtConeDR04VsEtBkg";
560 h2_ecalRecHitSumEtConeDR04VsEtBkg_[0] = iBooker.
book2D(histname+
"All",
" Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
561 h2_ecalRecHitSumEtConeDR04VsEtBkg_[1] = iBooker.
book2D(histname+
"Barrel",
" Bkg ecalRecHitSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
562 h2_ecalRecHitSumEtConeDR04VsEtBkg_[2] = iBooker.
book2D(histname+
"Endcap",
" Bkg ecalRecHitSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
563 histname=
"hcalTowerSumEtConeDR04VsEtaBkg";
564 h2_hcalTowerSumEtConeDR04VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" bkg hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
565 histname=
"hcalTowerSumEtConeDR04VsEtBkg";
566 h2_hcalTowerSumEtConeDR04VsEtBkg_[0] = iBooker.
book2D(histname+
"All",
" Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
567 h2_hcalTowerSumEtConeDR04VsEtBkg_[1] = iBooker.
book2D(histname+
"Barrel",
" Bkg hcalTowerSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
568 h2_hcalTowerSumEtConeDR04VsEtBkg_[2] = iBooker.
book2D(histname+
"Endcap",
" Bkg hcalTowerSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
571 histname=
"pEcalRecHitSumEtConeDR04VsEtaBkg";
572 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
"bkg photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
574 histname=
"pEcalRecHitSumEtConeDR04VsEtBkg";
575 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEtBkg_[0] = iBooker.
bookProfile(histname+
"All",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
576 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEtBkg_[1] = iBooker.
bookProfile(histname+
"Barrel",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
577 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEtBkg_[2] = iBooker.
bookProfile(histname+
"Endcap",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
579 histname =
"hcalTowerSumEtConeDR04Bkg";
580 h_hcalTowerSumEtConeDR04Bkg_[0] = iBooker.
book1D(histname+
"All",
"bkg hcalTowerSumEtDR04: All Ecal",etBin,etMin,20.);
581 h_hcalTowerSumEtConeDR04Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
"bkg hcalTowerSumEtDR04: Barrel ", etBin,etMin,20.);
582 h_hcalTowerSumEtConeDR04Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
"bkg hcalTowerSumEtDR04: Endcap ", etBin,etMin,20.);
584 histname=
"pHcalTowerSumEtConeDR04VsEtaBkg";
585 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
"bkg photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
587 histname=
"pHcalTowerSumEtConeDR04VsEtBkg";
588 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEtBkg_[0] = iBooker.
bookProfile(histname+
"All",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
589 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEtBkg_[1] = iBooker.
bookProfile(histname+
"Barrel",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
590 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEtBkg_[2] = iBooker.
bookProfile(histname+
"Endcap",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
592 histname =
"isoTrkSolidConeDR04Bkg";
593 h_isoTrkSolidConeDR04Bkg_[0] = iBooker.
book1D(histname+
"All",
"isoTrkSolidConeDR04 Bkg: All Ecal",etBin,etMin,etMax*0.1);
594 h_isoTrkSolidConeDR04Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
"isoTrkSolidConeDR04 Bkg: Barrel ", etBin,etMin,etMax*0.1);
595 h_isoTrkSolidConeDR04Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
"isoTrkSolidConeDR04 Bkg: Endcap ", etBin,etMin,etMax*0.1);
597 histname=
"isoTrkSolidConeDR04VsEtaBkg";
598 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
599 histname=
"pIsoTrkSolidConeDR04VsEtaBkg";
600 if ( ! isRunCentrally_ ) p_isoTrkSolidConeDR04VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
602 histname=
"isoTrkSolidConeDR04VsEtBkg";
603 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEtBkg_[0] = iBooker.
book2D(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
604 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEtBkg_[1] = iBooker.
book2D(histname+
"Barrel",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
605 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEtBkg_[2] = iBooker.
book2D(histname+
"Endcap",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
606 histname=
"pIsoTrkSolidConeDR04VsEtBkg";
607 if ( ! isRunCentrally_ ) p_isoTrkSolidConeDR04VsEtBkg_[0] = iBooker.
bookProfile(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
608 if ( ! isRunCentrally_ ) p_isoTrkSolidConeDR04VsEtBkg_[1] = iBooker.
bookProfile(histname+
"Barrel",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
609 if ( ! isRunCentrally_ ) p_isoTrkSolidConeDR04VsEtBkg_[2] = iBooker.
bookProfile(histname+
"Endcap",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
611 histname =
"nTrkSolidConeDR04Bkg";
612 h_nTrkSolidConeDR04Bkg_[0] = iBooker.
book1D(histname+
"All",
"Bkg nTrkSolidConeDR04: All Ecal",20,0., 20) ;
613 h_nTrkSolidConeDR04Bkg_[1] = iBooker.
book1D(histname+
"Barrel",
"Bkg nTrkSolidConeDR04: Barrel ", 20,0., 20) ;
614 h_nTrkSolidConeDR04Bkg_[2] = iBooker.
book1D(histname+
"Endcap",
"Bkg nTrkSolidConeDR04: Endcap ", 20,0., 20) ;
616 histname=
"nTrkSolidConeDR04VsEtaBkg";
617 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEtaBkg_ = iBooker.
book2D(histname+
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
618 histname=
"p_nTrkSolidConeDR04VsEtaBkg";
619 if ( ! isRunCentrally_ ) p_nTrkSolidConeDR04VsEtaBkg_ = iBooker.
bookProfile(histname+
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
621 histname=
"nTrkSolidConeDR04VsEtBkg";
622 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEtBkg_[0] = iBooker.
book2D(histname+
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
623 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEtBkg_[1] = iBooker.
book2D(histname+
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
624 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEtBkg_[2] = iBooker.
book2D(histname+
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
626 histname=
"pnTrkSolidConeDR04VsEtBkg";
627 if ( ! isRunCentrally_ ) p_nTrkSolidConeDR04VsEtBkg_[0] = iBooker.
bookProfile(histname+
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
628 if ( ! isRunCentrally_ ) p_nTrkSolidConeDR04VsEtBkg_[1] = iBooker.
bookProfile(histname+
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
629 if ( ! isRunCentrally_ ) p_nTrkSolidConeDR04VsEtBkg_[2] = iBooker.
bookProfile(histname+
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
631 h_convEtaBkg_ = iBooker.
book1D(
"convEtaBkg",
" converted Photon Bkg Eta 2 tracks",etaBin,etaMin, etaMax) ;
632 h_convPhiBkg_ = iBooker.
book1D(
"convPhiBkg",
" converted Photon Bkg Phi ",phiBin,phiMin,phiMax) ;
634 histname=
"mvaOutBkg";
635 h_mvaOutBkg_[0] = iBooker.
book1D(histname+
"All",
" mvaOut conversions bkg : All Ecal",100, 0., 1.);
636 h_mvaOutBkg_[1] = iBooker.
book1D(histname+
"Barrel",
" mvaOut conversions bkg: Barrel Ecal",100, 0., 1.);
637 h_mvaOutBkg_[2] = iBooker.
book1D(histname+
"Endcap",
" mvaOut conversions bkg: Endcap Ecal",100, 0., 1.);
639 histname=
"PoverEtracksBkg";
640 h_PoverETracksBkg_[0] = iBooker.
book1D(histname+
"All",
" bkg photons conversion p/E: all Ecal ",povereBin, povereMin, povereMax);
641 h_PoverETracksBkg_[1] = iBooker.
book1D(histname+
"Barrel",
"bkg photons conversion p/E: Barrel Ecal",povereBin, povereMin, povereMax);
642 h_PoverETracksBkg_[2] = iBooker.
book1D(histname+
"Endcap",
" bkg photons conversion p/E: Endcap Ecal ",povereBin, povereMin, povereMax);
644 histname=
"EoverPtracksBkg";
645 h_EoverPTracksBkg_[0] = iBooker.
book1D(histname+
"All",
" bkg photons conversion E/p: all Ecal ",eoverpBin, eoverpMin, eoverpMax);
646 h_EoverPTracksBkg_[1] = iBooker.
book1D(histname+
"Barrel",
"bkg photons conversion E/p: Barrel Ecal",eoverpBin, eoverpMin, eoverpMax);
647 h_EoverPTracksBkg_[2] = iBooker.
book1D(histname+
"Endcap",
" bkg photons conversion E/p: Endcap Ecal ",eoverpBin, eoverpMin, eoverpMax);
649 histname=
"hDCotTracksBkg";
650 h_DCotTracksBkg_[0]= iBooker.
book1D(histname+
"All",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
651 h_DCotTracksBkg_[1]= iBooker.
book1D(histname+
"Barrel",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
652 h_DCotTracksBkg_[2]= iBooker.
book1D(histname+
"Endcap",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
654 histname=
"hDPhiTracksAtVtxBkg";
655 h_DPhiTracksAtVtxBkg_[0] =iBooker.
book1D(histname+
"All",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
656 h_DPhiTracksAtVtxBkg_[1] =iBooker.
book1D(histname+
"Barrel",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
657 h_DPhiTracksAtVtxBkg_[2] =iBooker.
book1D(histname+
"Endcap",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
659 if ( ! isRunCentrally_ ) {
660 h_convVtxRvsZBkg_[0] = iBooker.
book2D(
"convVtxRvsZAllBkg",
" Bkg Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
661 h_convVtxRvsZBkg_[1] = iBooker.
book2D(
"convVtxRvsZBarrelBkg",
" Bkg Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
662 h_convVtxYvsXBkg_ = iBooker.
book2D(
"convVtxYvsXTrkBarrelBkg",
" Bkg Photon Reco conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
668 histname=
"nOfflineVtx";
669 h_nRecoVtx_ = iBooker.
book1D(histname,
"# of Offline Vertices",80, -0.5, 79.5);
671 h_phoEta_[0] = iBooker.
book1D(
"phoEta",
" Photon Eta ",etaBin,etaMin, etaMax) ;
672 h_phoPhi_[0] = iBooker.
book1D(
"phoPhi",
" Photon Phi ",phiBin,phiMin,phiMax) ;
674 h_phoDEta_[0] = iBooker.
book1D(
"phoDEta",
" Photon Eta(rec)-Eta(true) ",dEtaBin,dEtaMin, dEtaMax) ;
675 h_phoDPhi_[0] = iBooker.
book1D(
"phoDPhi",
" Photon Phi(rec)-Phi(true) ",dPhiBin,dPhiMin,dPhiMax) ;
677 h_scEta_[0] = iBooker.
book1D(
"scEta",
" SC Eta ",etaBin,etaMin, etaMax);
678 h_scPhi_[0] = iBooker.
book1D(
"scPhi",
" SC Phi ",phiBin,phiMin,phiMax);
680 if ( ! isRunCentrally_ ) {
681 h_scEtaWidth_[0] = iBooker.
book1D(
"scEtaWidth",
" SC Eta Width ",100,0., 0.1);
682 h_scPhiWidth_[0] = iBooker.
book1D(
"scPhiWidth",
" SC Phi Width ",100,0., 1.);
686 h_scE_[0][0] = iBooker.
book1D(histname+
"All",
" SC Energy: All Ecal ",eBin,eMin, eMax);
687 h_scE_[0][1] = iBooker.
book1D(histname+
"Barrel",
" SC Energy: Barrel ",eBin,eMin, eMax);
688 h_scE_[0][2] = iBooker.
book1D(histname+
"Endcap",
" SC Energy: Endcap ",eBin,eMin, eMax);
691 h_psE_ = iBooker.
book1D(histname+
"Endcap",
" ES Energy ",eBin,eMin, 50.);
695 h_scEt_[0][0] = iBooker.
book1D(histname+
"All",
" SC Et: All Ecal ",etBin,etMin, etMax) ;
696 h_scEt_[0][1] = iBooker.
book1D(histname+
"Barrel",
" SC Et: Barrel",etBin,etMin, etMax) ;
697 h_scEt_[0][2] = iBooker.
book1D(histname+
"Endcap",
" SC Et: Endcap",etBin,etMin, etMax) ;
700 h_r9_[0][0] = iBooker.
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
701 h_r9_[0][1] = iBooker.
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
702 h_r9_[0][2] = iBooker.
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
705 if ( ! isRunCentrally_ ) {
706 histname =
"r9ConvFromMC";
707 h_r9_[1][0] = iBooker.
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
708 h_r9_[1][1] = iBooker.
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
709 h_r9_[1][2] = iBooker.
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
711 histname =
"r9ConvFromReco";
712 h_r9_[2][0] = iBooker.
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
713 h_r9_[2][1] = iBooker.
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
714 h_r9_[2][2] = iBooker.
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
716 histname =
"EtR9Less093";
717 h_EtR9Less093_[0][0] = iBooker.
book1D(histname+
"All",
" r9 < 0.94 or 0.95 : All Ecal",etBin,etMin, etMax);
718 h_EtR9Less093_[0][1] = iBooker.
book1D(histname+
"Barrel",
" r9 < 0.94 : Barrel ",etBin,etMin, etMax);
719 h_EtR9Less093_[0][2] = iBooker.
book1D(histname+
"Endcap",
" r9 < 0.95 : Endcap ",etBin,etMin, etMax);
720 histname =
"EtR9Less093Conv";
721 h_EtR9Less093_[1][0] = iBooker.
book1D(histname+
"All",
" r9 < 0.94, 0.95 and good conv : All Ecal",etBin,etMin, etMax);
722 h_EtR9Less093_[1][1] = iBooker.
book1D(histname+
"Barrel",
" r9 < 0.94 and good conv : Barrel ",etBin,etMin, etMax);
723 h_EtR9Less093_[1][2] = iBooker.
book1D(histname+
"Endcap",
" r9 < 0.95 and good conv : Endcap ",etBin,etMin, etMax);
728 p_r9VsEta_[0] = iBooker.
bookProfile(histname+
"All",
" All photons r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
729 p_r9VsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
" Unconv photons r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
730 p_r9VsEta_[2] = iBooker.
bookProfile(histname+
"Conv",
" Conv photons r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
733 if ( ! isRunCentrally_ ) h2_r9VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
734 if ( ! isRunCentrally_ ) h2_r9VsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
737 h_r1_[0][0] = iBooker.
book1D(histname+
"All",
" e1x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
738 h_r1_[0][1] = iBooker.
book1D(histname+
"Barrel",
" e1x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
739 h_r1_[0][2] = iBooker.
book1D(histname+
"Endcap",
" e1x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
742 if ( ! isRunCentrally_ ) h2_r1VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
743 if ( ! isRunCentrally_ ) h2_r1VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
746 if ( ! isRunCentrally_ ) h2_r1VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
747 if ( ! isRunCentrally_ ) h2_r1VsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
750 h_r2_[0][0] = iBooker.
book1D(histname+
"All",
" e2x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
751 h_r2_[0][1] = iBooker.
book1D(histname+
"Barrel",
" e2x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
752 h_r2_[0][2] = iBooker.
book1D(histname+
"Endcap",
" e2x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
755 if ( ! isRunCentrally_ ) h2_r2VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
756 if ( ! isRunCentrally_ ) h2_r2VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
759 if ( ! isRunCentrally_ ) h2_r2VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
760 if ( ! isRunCentrally_ ) h2_r2VsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
762 histname =
"sigmaIetaIeta";
763 h_sigmaIetaIeta_[0][0] = iBooker.
book1D(histname+
"All",
"sigmaIetaIeta: All Ecal",100,0., 0.1) ;
764 h_sigmaIetaIeta_[0][1] = iBooker.
book1D(histname+
"Barrel",
"sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
765 h_sigmaIetaIeta_[0][2] = iBooker.
book1D(histname+
"Endcap",
"sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
767 histname=
"sigmaIetaIetaVsEta";
768 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
769 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons sigmaIetaIeta vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
771 histname=
"sigmaIetaIetaVsEt";
772 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
773 if ( ! isRunCentrally_ ) h2_sigmaIetaIetaVsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
776 h_hOverE_[0][0] = iBooker.
book1D(histname+
"All",
"H/E: All Ecal",100,0., 0.1) ;
777 h_hOverE_[0][1] = iBooker.
book1D(histname+
"Barrel",
"H/E: Barrel ", 100,0., 0.1) ;
778 h_hOverE_[0][2] = iBooker.
book1D(histname+
"Endcap",
"H/E: Endcap ", 100,0., 0.1) ;
780 histname =
"newhOverE";
781 h_newhOverE_[0][0] = iBooker.
book1D(histname+
"All",
"new H/E: All Ecal",100,0., 0.1) ;
782 h_newhOverE_[0][1] = iBooker.
book1D(histname+
"Barrel",
"new H/E: Barrel ", 100,0., 0.1) ;
783 h_newhOverE_[0][2] = iBooker.
book1D(histname+
"Endcap",
"new H/E: Endcap ", 100,0., 0.1) ;
786 if ( ! isRunCentrally_ ) {
787 histname=
"hOverEVsEta";
788 h2_hOverEVsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
789 h2_hOverEVsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons H/E vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
791 histname=
"hOverEVsEt";
792 h2_hOverEVsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
793 h2_hOverEVsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
796 histname=
"pHoverEVsEta";
797 p_hOverEVsEta_[0] = iBooker.
bookProfile(histname+
"All",
" All photons H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
798 p_hOverEVsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
" All photons H/E vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
800 histname=
"pHoverEVsEt";
801 p_hOverEVsEt_[0] = iBooker.
bookProfile(histname+
"All",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
802 p_hOverEVsEt_[1] = iBooker.
bookProfile(histname+
"Unconv",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
804 histname=
"pnewHoverEVsEta";
805 p_newhOverEVsEta_[0] = iBooker.
bookProfile(histname+
"All",
" All photons new H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
806 p_newhOverEVsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
" All photons new H/E vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
808 histname=
"pnewHoverEVsEt";
809 p_newhOverEVsEt_[0] = iBooker.
bookProfile(histname+
"All",
" All photons new H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
810 p_newhOverEVsEt_[1] = iBooker.
bookProfile(histname+
"Unconv",
" All photons new H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
812 histname =
"ecalRecHitSumEtConeDR04";
813 h_ecalRecHitSumEtConeDR04_[0][0] = iBooker.
book1D(histname+
"All",
"ecalRecHitSumEtDR04: All Ecal",etBin,etMin,20.);
814 h_ecalRecHitSumEtConeDR04_[0][1] = iBooker.
book1D(histname+
"Barrel",
"ecalRecHitSumEtDR04: Barrel ", etBin,etMin,20.);
815 h_ecalRecHitSumEtConeDR04_[0][2] = iBooker.
book1D(histname+
"Endcap",
"ecalRecHitSumEtDR04: Endcap ", etBin,etMin,20.);
818 if ( ! isRunCentrally_ ) {
819 histname=
"ecalRecHitSumEtConeDR04VsEta";
820 h2_ecalRecHitSumEtConeDR04VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
821 h2_ecalRecHitSumEtConeDR04VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*etScale);
823 histname=
"pEcalRecHitSumEtConeDR04VsEta";
824 p_ecalRecHitSumEtConeDR04VsEta_[0] = iBooker.
bookProfile(histname+
"All",
"All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
825 p_ecalRecHitSumEtConeDR04VsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
"All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
827 if ( ! isRunCentrally_ ) {
828 histname=
"ecalRecHitSumEtConeDR04VsEt";
829 h2_ecalRecHitSumEtConeDR04VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
830 h2_ecalRecHitSumEtConeDR04VsEt_[1] = iBooker.
book2D(histname+
"Barrel",
" All photons ecalRecHitSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
831 h2_ecalRecHitSumEtConeDR04VsEt_[2] = iBooker.
book2D(histname+
"Endcap",
" All photons ecalRecHitSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
833 histname=
"pEcalRecHitSumEtConeDR04VsEt";
834 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEt_[0] = iBooker.
bookProfile(histname+
"All",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
835 p_ecalRecHitSumEtConeDR04VsEt_[1] = iBooker.
bookProfile(histname+
"Barrel",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
836 p_ecalRecHitSumEtConeDR04VsEt_[2] = iBooker.
bookProfile(histname+
"Endcap",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
838 histname =
"hcalTowerSumEtConeDR04";
839 h_hcalTowerSumEtConeDR04_[0][0] = iBooker.
book1D(histname+
"All",
"hcalTowerSumEtConeDR04: All Ecal",etBin,etMin,20.);
840 h_hcalTowerSumEtConeDR04_[0][1] = iBooker.
book1D(histname+
"Barrel",
"hcalTowerSumEtConeDR04: Barrel ", etBin,etMin,20.);
841 h_hcalTowerSumEtConeDR04_[0][2] = iBooker.
book1D(histname+
"Endcap",
"hcalTowerSumEtConeDR04: Endcap ", etBin,etMin,20.);
843 histname =
"hcalTowerBcSumEtConeDR04";
844 if ( ! isRunCentrally_ ) h_hcalTowerBcSumEtConeDR04_[0][0] = iBooker.
book1D(histname+
"All",
"hcalTowerBcSumEtConeDR04: All Ecal",etBin,etMin,20.);
845 h_hcalTowerBcSumEtConeDR04_[0][1] = iBooker.
book1D(histname+
"Barrel",
"hcalTowerBcSumEtConeDR04: Barrel ", etBin,etMin,20.);
846 h_hcalTowerBcSumEtConeDR04_[0][2] = iBooker.
book1D(histname+
"Endcap",
"hcalTowerBcSumEtConeDR04: Endcap ", etBin,etMin,20.);
849 if ( ! isRunCentrally_ ) {
850 histname=
"hcalTowerSumEtConeDR04VsEta";
851 h2_hcalTowerSumEtConeDR04VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
852 h2_hcalTowerSumEtConeDR04VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*0.1);
854 histname=
"pHcalTowerSumEtConeDR04VsEta";
855 p_hcalTowerSumEtConeDR04VsEta_[0] = iBooker.
bookProfile(histname+
"All",
"All photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
856 p_hcalTowerSumEtConeDR04VsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
"All photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
857 histname=
"pHcalTowerBcSumEtConeDR04VsEta";
858 p_hcalTowerBcSumEtConeDR04VsEta_[0] = iBooker.
bookProfile(histname+
"All",
"All photons hcalTowerBcSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
859 p_hcalTowerBcSumEtConeDR04VsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
"All photons hcalTowerBcSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
861 if ( ! isRunCentrally_ ) {
862 histname=
"hcalTowerSumEtConeDR04VsEt";
863 h2_hcalTowerSumEtConeDR04VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons hcalTowerSumEtConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
864 h2_hcalTowerSumEtConeDR04VsEt_[1] = iBooker.
book2D(histname+
"Barrel",
" All photons hcalTowerSumEtConeDR04 vs Et: Barrel ",etBin,etMin, etMax,etBin,etMin,etMax*0.1);
865 h2_hcalTowerSumEtConeDR04VsEt_[2] = iBooker.
book2D(histname+
"Endcap",
" All photons hcalTowerSumEtConeDR04 vs Et: Endcap ",etBin,etMin, etMax,etBin,etMin,etMax*0.1);
867 histname=
"pHcalTowerSumEtConeDR04VsEt";
868 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEt_[0] = iBooker.
bookProfile(histname+
"All",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
869 p_hcalTowerSumEtConeDR04VsEt_[1] = iBooker.
bookProfile(histname+
"Barrel",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
870 p_hcalTowerSumEtConeDR04VsEt_[2] = iBooker.
bookProfile(histname+
"Endcap",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
872 histname=
"pHcalTowerBcSumEtConeDR04VsEt";
873 if ( ! isRunCentrally_ ) p_hcalTowerBcSumEtConeDR04VsEt_[0] = iBooker.
bookProfile(histname+
"All",
"All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
874 p_hcalTowerBcSumEtConeDR04VsEt_[1] = iBooker.
bookProfile(histname+
"Barrel",
"All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
875 p_hcalTowerBcSumEtConeDR04VsEt_[2] = iBooker.
bookProfile(histname+
"Endcap",
"All photons hcalTowerBcSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
878 histname =
"isoTrkSolidConeDR04";
879 h_isoTrkSolidConeDR04_[0][0] = iBooker.
book1D(histname+
"All",
"isoTrkSolidConeDR04: All Ecal",etBin,etMin,etMax*0.1);
880 h_isoTrkSolidConeDR04_[0][1] = iBooker.
book1D(histname+
"Barrel",
"isoTrkSolidConeDR04: Barrel ", etBin,etMin,etMax*0.1);
881 h_isoTrkSolidConeDR04_[0][2] = iBooker.
book1D(histname+
"Endcap",
"isoTrkSolidConeDR04: Endcap ", etBin,etMin,etMax*0.1);
884 histname=
"isoTrkSolidConeDR04VsEta";
885 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
886 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons isoTrkSolidConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*0.1);
889 histname=
"isoTrkSolidConeDR04VsEt";
890 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
891 if ( ! isRunCentrally_ ) h2_isoTrkSolidConeDR04VsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
893 histname =
"nTrkSolidConeDR04";
894 h_nTrkSolidConeDR04_[0][0] = iBooker.
book1D(histname+
"All",
"nTrkSolidConeDR04: All Ecal",20,0., 20) ;
895 h_nTrkSolidConeDR04_[0][1] = iBooker.
book1D(histname+
"Barrel",
"nTrkSolidConeDR04: Barrel ", 20,0., 20) ;
896 h_nTrkSolidConeDR04_[0][2] = iBooker.
book1D(histname+
"Endcap",
"nTrkSolidConeDR04: Endcap ", 20,0., 20) ;
898 histname=
"nTrkSolidConeDR04VsEta";
899 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
900 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,20,0., 20) ;
902 histname=
"nTrkSolidConeDR04VsEt";
903 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEt_[0] = iBooker.
book2D(histname+
"All",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
904 if ( ! isRunCentrally_ ) h2_nTrkSolidConeDR04VsEt_[1] = iBooker.
book2D(histname+
"Unconv",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax,20,0., 20) ;
907 h_phoE_[0][0]=iBooker.
book1D(histname+
"All",
" Photon Energy: All ecal ", eBin,eMin, eMax);
908 h_phoE_[0][1]=iBooker.
book1D(histname+
"Barrel",
" Photon Energy: barrel ",eBin,eMin, eMax);
909 h_phoE_[0][2]=iBooker.
book1D(histname+
"Endcap",
" Photon Energy: Endcap ",eBin,eMin, eMax);
912 h_phoEt_[0][0] = iBooker.
book1D(histname+
"All",
" Photon Transverse Energy: All ecal ", etBin,etMin, etMax);
913 h_phoEt_[0][1] = iBooker.
book1D(histname+
"Barrel",
" Photon Transverse Energy: Barrel ",etBin,etMin, etMax);
914 h_phoEt_[0][2] = iBooker.
book1D(histname+
"Endcap",
" Photon Transverse Energy: Endcap ",etBin,etMin, etMax);
918 h_phoERes_[0][0] = iBooker.
book1D(histname+
"All",
" Photon E/E_{true}: All ecal; E/E_{true} (GeV)", resBin,resMin, resMax);
919 h_phoERes_[0][1] = iBooker.
book1D(histname+
"Barrel",
"Photon E/E_{true}: Barrel; E/E_{true} (GeV)",resBin,resMin, resMax);
920 h_phoERes_[0][2] = iBooker.
book1D(histname+
"Endcap",
" Photon E/E_{true}: Endcap; E/E_{true} (GeV)",resBin,resMin, resMax);
922 h_phoERes_[1][0] = iBooker.
book1D(histname+
"unconvAll",
" Photon E/E_{true} if r9>0.94, 0.95: All ecal; E/E_{true} (GeV)", resBin,resMin, resMax);
923 h_phoERes_[1][1] = iBooker.
book1D(histname+
"unconvBarrel",
" Photon E/E_{true} if r9>0.94: Barrel; E/E_{true} (GeV)",resBin,resMin, resMax);
924 h_phoERes_[1][2] = iBooker.
book1D(histname+
"unconvEndcap",
" Photon E/E_{true} if r9>0.95: Endcap; E/E_{true} (GeV)",resBin,resMin, resMax);
926 h_phoERes_[2][0] = iBooker.
book1D(histname+
"convAll",
" Photon E/E_{true} if r9<0.0.94, 0.95: All ecal; E/E_{true} (GeV)", resBin,resMin, resMax);
927 h_phoERes_[2][1] = iBooker.
book1D(histname+
"convBarrel",
" Photon E/E_{true} if r9<0.94: Barrel; E/E_{true} (GeV)",resBin,resMin, resMax);
928 h_phoERes_[2][2] = iBooker.
book1D(histname+
"convEndcap",
" Photon E/E_{true} if r9<0.95: Endcap; E/E_{true} (GeV)",resBin,resMin, resMax);
931 histname =
"sigmaEoE";
932 h_phoSigmaEoE_[0][0] = iBooker.
book1D(histname+
"All",
"#sigma_{E}/E: All ecal; #sigma_{E}/E", 100,0., 0.08);
933 h_phoSigmaEoE_[0][1] = iBooker.
book1D(histname+
"Barrel",
"#sigma_{E}/E: Barrel; #sigma_{E}/E",100,0., 0.08);
934 h_phoSigmaEoE_[0][2] = iBooker.
book1D(histname+
"Endcap",
"#sigma_{E}/E: Endcap, #sigma_{E}/E",100,0., 0.08);
936 h_phoSigmaEoE_[1][0] = iBooker.
book1D(histname+
"unconvAll",
"#sigma_{E}/E if r9>0.94, 0.95: All ecal; #sigma_{E}/E", 100,0., 0.08);
937 h_phoSigmaEoE_[1][1] = iBooker.
book1D(histname+
"unconvBarrel",
"#sigma_{E}/E if r9>0.94: Barrel; #sigma_{E}/E",100,0., 0.08);
938 h_phoSigmaEoE_[1][2] = iBooker.
book1D(histname+
"unconvEndcap",
"#sigma_{E}/E r9>0.95: Endcap; #sigma_{E}/E",100,0., 0.08);
940 h_phoSigmaEoE_[2][0] = iBooker.
book1D(histname+
"convAll",
"#sigma_{E}/E if r9<0.0.94, 0.95: All ecal, #sigma_{E}/E", 100,0., 0.08);
941 h_phoSigmaEoE_[2][1] = iBooker.
book1D(histname+
"convBarrel",
"#sigma_{E}/E if r9<0.94: Barrel, #sigma_{E}/E",100,0., 0.08);
942 h_phoSigmaEoE_[2][2] = iBooker.
book1D(histname+
"convEndcap",
"#sigma_{E}/E if r9<0.95: Endcap, #sigma_{E}/E",100,0., 0.08);
947 histname=
"eResVsEta";
948 if ( ! isRunCentrally_ ) h2_eResVsEta_[0] = iBooker.
book2D(histname+
"All",
" All photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
949 if ( ! isRunCentrally_ ) h2_eResVsEta_[1] = iBooker.
book2D(histname+
"Unconv",
" Unconv photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
951 histname=
"pEResVsEta";
952 p_eResVsEta_[0] = iBooker.
bookProfile(histname+
"All",
"All photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
953 p_eResVsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
"Unconv photons E/Etrue vs #eta: all Ecal",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
954 p_eResVsEta_[2] = iBooker.
bookProfile(histname+
"Conv",
"Conv photons E/Etrue vs #eta: all Ecal",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
956 histname=
"pSigmaEoEVsEta";
957 p_sigmaEoEVsEta_[0] = iBooker.
bookProfile(histname+
"All",
"All photons: #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E",etaBin2,etaMin,etaMax,100,0., 0.08,
"");
958 p_sigmaEoEVsEta_[1] = iBooker.
bookProfile(histname+
"Unconv",
"Unconv photons #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E ",etaBin2,etaMin,etaMax,100,0., 0.08,
"");
959 p_sigmaEoEVsEta_[2] = iBooker.
bookProfile(histname+
"Conv",
"Conv photons #sigma_{E}/E vs #eta: all Ecal; #eta; #sigma_{E}/E",etaBin2,etaMin,etaMax, 100,0., 0.08,
"");
963 histname=
"pSigmaEoEVsEt";
964 p_sigmaEoEVsEt_[1][0] = iBooker.
bookProfile(histname+
"Barrel",
"All photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E ",etBin,etMin,etMax, 100,0., 0.08,
"");
965 p_sigmaEoEVsEt_[1][1] = iBooker.
bookProfile(histname+
"unconvBarrel",
"Unconv photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E ",etBin,etMin,etMax, 100,0., 0.08,
"");
966 p_sigmaEoEVsEt_[1][2] = iBooker.
bookProfile(histname+
"convBarrel",
"Conv photons #sigma_{E}/E vs E_{T}: Barrel; E_{T} (GeV); #sigma_{E}/E",etBin,etMin,etMax, 100,0., 0.08,
"");
967 p_sigmaEoEVsEt_[2][0] = iBooker.
bookProfile(histname+
"Endcap",
"All photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E ",etBin,etMin,etMax, 100,0., 0.08,
"");
968 p_sigmaEoEVsEt_[2][1] = iBooker.
bookProfile(histname+
"unconvEndcap",
"Unconv photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E ",etBin,etMin,etMax, 100,0., 0.08,
"");
969 p_sigmaEoEVsEt_[2][2] = iBooker.
bookProfile(histname+
"convEndcap",
"Conv photons #sigma_{E}/E vs E_{T}: Endcap; E_{T} (GeV); #sigma_{E}/E",etBin,etMin,etMax, 100,0., 0.08,
"");
973 histname=
"pSigmaEoEVsNVtx";
974 p_sigmaEoEVsNVtx_[1][0] = iBooker.
bookProfile(histname+
"Barrel",
"All photons: #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E",80, -0.5, 79.5, 100,0., 0.08,
"");
975 p_sigmaEoEVsNVtx_[1][1] = iBooker.
bookProfile(histname+
"unconvBarrel",
"Unconv photons #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E ",80, -0.5, 79.5, 100,0., 0.08,
"");
976 p_sigmaEoEVsNVtx_[1][2] = iBooker.
bookProfile(histname+
"convBarrel",
"Conv photons #sigma_{E}/E vs N_{vtx}: Barrel; N_{vtx}; #sigma_{E}/E",80, -0.5, 79.5, 100,0., 0.08,
"");
977 p_sigmaEoEVsNVtx_[2][0] = iBooker.
bookProfile(histname+
"Endcap",
"All photons: #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E",80, -0.5, 79.5, 100,0., 0.08,
"");
978 p_sigmaEoEVsNVtx_[2][1] = iBooker.
bookProfile(histname+
"unconvEndcap",
"Unconv photons #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E ",80, -0.5, 79.5, 100,0., 0.08,
"");
979 p_sigmaEoEVsNVtx_[2][2] = iBooker.
bookProfile(histname+
"convEndcap",
"Conv photons #sigma_{E}/E vs N_{vtx}: Endcap; N_{vtx}; #sigma_{E}/E",80, -0.5, 79.5, 100,0., 0.08,
"");
982 if ( ! isRunCentrally_ ) {
984 h2_eResVsEt_[0][0] = iBooker.
book2D(histname+
"All",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
985 h2_eResVsEt_[0][1] = iBooker.
book2D(histname+
"unconv",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
986 h2_eResVsEt_[0][2] = iBooker.
book2D(histname+
"conv",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
987 h2_eResVsEt_[1][0] = iBooker.
book2D(histname+
"Barrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
988 h2_eResVsEt_[1][1] = iBooker.
book2D(histname+
"unconvBarrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
989 h2_eResVsEt_[1][2] = iBooker.
book2D(histname+
"convBarrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
990 h2_eResVsEt_[2][0] = iBooker.
book2D(histname+
"Endcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
991 h2_eResVsEt_[2][1] = iBooker.
book2D(histname+
"unconvEndcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
992 h2_eResVsEt_[2][2] = iBooker.
book2D(histname+
"convEndcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
995 histname=
"pEResVsEt";
996 p_eResVsEt_[0][0] = iBooker.
bookProfile(histname+
"All",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
997 p_eResVsEt_[0][1] = iBooker.
bookProfile(histname+
"unconv",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
998 p_eResVsEt_[0][2] = iBooker.
bookProfile(histname+
"conv",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
999 p_eResVsEt_[1][0] = iBooker.
bookProfile(histname+
"Barrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1000 p_eResVsEt_[1][1] = iBooker.
bookProfile(histname+
"unconvBarrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1001 p_eResVsEt_[1][2] = iBooker.
bookProfile(histname+
"convBarrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1002 p_eResVsEt_[2][0] = iBooker.
bookProfile(histname+
"Endcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1003 p_eResVsEt_[2][1] = iBooker.
bookProfile(histname+
"unconvEndcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1004 p_eResVsEt_[2][2] = iBooker.
bookProfile(histname+
"convEndcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
1007 histname=
"pEResVsNVtx";
1008 p_eResVsNVtx_[1][0] = iBooker.
bookProfile(histname+
"Barrel",
"All photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true}",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1009 p_eResVsNVtx_[1][1] = iBooker.
bookProfile(histname+
"unconvBarrel",
"Unconverted photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true} ",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1010 p_eResVsNVtx_[1][2] = iBooker.
bookProfile(histname+
"convBarrel",
" Converted photons E/E_{true} vs N_{vtx}: Barrel; N_{vtx}; E}/E_{true} ",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1011 p_eResVsNVtx_[2][0] = iBooker.
bookProfile(histname+
"Endcap",
"All photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1012 p_eResVsNVtx_[2][1] = iBooker.
bookProfile(histname+
"unconvEndcap",
"Uncoverted photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1013 p_eResVsNVtx_[2][2] = iBooker.
bookProfile(histname+
"convEndcap",
"Converted photons E/E_{true} vs N_{vtx}: Endcap; N_{vtx}; E}/E_{true} ",80, -0.5, 79.5,resBin,resMin, resMax,
"");
1017 histname=
"eResVsR9";
1018 if ( ! isRunCentrally_ ) h2_eResVsR9_[0] = iBooker.
book2D(histname+
"All",
" All photons E/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,100, 0., 2.5);
1019 if ( ! isRunCentrally_ ) h2_eResVsR9_[1] = iBooker.
book2D(histname+
"Barrel",
" All photons E/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,100, 0.,2.5);
1020 if ( ! isRunCentrally_ ) h2_eResVsR9_[2] = iBooker.
book2D(histname+
"Endcap",
" All photons E/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,100, 0., 2.5);
1021 histname=
"pEResVsR9";
1022 if ( ! isRunCentrally_ ) p_eResVsR9_[0] = iBooker.
bookProfile(histname+
"All",
" All photons E/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1023 p_eResVsR9_[1] = iBooker.
bookProfile(histname+
"Barrel",
" All photons E/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1024 p_eResVsR9_[2] = iBooker.
bookProfile(histname+
"Endcap",
" All photons E/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1025 histname=
"sceResVsR9";
1026 if ( ! isRunCentrally_ ) h2_sceResVsR9_[0] = iBooker.
book2D(histname+
"All",
" All photons scE/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,100, 0., 2.5);
1027 if ( ! isRunCentrally_ ) h2_sceResVsR9_[1] = iBooker.
book2D(histname+
"Barrel",
" All photons scE/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,100, 0.,2.5);
1028 if ( ! isRunCentrally_ ) h2_sceResVsR9_[2] = iBooker.
book2D(histname+
"Endcap",
" All photons scE/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,100, 0., 2.5);
1029 histname=
"scpEResVsR9";
1030 if ( ! isRunCentrally_ ) p_sceResVsR9_[0] = iBooker.
bookProfile(histname+
"All",
" All photons scE/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1031 p_sceResVsR9_[1] = iBooker.
bookProfile(histname+
"Barrel",
" All photons scE/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1032 p_sceResVsR9_[2] = iBooker.
bookProfile(histname+
"Endcap",
" All photons scE/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
1035 histname =
"eResRegr1";
1036 h_phoEResRegr1_[0][0] = iBooker.
book1D(histname+
"All",
" Photon rec/true Energy from Regression1 : All ecal ", resBin,resMin, resMax);
1037 h_phoEResRegr1_[0][1] = iBooker.
book1D(histname+
"Barrel",
" Photon rec/true Energy from Regression1: Barrel ",resBin,resMin, resMax);
1038 h_phoEResRegr1_[0][2] = iBooker.
book1D(histname+
"Endcap",
" Photon rec/true Energy from Regression1: Endcap ",resBin,resMin, resMax);
1040 h_phoEResRegr1_[1][0] = iBooker.
book1D(histname+
"unconvAll",
" Photon rec/true Energy from Regression1 if r9>0.94, 0.95: All ecal ", resBin,resMin, resMax);
1041 h_phoEResRegr1_[1][1] = iBooker.
book1D(histname+
"unconvBarrel",
" Photon rec/true Energy from Regression1 if r9>0.94: Barrel ",resBin,resMin, resMax);
1042 h_phoEResRegr1_[1][2] = iBooker.
book1D(histname+
"unconvEndcap",
" Photon rec/true Energy from Regression1 if r9>0.95: Endcap ",resBin,resMin, resMax);
1044 h_phoEResRegr1_[2][0] = iBooker.
book1D(histname+
"convAll",
" Photon rec/true Energy from Regression1if r9<0.0.94, 0.95: All ecal ", resBin,resMin, resMax);
1045 h_phoEResRegr1_[2][1] = iBooker.
book1D(histname+
"convBarrel",
" Photon rec/true Energy from Regression1 if r9<0.94: Barrel ",resBin,resMin, resMax);
1046 h_phoEResRegr1_[2][2] = iBooker.
book1D(histname+
"convEndcap",
" Photon rec/true Energy from Regression1 if r9<0.95: Endcap ",resBin,resMin, resMax);
1048 histname =
"eResRegr2";
1049 h_phoEResRegr2_[0][0] = iBooker.
book1D(histname+
"All",
" Photon rec/true Energy from Regression2 : All ecal ", resBin,resMin, resMax);
1050 h_phoEResRegr2_[0][1] = iBooker.
book1D(histname+
"Barrel",
" Photon rec/true Energy from Regression2: Barrel ",resBin,resMin, resMax);
1051 h_phoEResRegr2_[0][2] = iBooker.
book1D(histname+
"Endcap",
" Photon rec/true Energy from Regression2: Endcap ",resBin,resMin, resMax);
1053 h_phoEResRegr2_[1][0] = iBooker.
book1D(histname+
"unconvAll",
" Photon rec/true Energy from Regression2 if r9>0.94, 0.95: All ecal ", resBin,resMin, resMax);
1054 h_phoEResRegr2_[1][1] = iBooker.
book1D(histname+
"unconvBarrel",
" Photon rec/true Energy from Regression2 if r9>0.94: Barrel ",resBin,resMin, resMax);
1055 h_phoEResRegr2_[1][2] = iBooker.
book1D(histname+
"unconvEndcap",
" Photon rec/true Energy from Regression2 if r9>0.95: Endcap ",resBin,resMin, resMax);
1057 h_phoEResRegr2_[2][0] = iBooker.
book1D(histname+
"convAll",
" Photon rec/true Energy from Regression2 if r9<0.0.94, 0.95: All ecal ", resBin,resMin, resMax);
1058 h_phoEResRegr2_[2][1] = iBooker.
book1D(histname+
"convBarrel",
" Photon rec/true Energy from Regression2 if r9<0.94: Barrel ",resBin,resMin, resMax);
1059 h_phoEResRegr2_[2][2] = iBooker.
book1D(histname+
"convEndcap",
" Photon rec/true Energy from Regression2 if r9<0.95: Endcap ",resBin,resMin, resMax);
1061 histname =
"phoPixSeedSize";
1062 h_phoPixSeedSize_[0]= iBooker.
book1D(histname+
"Barrel",
"Pixel seeds size ", 100, 0., 100.);
1063 h_phoPixSeedSize_[1]= iBooker.
book1D(histname+
"Endcap",
"Pixel seeds size ", 100, 0., 100.);
1066 histname =
"chargedHadIso";
1067 h_chHadIso_[0]= iBooker.
book1D(histname+
"All",
"PF chargedHadIso: All Ecal",etBin,etMin,20.);
1068 h_chHadIso_[1]= iBooker.
book1D(histname+
"Barrel",
"PF chargedHadIso: Barrel",etBin,etMin,20.);
1069 h_chHadIso_[2]= iBooker.
book1D(histname+
"Endcap",
"PF chargedHadIso: Endcap",etBin,etMin,20.);
1070 histname =
"neutralHadIso";
1071 h_nHadIso_[0]= iBooker.
book1D(histname+
"All",
"PF neutralHadIso: All Ecal",etBin,etMin,20.);
1072 h_nHadIso_[1]= iBooker.
book1D(histname+
"Barrel",
"PF neutralHadIso: Barrel",etBin,etMin,20.);
1073 h_nHadIso_[2]= iBooker.
book1D(histname+
"Endcap",
"PF neutralHadIso: Endcap",etBin,etMin,20.);
1074 histname =
"photonIso";
1075 h_phoIso_[0]= iBooker.
book1D(histname+
"All",
"PF photonIso: All Ecal",etBin,etMin,20.);
1076 h_phoIso_[1]= iBooker.
book1D(histname+
"Barrel",
"PF photonIso: Barrel",etBin,etMin,20.);
1077 h_phoIso_[2]= iBooker.
book1D(histname+
"Endcap",
"PF photonIso: Endcap",etBin,etMin,20.);
1078 histname =
"nCluOutMustache";
1079 h_nCluOutsideMustache_[0]= iBooker.
book1D(histname+
"All",
"PF number of clusters outside Mustache: All Ecal",50,0.,50.);
1080 h_nCluOutsideMustache_[1]= iBooker.
book1D(histname+
"Barrel",
"PF number of clusters outside Mustache: Barrel",50,0.,50.);
1081 h_nCluOutsideMustache_[2]= iBooker.
book1D(histname+
"Endcap",
"PF number of clusters outside Mustache: Endcap",50,0.,50.);
1082 histname =
"etOutMustache";
1083 h_etOutsideMustache_[0]= iBooker.
book1D(histname+
"All",
"PF et outside Mustache: All Ecal",etBin,etMin,20.);
1084 h_etOutsideMustache_[1]= iBooker.
book1D(histname+
"Barrel",
"PF et outside Mustache: Barrel",etBin,etMin,20.);
1085 h_etOutsideMustache_[2]= iBooker.
book1D(histname+
"Endcap",
"PF et outside Mustache: Endcap",etBin,etMin,20.);
1087 h_pfMva_[0]= iBooker.
book1D(histname+
"All",
"PF MVA output: All Ecal",50,-1.,2.);
1088 h_pfMva_[1]= iBooker.
book1D(histname+
"Barrel",
"PF MVA output: Barrel",50,-1.,2.);
1089 h_pfMva_[2]= iBooker.
book1D(histname+
"Endcap",
"PF MVA output: Endcap",50,-1,2.);
1091 histname =
"SumPtOverPhoPt_ChHad_Cleaned";
1092 h_SumPtOverPhoPt_ChHad_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: All Ecal",etBin,etMin,2.);
1093 h_SumPtOverPhoPt_ChHad_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: Barrel",etBin,etMin,2.);
1094 h_SumPtOverPhoPt_ChHad_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Charged Hadrons: Endcap",etBin,etMin,2.);
1095 histname =
"SumPtOverPhoPt_NeuHad_Cleaned";
1096 h_SumPtOverPhoPt_NeuHad_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: All Ecal",etBin,etMin,2.);
1097 h_SumPtOverPhoPt_NeuHad_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: Barrel",etBin,etMin,2.);
1098 h_SumPtOverPhoPt_NeuHad_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Neutral Hadrons: Endcap",etBin,etMin,2.);
1099 histname =
"SumPtOverPhoPt_Pho_Cleaned";
1100 h_SumPtOverPhoPt_Pho_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand SumPt/P_{T}_{#gamma}: Photons: All Ecal",etBin,etMin,2.);
1101 h_SumPtOverPhoPt_Pho_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand SumPt/P_{T}_{#gamma}: Photons: Barrel",etBin,etMin,2.);
1102 h_SumPtOverPhoPt_Pho_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand SumPt/P_{T}_{#gamma}: Photons: Endcap",etBin,etMin,2.);
1104 histname =
"dRPhoPFcand_ChHad_Cleaned";
1105 h_dRPhoPFcand_ChHad_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Charged Hadrons : All Ecal",etBin,etMin,0.7);
1106 h_dRPhoPFcand_ChHad_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Charged Hadrons : Barrel",etBin,etMin,0.7);
1107 h_dRPhoPFcand_ChHad_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Charged Hadrons : Endcap",etBin,etMin,0.7);
1108 histname =
"dRPhoPFcand_NeuHad_Cleaned";
1109 h_dRPhoPFcand_NeuHad_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Neutral Hadrons : All Ecal",etBin,etMin,0.7);
1110 h_dRPhoPFcand_NeuHad_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Neutral Hadrons : Barrel",etBin,etMin,0.7);
1111 h_dRPhoPFcand_NeuHad_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Neutral Hadrons : Endcap",etBin,etMin,0.7);
1112 histname =
"dRPhoPFcand_Pho_Cleaned";
1113 h_dRPhoPFcand_Pho_Cleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Photons : All Ecal",etBin,etMin,0.7);
1114 h_dRPhoPFcand_Pho_Cleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Photons : Barrel",etBin,etMin,0.7);
1115 h_dRPhoPFcand_Pho_Cleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Photons : Endcap",etBin,etMin,0.7);
1118 histname =
"SumPtOverPhoPt_ChHad_unCleaned";
1119 h_SumPtOverPhoPt_ChHad_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand Sum Pt Over photon pt Charged Hadrons : All Ecal",etBin,etMin,2.);
1120 h_SumPtOverPhoPt_ChHad_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand Sum Pt Over photon pt Charged Hadrons: Barrel",etBin,etMin,2.);
1121 h_SumPtOverPhoPt_ChHad_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand Sum Pt Over photon pt Charged Hadrons: Endcap",etBin,etMin,2.);
1122 histname =
"SumPtOverPhoPt_NeuHad_unCleaned";
1123 h_SumPtOverPhoPt_NeuHad_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand Sum Pt Over photon pt Neutral Hadrons : All Ecal",etBin,etMin,2.);
1124 h_SumPtOverPhoPt_NeuHad_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand Sum Pt Over photon pt Neutral Hadrons: Barrel",etBin,etMin,2.);
1125 h_SumPtOverPhoPt_NeuHad_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand Sum Pt Over photon pt Neutral Hadrons: Endcap",etBin,etMin,2.);
1126 histname =
"SumPtOverPhoPt_Pho_unCleaned";
1127 h_SumPtOverPhoPt_Pho_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"Pf Cand Sum Pt Over photon pt Photons: All Ecal",etBin,etMin,2.);
1128 h_SumPtOverPhoPt_Pho_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"PF Cand Sum Pt Over photon pt Photons: Barrel",etBin,etMin,2.);
1129 h_SumPtOverPhoPt_Pho_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"PF Cand Sum Pt Over photon pt Photons: Endcap",etBin,etMin,2.);
1130 histname =
"dRPhoPFcand_ChHad_unCleaned";
1131 h_dRPhoPFcand_ChHad_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Charged Hadrons : All Ecal",etBin,etMin,0.7);
1132 h_dRPhoPFcand_ChHad_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Charged Hadrons : Barrel",etBin,etMin,0.7);
1133 h_dRPhoPFcand_ChHad_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Charged Hadrons : Endcap",etBin,etMin,0.7);
1134 histname =
"dRPhoPFcand_NeuHad_unCleaned";
1135 h_dRPhoPFcand_NeuHad_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Neutral Hadrons : All Ecal",etBin,etMin,0.7);
1136 h_dRPhoPFcand_NeuHad_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Neutral Hadrons : Barrel",etBin,etMin,0.7);
1137 h_dRPhoPFcand_NeuHad_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Neutral Hadrons : Endcap",etBin,etMin,0.7);
1138 histname =
"dRPhoPFcand_Pho_unCleaned";
1139 h_dRPhoPFcand_Pho_unCleaned_[0]= iBooker.
book1D(histname+
"All",
"dR(pho,cand) Photons: All Ecal",etBin,etMin,0.7);
1140 h_dRPhoPFcand_Pho_unCleaned_[1]= iBooker.
book1D(histname+
"Barrel",
"dR(pho,cand) Photons: Barrel",etBin,etMin,0.7);
1141 h_dRPhoPFcand_Pho_unCleaned_[2]= iBooker.
book1D(histname+
"Endcap",
"dR(pho,cand) Photons: Endcap",etBin,etMin,0.7);
1147 histname =
"gamgamMass";
1148 h_gamgamMass_[0][0] = iBooker.
book1D(histname+
"All",
"2 photons invariant mass: All ecal ", ggMassBin, ggMassMin, ggMassMax);
1149 h_gamgamMass_[0][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1150 h_gamgamMass_[0][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1152 histname =
"gamgamMassNoConv";
1153 h_gamgamMass_[1][0] = iBooker.
book1D(histname+
"All",
"2 photons with no conversion invariant mass: All ecal ",ggMassBin, ggMassMin, ggMassMax);
1154 h_gamgamMass_[1][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with no conversion invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1155 h_gamgamMass_[1][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with no conversion invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1157 histname =
"gamgamMassConv";
1158 h_gamgamMass_[2][0] = iBooker.
book1D(histname+
"All",
"2 photons with conversion invariant mass: All ecal ", ggMassBin, ggMassMin, ggMassMax);
1159 h_gamgamMass_[2][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with conversion invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1160 h_gamgamMass_[2][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with conversion invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1162 histname =
"gamgamMassRegr1";
1163 h_gamgamMassRegr1_[0][0] = iBooker.
book1D(histname+
"All",
"2 photons invariant mass Regr1 : All ecal ", ggMassBin, ggMassMin, ggMassMax);
1164 h_gamgamMassRegr1_[0][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons invariant mass Regr1 : Barrel ",ggMassBin, ggMassMin, ggMassMax);
1165 h_gamgamMassRegr1_[0][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons invariant mass Regr1 : Endcap ",ggMassBin, ggMassMin, ggMassMax);
1167 histname =
"gamgamMassRegr1NoConv";
1168 h_gamgamMassRegr1_[1][0] = iBooker.
book1D(histname+
"All",
"2 photons with no conversion invariant mass Regr1: All ecal ",ggMassBin, ggMassMin, ggMassMax);
1169 h_gamgamMassRegr1_[1][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with no conversion invariant mass Regr1: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1170 h_gamgamMassRegr1_[1][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with no conversion invariant mass Regr1: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1172 histname =
"gamgamMassRegr1Conv";
1173 h_gamgamMassRegr1_[2][0] = iBooker.
book1D(histname+
"All",
"2 photons with conversion invariant mass Regr1: All ecal ", ggMassBin, ggMassMin, ggMassMax);
1174 h_gamgamMassRegr1_[2][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with conversion invariant mass Regr1: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1175 h_gamgamMassRegr1_[2][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with conversion invariant mass Regr1: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1177 histname =
"gamgamMassRegr2";
1178 h_gamgamMassRegr2_[0][0] = iBooker.
book1D(histname+
"All",
"2 photons invariant mass Regr2 : All ecal ", ggMassBin, ggMassMin, ggMassMax);
1179 h_gamgamMassRegr2_[0][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons invariant mass Regr2 : Barrel ",ggMassBin, ggMassMin, ggMassMax);
1180 h_gamgamMassRegr2_[0][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons invariant mass Regr2 : Endcap ",ggMassBin, ggMassMin, ggMassMax);
1182 histname =
"gamgamMassRegr2NoConv";
1183 h_gamgamMassRegr2_[1][0] = iBooker.
book1D(histname+
"All",
"2 photons with no conversion invariant mass Regr2: All ecal ",ggMassBin, ggMassMin, ggMassMax);
1184 h_gamgamMassRegr2_[1][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with no conversion invariant mass Regr2: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1185 h_gamgamMassRegr2_[1][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with no conversion invariant mass Regr2: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1187 histname =
"gamgamMassRegr2Conv";
1188 h_gamgamMassRegr2_[2][0] = iBooker.
book1D(histname+
"All",
"2 photons with conversion invariant mass Regr2: All ecal ", ggMassBin, ggMassMin, ggMassMax);
1189 h_gamgamMassRegr2_[2][1] = iBooker.
book1D(histname+
"Barrel",
"2 photons with conversion invariant mass Regr2: Barrel ",ggMassBin, ggMassMin, ggMassMax);
1190 h_gamgamMassRegr2_[2][2] = iBooker.
book1D(histname+
"Endcap",
"2 photons with conversion invariant mass Regr2: Endcap ",ggMassBin, ggMassMin, ggMassMax);
1197 h_scEta_miniAOD_[0] = iBooker.
book1D(
"scEta_miniAOD",
" SC Eta ",etaBin,etaMin, etaMax);
1198 h_scPhi_miniAOD_[0] = iBooker.
book1D(
"scPhi_miniAOD",
" SC Phi ",phiBin,phiMin,phiMax);
1200 h_phoE_miniAOD_[0][0]=iBooker.
book1D(histname+
"All_miniAOD",
" Photon Energy: All ecal ", eBin,eMin, eMax);
1201 h_phoE_miniAOD_[0][1]=iBooker.
book1D(histname+
"Barrel_miniAOD",
" Photon Energy: barrel ",eBin,eMin, eMax);
1202 h_phoE_miniAOD_[0][2]=iBooker.
book1D(histname+
"Endcap_miniAOD",
" Photon Energy: Endcap ",eBin,eMin, eMax);
1205 h_phoEt_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" Photon Transverse Energy: All ecal ", etBin,etMin, etMax);
1206 h_phoEt_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
" Photon Transverse Energy: Barrel ",etBin,etMin, etMax);
1207 h_phoEt_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" Photon Transverse Energy: Endcap ",etBin,etMin, etMax);
1211 h_phoERes_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" Photon E/E_{true}: All ecal; E/E_{true} (GeV)", resBin,resMin, resMax);
1212 h_phoERes_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"Photon E/E_{true}: Barrel; E/E_{true} (GeV)",resBin,resMin, resMax);
1213 h_phoERes_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" Photon E/E_{true}: Endcap; E/E_{true} (GeV)",resBin,resMin, resMax);
1215 histname =
"sigmaEoE";
1216 h_phoSigmaEoE_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"#sigma_{E}/E: All ecal; #sigma_{E}/E", 100,0., 0.08);
1217 h_phoSigmaEoE_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"#sigma_{E}/E: Barrel; #sigma_{E}/E",100,0., 0.08);
1218 h_phoSigmaEoE_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"#sigma_{E}/E: Endcap, #sigma_{E}/E",100,0., 0.08);
1222 h_r9_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
1223 h_r9_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
1224 h_r9_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
1225 histname =
"full5x5_r9";
1226 h_full5x5_r9_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
1227 h_full5x5_r9_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
1228 h_full5x5_r9_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
1230 h_r1_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" e1x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
1231 h_r1_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
" e1x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
1232 h_r1_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" e1x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
1234 h_r2_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
" e2x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
1235 h_r2_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
" e2x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
1236 h_r2_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
" e2x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
1237 histname =
"hOverE";
1238 h_hOverE_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"H/E: All Ecal",100,0., 0.2) ;
1239 h_hOverE_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"H/E: Barrel ", 100,0., 0.2) ;
1240 h_hOverE_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"H/E: Endcap ", 100,0., 0.2) ;
1242 histname =
"newhOverE";
1243 h_newhOverE_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"new H/E: All Ecal",100,0., 0.2) ;
1244 h_newhOverE_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"new H/E: Barrel ", 100,0., 0.2) ;
1245 h_newhOverE_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"new H/E: Endcap ", 100,0., 0.2) ;
1247 histname =
"sigmaIetaIeta";
1248 h_sigmaIetaIeta_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"sigmaIetaIeta: All Ecal",100,0., 0.1) ;
1249 h_sigmaIetaIeta_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
1250 h_sigmaIetaIeta_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
1251 histname =
"full5x5_sigmaIetaIeta";
1252 h_full5x5_sigmaIetaIeta_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"Full5x5 sigmaIetaIeta: All Ecal",100,0., 0.1) ;
1253 h_full5x5_sigmaIetaIeta_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"Full5x5 sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
1254 h_full5x5_sigmaIetaIeta_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"Full5x5 sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
1256 histname =
"ecalRecHitSumEtConeDR04";
1257 h_ecalRecHitSumEtConeDR04_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"ecalRecHitSumEtDR04: All Ecal",etBin,etMin,20.);
1258 h_ecalRecHitSumEtConeDR04_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"ecalRecHitSumEtDR04: Barrel ", etBin,etMin,20.);
1259 h_ecalRecHitSumEtConeDR04_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"ecalRecHitSumEtDR04: Endcap ", etBin,etMin,20.);
1260 histname =
"hcalTowerSumEtConeDR04";
1261 h_hcalTowerSumEtConeDR04_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"hcalTowerSumEtConeDR04: All Ecal",etBin,etMin,20.);
1262 h_hcalTowerSumEtConeDR04_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"hcalTowerSumEtConeDR04: Barrel ", etBin,etMin,20.);
1263 h_hcalTowerSumEtConeDR04_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"hcalTowerSumEtConeDR04: Endcap ", etBin,etMin,20.);
1265 histname =
"hcalTowerBcSumEtConeDR04";
1266 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"hcalTowerBcSumEtConeDR04: All Ecal",etBin,etMin,20.);
1267 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"hcalTowerBcSumEtConeDR04: Barrel ", etBin,etMin,20.);
1268 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"hcalTowerBcSumEtConeDR04: Endcap ", etBin,etMin,20.);
1269 histname =
"isoTrkSolidConeDR04";
1270 h_isoTrkSolidConeDR04_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"isoTrkSolidConeDR04: All Ecal",etBin,etMin,etMax*0.1);
1271 h_isoTrkSolidConeDR04_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"isoTrkSolidConeDR04: Barrel ", etBin,etMin,etMax*0.1);
1272 h_isoTrkSolidConeDR04_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"isoTrkSolidConeDR04: Endcap ", etBin,etMin,etMax*0.1);
1273 histname =
"nTrkSolidConeDR04";
1274 h_nTrkSolidConeDR04_miniAOD_[0][0] = iBooker.
book1D(histname+
"All_miniAOD",
"nTrkSolidConeDR04: All Ecal",20,0., 20) ;
1275 h_nTrkSolidConeDR04_miniAOD_[0][1] = iBooker.
book1D(histname+
"Barrel_miniAOD",
"nTrkSolidConeDR04: Barrel ", 20,0., 20) ;
1276 h_nTrkSolidConeDR04_miniAOD_[0][2] = iBooker.
book1D(histname+
"Endcap_miniAOD",
"nTrkSolidConeDR04: Endcap ", 20,0., 20) ;
1280 histname =
"chargedHadIso";
1281 h_chHadIso_miniAOD_[0]= iBooker.
book1D(histname+
"All_miniAOD",
"PF chargedHadIso: All Ecal",etBin,etMin,20.);
1282 h_chHadIso_miniAOD_[1]= iBooker.
book1D(histname+
"Barrel_miniAOD",
"PF chargedHadIso: Barrel",etBin,etMin,20.);
1283 h_chHadIso_miniAOD_[2]= iBooker.
book1D(histname+
"Endcap_miniAOD",
"PF chargedHadIso: Endcap",etBin,etMin,20.);
1284 histname =
"neutralHadIso";
1285 h_nHadIso_miniAOD_[0]= iBooker.
book1D(histname+
"All_miniAOD",
"PF neutralHadIso: All Ecal",etBin,etMin,20.);
1286 h_nHadIso_miniAOD_[1]= iBooker.
book1D(histname+
"Barrel_miniAOD",
"PF neutralHadIso: Barrel",etBin,etMin,20.);
1287 h_nHadIso_miniAOD_[2]= iBooker.
book1D(histname+
"Endcap_miniAOD",
"PF neutralHadIso: Endcap",etBin,etMin,20.);
1288 histname =
"photonIso";
1289 h_phoIso_miniAOD_[0]= iBooker.
book1D(histname+
"All_miniAOD",
"PF photonIso: All Ecal",etBin,etMin,20.);
1290 h_phoIso_miniAOD_[1]= iBooker.
book1D(histname+
"Barrel_miniAOD",
"PF photonIso: Barrel",etBin,etMin,20.);
1291 h_phoIso_miniAOD_[2]= iBooker.
book1D(histname+
"Endcap_miniAOD",
"PF photonIso: Endcap",etBin,etMin,20.);
1297 h_nConv_[0][0] = iBooker.
book1D(histname+
"All",
"Number Of two-tracks Conversions per isolated candidates per events: All Ecal ",10,-0.5, 9.5);
1298 h_nConv_[0][1] = iBooker.
book1D(histname+
"Barrel",
"Number Of two-tracks Conversions per isolated candidates per events: Ecal Barrel ",10,-0.5, 9.5);
1299 h_nConv_[0][2] = iBooker.
book1D(histname+
"Endcap",
"Number Of two-tracks Conversions per isolated candidates per events: Ecal Endcap ",10,-0.5, 9.5);
1300 h_nConv_[1][0] = iBooker.
book1D(histname+
"OneLegAll",
"Number Of single leg Conversions per isolated candidates per events: All Ecal ",10,-0.5, 9.5);
1301 h_nConv_[1][1] = iBooker.
book1D(histname+
"OneLegBarrel",
"Number Of single leg Conversions per isolated candidates per events: Ecal Barrel ",10,-0.5, 9.5);
1302 h_nConv_[1][2] = iBooker.
book1D(histname+
"OneLegEndcap",
"Number Of single leg Conversions per isolated candidates per events: Ecal Endcap ",10,-0.5, 9.5);
1305 h_convEta_[0] = iBooker.
book1D(
"convEta1",
" converted Photon Eta >1 track",etaBin,etaMin, etaMax) ;
1306 h_convEta_[1] = iBooker.
book1D(
"convEta2",
" converted Photon Eta =2 tracks ",etaBin,etaMin, etaMax) ;
1307 h_convEta_[2] = iBooker.
book1D(
"convEta2ass",
" converted Photon Eta =2 tracks, both ass ",etaBin,etaMin, etaMax) ;
1308 h_convPhi_[0] = iBooker.
book1D(
"convPhi",
" converted Photon Phi ",phiBin,phiMin,phiMax) ;
1311 histname =
"convERes";
1312 h_convERes_[0][0] = iBooker.
book1D(histname+
"All",
" Conversion rec/true Energy: All ecal ", resBin,resMin, resMax);
1313 h_convERes_[0][1] = iBooker.
book1D(histname+
"Barrel",
" Conversion rec/true Energy: Barrel ",resBin,resMin, resMax);
1314 h_convERes_[0][2] = iBooker.
book1D(histname+
"Endcap",
" Conversion rec/true Energy: Endcap ",resBin,resMin, resMax);
1316 histname=
"p_EResVsR";
1317 p_eResVsR_ = iBooker.
bookProfile(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin,rMax, 100, 0.,1.5,
"");
1320 histname =
"convPtRes";
1321 h_convPtRes_[1][0] = iBooker.
book1D(histname+
"All",
" Conversion Pt rec/true from tracks : All ecal ", resBin,0.,1.5);
1322 h_convPtRes_[1][1] = iBooker.
book1D(histname+
"Barrel",
" Conversion Pt rec/true from tracks: Barrel ",resBin,0., 1.5);
1323 h_convPtRes_[1][2] = iBooker.
book1D(histname+
"Endcap",
" Conversion Pt rec/true from tracks: Endcap ",resBin,0., 1.5);
1326 if ( ! isRunCentrally_ ) {
1327 histname=
"r9VsTracks";
1328 h_r9VsNofTracks_[0][0] = iBooker.
book2D(histname+
"All",
" photons r9 vs nTracks from conversions: All Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
1329 h_r9VsNofTracks_[0][1] = iBooker.
book2D(histname+
"Barrel",
" photons r9 vs nTracks from conversions: Barrel Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
1330 h_r9VsNofTracks_[0][2] = iBooker.
book2D(histname+
"Endcap",
" photons r9 vs nTracks from conversions: Endcap Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
1334 h_mvaOut_[0] = iBooker.
book1D(histname+
"All",
" mvaOut for all conversions : All Ecal",100, 0., 1.);
1335 h_mvaOut_[1] = iBooker.
book1D(histname+
"Barrel",
" mvaOut for all conversions : Barrel Ecal",100, 0., 1.);
1336 h_mvaOut_[2] = iBooker.
book1D(histname+
"Endcap",
" mvaOut for all conversions : Endcap Ecal",100, 0., 1.);
1340 histname=
"EoverPtracks";
1341 h_EoverPTracks_[0][0] = iBooker.
book1D(histname+
"BarrelPix",
" photons conversion E/p: barrel pix",eoverpBin, eoverpMin,eoverpMax);
1342 h_EoverPTracks_[0][1] = iBooker.
book1D(histname+
"BarrelTib",
" photons conversion E/p: barrel tib",eoverpBin, eoverpMin,eoverpMax);
1343 h_EoverPTracks_[0][2] = iBooker.
book1D(histname+
"BarrelTob",
" photons conversion E/p: barrel tob ",eoverpBin, eoverpMin,eoverpMax);
1345 h_EoverPTracks_[1][0] = iBooker.
book1D(histname+
"All",
" photons conversion E/p: all Ecal ",100, 0., 5.);
1346 h_EoverPTracks_[1][1] = iBooker.
book1D(histname+
"Barrel",
" photons conversion E/p: Barrel Ecal",100, 0., 5.);
1347 h_EoverPTracks_[1][2] = iBooker.
book1D(histname+
"Endcap",
" photons conversion E/p: Endcap Ecal ",100, 0., 5.);
1348 histname=
"EoverP_SL";
1349 h_EoverP_SL_[0] = iBooker.
book1D(histname+
"All",
" photons single leg conversion E/p: all Ecal ",100, 0., 5.);
1350 h_EoverP_SL_[1] = iBooker.
book1D(histname+
"Barrel",
" photons single leg conversion E/p: Barrel Ecal",100, 0., 5.);
1351 h_EoverP_SL_[2] = iBooker.
book1D(histname+
"Endcap",
" photons single leg conversion E/p: Endcap Ecal ",100, 0., 5.);
1354 histname=
"PoverEtracks";
1355 h_PoverETracks_[1][0] = iBooker.
book1D(histname+
"All",
" photons conversion p/E: all Ecal ",povereBin, povereMin, povereMax);
1356 h_PoverETracks_[1][1] = iBooker.
book1D(histname+
"Barrel",
" photons conversion p/E: Barrel Ecal",povereBin, povereMin, povereMax);
1357 h_PoverETracks_[1][2] = iBooker.
book1D(histname+
"Endcap",
" photons conversion p/E: Endcap Ecal ",povereBin, povereMin, povereMax);
1359 histname=
"pEoverEtrueVsEta";
1360 p_EoverEtrueVsEta_[0] = iBooker.
bookProfile(histname+
"All",
" photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax, 100,0.,2.5,
"");
1362 histname=
"pEoverEtrueVsR";
1363 p_EoverEtrueVsR_[0] = iBooker.
bookProfile(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin,rMax, 100, 0., 2.5,
"");
1365 histname=
"pEoverEtrueVsEta";
1366 p_EoverEtrueVsEta_[1] = iBooker.
bookProfile(histname+
"All2",
" photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5,
"");
1368 histname=
"pPoverPtrueVsEta";
1369 p_PoverPtrueVsEta_[0] = iBooker.
bookProfile(histname+
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.,
"");
1371 histname=
"pEoverPVsEta";
1372 p_EoverPVsEta_[0] = iBooker.
bookProfile(histname+
"All",
" photons conversion E/P vs #eta: all Ecal ",etaBin2,etaMin, etaMax, 100, 0., 5.,
"");
1375 if ( ! isRunCentrally_ ) {
1376 histname=
"EoverEtrueVsEoverP";
1377 h2_EoverEtrueVsEoverP_[0] = iBooker.
book2D(histname+
"All",
" photons conversion E/Etrue vs E/P: all Ecal ",100, 0., 5., 100, 0.5, 1.5);
1378 h2_EoverEtrueVsEoverP_[1] = iBooker.
book2D(histname+
"Barrel",
" photons conversion E/Etrue vs E/: Barrel Ecal",100, 0., 5.,100, 0.5, 1.5);
1379 h2_EoverEtrueVsEoverP_[2] = iBooker.
book2D(histname+
"Endcap",
" photons conversion E/Etrue vs E/: Endcap Ecal ",100, 0., 5., 100, 0.5, 1.5);
1380 histname=
"PoverPtrueVsEoverP";
1381 h2_PoverPtrueVsEoverP_[0] = iBooker.
book2D(histname+
"All",
" photons conversion P/Ptrue vs E/P: all Ecal ",100, 0., 5., 100, 0., 2.5);
1382 h2_PoverPtrueVsEoverP_[1] = iBooker.
book2D(histname+
"Barrel",
" photons conversion P/Ptrue vs E/: Barrel Ecal",100, 0., 5.,100, 0., 2.5);
1383 h2_PoverPtrueVsEoverP_[2] = iBooker.
book2D(histname+
"Endcap",
" photons conversion P/Ptrue vs E/: Endcap Ecal ",100, 0., 5., 100, 0., 2.5);
1385 histname=
"EoverEtrueVsEta";
1386 h2_EoverEtrueVsEta_[0] = iBooker.
book2D(histname+
"All",
" photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
1389 histname=
"EoverEtrueVsEta";
1390 h2_EoverEtrueVsEta_[1] = iBooker.
book2D(histname+
"All2",
" photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
1392 histname=
"EoverEtrueVsR";
1393 h2_EoverEtrueVsR_[0] = iBooker.
book2D(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin, rMax,100, 0., 2.5);
1395 histname=
"PoverPtrueVsEta";
1396 h2_PoverPtrueVsEta_[0] = iBooker.
book2D(histname+
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.);
1398 histname=
"EoverPVsEta";
1399 h2_EoverPVsEta_[0] = iBooker.
book2D(histname+
"All",
" photons conversion E/P vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.);
1401 histname=
"EoverPVsR";
1402 h2_EoverPVsR_[0] = iBooker.
book2D(histname+
"All",
" photons conversion E/P vs R: all Ecal ",rBin,rMin, rMax,100, 0., 5.);
1404 histname=
"etaVsRsim";
1405 h2_etaVsRsim_[0] = iBooker.
book2D(histname+
"All",
" eta(sim) vs R (sim) for associated conversions: all Ecal ",etaBin, etaMin, etaMax,rBin,rMin, rMax);
1406 histname=
"etaVsRreco";
1407 h2_etaVsRreco_[0] = iBooker.
book2D(histname+
"All",
" eta(reco) vs R (reco) for associated conversions: all Ecal ",etaBin, etaMin, etaMax,rBin,rMin, rMax);
1411 histname=
"pEoverPVsR";
1412 p_EoverPVsR_[0] = iBooker.
bookProfile(histname+
"All",
" photons conversion E/P vs R: all Ecal ",rBin,rMin,rMax, 100, 0., 5.,
"");
1415 histname=
"hInvMass";
1416 h_invMass_[0][0]= iBooker.
book1D(histname+
"All_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ",100, 0., 1.5);
1417 h_invMass_[0][1]= iBooker.
book1D(histname+
"Barrel_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ",100, 0., 1.5);
1418 h_invMass_[0][2]= iBooker.
book1D(histname+
"Endcap_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ",100, 0., 1.5);
1419 histname=
"hInvMass";
1420 h_invMass_[1][0]= iBooker.
book1D(histname+
"All_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ",100, 0., 1.5);
1421 h_invMass_[1][1]= iBooker.
book1D(histname+
"Barrel_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ",100, 0., 1.5);
1422 h_invMass_[1][2]= iBooker.
book1D(histname+
"Endcap_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ",100, 0., 1.5);
1425 histname=
"hDPhiTracksAtVtx";
1426 h_DPhiTracksAtVtx_[1][0] =iBooker.
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1427 h_DPhiTracksAtVtx_[1][1] =iBooker.
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1428 h_DPhiTracksAtVtx_[1][2] =iBooker.
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1431 if ( ! isRunCentrally_ ) {
1432 histname=
"hDPhiTracksAtVtxVsEta";
1433 h2_DPhiTracksAtVtxVsEta_ = iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta",etaBin2,etaMin, etaMax,100, -0.5, 0.5);
1435 histname=
"hDPhiTracksAtVtxVsR";
1436 h2_DPhiTracksAtVtxVsR_ = iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R",rBin,rMin, rMax,100, -0.5, 0.5);
1438 histname=
"hDCotTracksVsEta";
1439 h2_DCotTracksVsEta_ = iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta",etaBin2,etaMin, etaMax,100, -0.2, 0.2);
1441 histname=
"hDCotTracksVsR";
1442 h2_DCotTracksVsR_ = iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R",rBin,rMin, rMax,100, -0.2, 0.2);
1444 histname=
"h2_DPhiTracksAtEcalVsR";
1445 if ( fName_ !=
"pfPhotonValidator" && fName_ !=
"oldpfPhotonValidator" ) h2_DPhiTracksAtEcalVsR_= iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs R : all Ecal ",rBin,rMin, rMax, dPhiTracksBin,0.,dPhiTracksMax);
1447 histname=
"h2_DPhiTracksAtEcalVsEta";
1448 if ( fName_ !=
"pfPhotonValidator" && fName_ !=
"oldpfPhotonValidator" ) h2_DPhiTracksAtEcalVsEta_= iBooker.
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs #eta : all Ecal ",etaBin2,etaMin, etaMax, dPhiTracksBin,0.,dPhiTracksMax);
1453 histname=
"pDPhiTracksAtVtxVsEta";
1454 p_DPhiTracksAtVtxVsEta_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta ",etaBin2,etaMin, etaMax, 100, -0.5, 0.5,
"");
1456 histname=
"pDPhiTracksAtVtxVsR";
1457 p_DPhiTracksAtVtxVsR_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R ",rBin,rMin, rMax,100, -0.5, 0.5,
"");
1460 histname=
"hDCotTracks";
1461 h_DCotTracks_[1][0]= iBooker.
book1D(histname+
"All",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1462 h_DCotTracks_[1][1]= iBooker.
book1D(histname+
"Barrel",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1463 h_DCotTracks_[1][2]= iBooker.
book1D(histname+
"Endcap",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1466 histname=
"pDCotTracksVsEta";
1467 p_DCotTracksVsEta_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta ",etaBin2,etaMin, etaMax, 100, -0.2, 0.2,
"");
1469 histname=
"pDCotTracksVsR";
1470 p_DCotTracksVsR_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R ",rBin,rMin, rMax,100, -0.2, 0.2,
"");
1473 histname=
"hDistMinAppTracks";
1474 h_distMinAppTracks_[1][0]= iBooker.
book1D(histname+
"All",
" Photons:Tracks from conversions Min Approach Dist Tracks: all Ecal ",dEtaTracksBin,-0.1,0.6);
1475 h_distMinAppTracks_[1][1]= iBooker.
book1D(histname+
"Barrel",
" Photons:Tracks from conversions Min Approach Dist Tracks: Barrel Ecal ",dEtaTracksBin,-0.1,0.6);
1476 h_distMinAppTracks_[1][2]= iBooker.
book1D(histname+
"Endcap",
" Photons:Tracks from conversions Min Approach Dist Tracks: Endcap Ecal ",dEtaTracksBin,-0.1,0.6);
1479 histname=
"hDPhiTracksAtEcal";
1480 h_DPhiTracksAtEcal_[1][0]= iBooker.
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal : all Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1481 h_DPhiTracksAtEcal_[1][1]= iBooker.
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#phi at Ecal : Barrel Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1482 h_DPhiTracksAtEcal_[1][2]= iBooker.
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#phi at Ecal : Endcap Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1484 histname=
"pDPhiTracksAtEcalVsR";
1485 p_DPhiTracksAtEcalVsR_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs R ",rBin,rMin, rMax, dPhiTracksBin,0.,dPhiTracksMax,
"");
1487 histname=
"pDPhiTracksAtEcalVsEta";
1488 p_DPhiTracksAtEcalVsEta_ = iBooker.
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs #eta ",etaBin2,etaMin, etaMax,dPhiTracksBin,0.,dPhiTracksMax,
"");
1491 histname=
"hDEtaTracksAtEcal";
1492 h_DEtaTracksAtEcal_[1][0]= iBooker.
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#eta at Ecal : all Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1493 h_DEtaTracksAtEcal_[1][1]= iBooker.
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#eta at Ecal : Barrel Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1494 h_DEtaTracksAtEcal_[1][2]= iBooker.
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#eta at Ecal : Endcap Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1499 h_convVtxRvsZ_[0] = iBooker.
book2D(
"convVtxRvsZAll",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1500 h_convVtxRvsZ_[1] = iBooker.
book2D(
"convVtxRvsZBarrel",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1501 h_convVtxRvsZ_[2] = iBooker.
book2D(
"convVtxRvsZEndcap",
" Photon Reco conversion vtx position",zBin2ForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1502 h_convVtxYvsX_ = iBooker.
book2D(
"convVtxYvsXTrkBarrel",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
1504 h_convSLVtxRvsZ_[0] = iBooker.
book2D(
"convSLVtxRvsZAll",
" Photon Reco single leg conversion innermost hit position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1505 h_convSLVtxRvsZ_[1] = iBooker.
book2D(
"convSLVtxRvsZBarrel",
" Photon Reco single leg conversion innermost hit position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1506 h_convSLVtxRvsZ_[2] = iBooker.
book2D(
"convSLVtxRvsZEndcap",
" Photon Reco single leg conversion innermost hit position",zBin2ForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1509 if ( ! isRunCentrally_ ) {
1510 h_convVtxRvsZ_zoom_[0] = iBooker.
book2D(
"convVtxRvsZBarrelZoom1",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, -10., 40.);
1511 h_convVtxRvsZ_zoom_[1] = iBooker.
book2D(
"convVtxRvsZBarrelZoom2",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, -10., 20.);
1512 h_convVtxYvsX_zoom_[0] = iBooker.
book2D(
"convVtxYvsXTrkBarrelZoom1",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -40., 40., 100, -40., 40.);
1513 h_convVtxYvsX_zoom_[1] = iBooker.
book2D(
"convVtxYvsXTrkBarrelZoom2",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -20., 20., 100, -20., 20.);
1516 h_convVtxdX_ = iBooker.
book1D(
"convVtxdX",
" Photon Reco conversion vtx dX",100, -20.,20.);
1517 h_convVtxdY_ = iBooker.
book1D(
"convVtxdY",
" Photon Reco conversion vtx dY",100, -20.,20.);
1518 h_convVtxdZ_ = iBooker.
book1D(
"convVtxdZ",
" Photon Reco conversion vtx dZ",100, -20.,20.);
1519 h_convVtxdR_ = iBooker.
book1D(
"convVtxdR",
" Photon Reco conversion vtx dR",100, -20.,20.);
1521 h_convVtxdX_barrel_ = iBooker.
book1D(
"convVtxdX_barrel",
" Photon Reco conversion vtx dX, |eta|<=1.2",100, -20.,20.);
1522 h_convVtxdY_barrel_ = iBooker.
book1D(
"convVtxdY_barrel",
" Photon Reco conversion vtx dY, |eta|<=1.2 ",100, -20.,20.);
1523 h_convVtxdZ_barrel_ = iBooker.
book1D(
"convVtxdZ_barrel",
" Photon Reco conversion vtx dZ, |eta|<=1.2,",100, -20.,20.);
1524 h_convVtxdR_barrel_ = iBooker.
book1D(
"convVtxdR_barrel",
" Photon Reco conversion vtx dR, |eta|<=1.2",100, -20.,20.);
1525 h_convVtxdX_endcap_ = iBooker.
book1D(
"convVtxdX_endcap",
" Photon Reco conversion vtx dX, |eta|>1.2",100, -20.,20.);
1526 h_convVtxdY_endcap_ = iBooker.
book1D(
"convVtxdY_endcap",
" Photon Reco conversion vtx dY, |eta|>1.2",100, -20.,20.);
1527 h_convVtxdZ_endcap_ = iBooker.
book1D(
"convVtxdZ_endcap",
" Photon Reco conversion vtx dZ, |eta|>1.2",100, -20.,20.);
1528 h_convVtxdR_endcap_ = iBooker.
book1D(
"convVtxdR_endcap",
" Photon Reco conversion vtx dR, |eta|>1.2 ",100, -20.,20.);
1531 h_convVtxdPhi_ = iBooker.
book1D(
"convVtxdPhi",
" Photon Reco conversion vtx dPhi",100, -0.005,0.005);
1532 h_convVtxdEta_ = iBooker.
book1D(
"convVtxdEta",
" Photon Reco conversion vtx dEta",100, -0.5,0.5);
1534 if ( ! isRunCentrally_ ) {
1535 h2_convVtxdRVsR_ = iBooker.
book2D(
"h2ConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR" ,rBin,rMin, rMax,100, -20.,20.);
1536 h2_convVtxdRVsEta_ = iBooker.
book2D(
"h2ConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta" ,etaBin2,etaMin, etaMax,100, -20.,20.);
1539 p_convVtxdRVsR_ = iBooker.
bookProfile(
"pConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR" ,rBin,rMin, rMax ,100, -20.,20.,
"");
1540 p_convVtxdRVsEta_ = iBooker.
bookProfile(
"pConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta" ,etaBin2,etaMin, etaMax, 100, -20.,20.,
"");
1541 p_convVtxdXVsX_ = iBooker.
bookProfile(
"pConvVtxdXVsX",
"Conversion vtx dX vs X" ,120,-60, 60 ,100, -20.,20.,
"");
1542 p_convVtxdYVsY_ = iBooker.
bookProfile(
"pConvVtxdYVsY",
"Conversion vtx dY vs Y" ,120,-60, 60 ,100, -20.,20.,
"");
1543 p_convVtxdZVsZ_ = iBooker.
bookProfile(
"pConvVtxdZVsZ",
"Conversion vtx dZ vs Z" ,zBin,zMin,zMax ,100, -20.,20.,
"");
1546 if ( ! isRunCentrally_ ) {
1547 h2_convVtxRrecVsTrue_ = iBooker.
book2D(
"h2ConvVtxRrecVsTrue",
"Photon Reco conversion vtx R rec vs true" ,rBin,rMin, rMax,rBin,rMin, rMax);
1551 h_vtxChi2_[0] = iBooker.
book1D(histname+
"All",
"vertex #chi^{2} all", 100, chi2Min, chi2Max);
1552 h_vtxChi2_[1] = iBooker.
book1D(histname+
"Barrel",
"vertex #chi^{2} barrel", 100, chi2Min, chi2Max);
1553 h_vtxChi2_[2] = iBooker.
book1D(histname+
"Endcap",
"vertex #chi^{2} endcap", 100, chi2Min, chi2Max);
1554 histname=
"vtxChi2Prob";
1555 h_vtxChi2Prob_[0] = iBooker.
book1D(histname+
"All",
"vertex #chi^{2} all", 100, 0., 1.);
1556 h_vtxChi2Prob_[1] = iBooker.
book1D(histname+
"Barrel",
"vertex #chi^{2} barrel", 100, 0., 1.);
1557 h_vtxChi2Prob_[2] = iBooker.
book1D(histname+
"Endcap",
"vertex #chi^{2} endcap", 100, 0., 1.);
1559 histname=
"zPVFromTracks";
1560 h_zPVFromTracks_[0] = iBooker.
book1D(histname+
"All",
" Photons: PV z from conversion tracks", 100, -30., 30.);
1561 h_zPVFromTracks_[1] = iBooker.
book1D(histname+
"Barrel",
" Photons: PV z from conversion tracks",100, -30., 30.);
1562 h_zPVFromTracks_[2] = iBooker.
book1D(histname+
"Endcap",
" Photons: PV z from conversion tracks",100, -30., 30.);
1563 h_zPVFromTracks_[3] = iBooker.
book1D(histname+
"EndcapP",
" Photons: PV z from conversion tracks",100, -30., 30.);
1564 h_zPVFromTracks_[4] = iBooker.
book1D(histname+
"EndcapM",
" Photons: PV z from conversion tracks",100, -30., 30.);
1565 histname=
"dzPVFromTracks";
1566 h_dzPVFromTracks_[0] = iBooker.
book1D(histname+
"All",
" Photons: PV Z_rec - Z_true from conversion tracks", 100, -10., 10.);
1567 h_dzPVFromTracks_[1] = iBooker.
book1D(histname+
"Barrel",
" Photons: PV Z_rec - Z_true from conversion tracks",100, -10., 10.);
1568 h_dzPVFromTracks_[2] = iBooker.
book1D(histname+
"Endcap",
" Photons: PV Z_rec - Z_true from conversion tracks",100, -10., 10.);
1569 h_dzPVFromTracks_[3] = iBooker.
book1D(histname+
"EndcapP",
" Photons: PV Z_rec - Z_true from conversion tracks",100, -10., 10.);
1570 h_dzPVFromTracks_[4] = iBooker.
book1D(histname+
"EndcapM",
" Photons: PV Z_rec - Z_true from conversion tracks",100, -10., 10.);
1571 p_dzPVVsR_ = iBooker.
bookProfile(
"pdzPVVsR",
"Photon Reco conversions: dz(PV) vs R" ,rBin,rMin, rMax, 100, -3.,3.,
"");
1572 p_dzPVVsEta_ = iBooker.
bookProfile(
"pdzPVVsEta",
"Photon Reco conversions: dz(PV) vs Eta" ,etaBin,etaMin, etaMax, 100, -3.,3.,
"");
1574 if ( ! isRunCentrally_ ) {
1575 h2_dzPVVsR_ = iBooker.
book2D(
"h2dzPVVsR",
"Photon Reco conversions: dz(PV) vs R" ,rBin,rMin, rMax,100, -3.,3.);
1579 if ( ! isRunCentrally_ ) {
1580 histname=
"nHitsVsEta";
1581 nHitsVsEta_[0] = iBooker.
book2D(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs #eta all tracks",etaBin,etaMin, etaMax,25,0., 25.);
1583 histname=
"nHitsVsEta";
1584 nHitsVsEta_[1] = iBooker.
book2D(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs #eta associated tracks",etaBin,etaMin, etaMax,25,0., 25.);
1586 histname=
"nHitsVsR";
1587 nHitsVsR_[0] = iBooker.
book2D(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs radius all tracks" ,rBin,rMin, rMax,25,0.,25);
1589 histname=
"nHitsVsR";
1590 nHitsVsR_[1] = iBooker.
book2D(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs radius associated tracks" ,rBin,rMin, rMax,25,0.,25);
1592 histname=
"h2Chi2VsEta";
1593 h2_Chi2VsEta_[0]=iBooker.
book2D(histname+
"All",
" Reco Track #chi^{2} vs #eta: All ",etaBin2,etaMin, etaMax,100, chi2Min, chi2Max);
1596 histname=
"h2Chi2VsR";
1597 h2_Chi2VsR_[0]=iBooker.
book2D(histname+
"All",
" Reco Track #chi^{2} vs R: All ",rBin,rMin, rMax,100,chi2Min, chi2Max);
1600 histname=
"h_nHitsVsEta";
1601 p_nHitsVsEta_[0] = iBooker.
bookProfile(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs #eta all tracks",etaBin,etaMin, etaMax, 25,-0.5, 24.5,
"");
1603 histname=
"h_nHitsVsEta";
1604 p_nHitsVsEta_[1] = iBooker.
bookProfile(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs #eta associated tracks",etaBin,etaMin, etaMax, 25,-0.5, 24.5,
"");
1606 histname=
"p_nHitsVsEtaSL";
1607 p_nHitsVsEtaSL_[0] = iBooker.
bookProfile(histname+
"AllTracks",
"Photons:Tracks from single leg conversions: # of hits vs #eta all tracks",etaBin,etaMin, etaMax, 25,-0.5, 24.5,
"");
1610 histname=
"h_nHitsVsR";
1611 p_nHitsVsR_[0] = iBooker.
bookProfile(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs radius all tracks",rBin,rMin, rMax, 25,-0.5, 24.5,
"");
1612 histname=
"p_nHitsVsRSL";
1613 p_nHitsVsRSL_[0] = iBooker.
bookProfile(histname+
"AllTracks",
"Photons:Tracks from single leg conversions: # of hits vs radius all tracks",rBin,rMin, rMax, 25,-0.5, 24.5,
"");
1616 h_tkChi2_[0] = iBooker.
book1D(histname+
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 100, chi2Min, chi2Max);
1617 histname=
"tkChi2SL";
1618 h_tkChi2SL_[0] = iBooker.
book1D(histname+
"AllTracks",
"Photons:Tracks from single leg conversions: #chi^{2} of associated tracks", 100, chi2Min, chi2Max);
1619 histname=
"tkChi2Large";
1620 h_tkChi2Large_[0] = iBooker.
book1D(histname+
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 1000, 0., 5000.0);
1623 histname=
"h_nHitsVsR";
1624 p_nHitsVsR_[1] = iBooker.
bookProfile(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs radius associated tracks",rBin,rMin, rMax, 25,-0.5, 24.5,
"");
1627 h_tkChi2_[1] = iBooker.
book1D(histname+
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 100, chi2Min, chi2Max);
1628 histname=
"tkChi2Large";
1629 h_tkChi2Large_[1] = iBooker.
book1D(histname+
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 1000, 0., 5000.0);
1631 histname=
"pChi2VsEta";
1632 p_Chi2VsEta_[0]=iBooker.
bookProfile(histname+
"All",
" Reco Track #chi^{2} vs #eta : All ",etaBin2,etaMin, etaMax, 100, chi2Min, chi2Max,
"");
1634 histname=
"pChi2VsR";
1635 p_Chi2VsR_[0]=iBooker.
bookProfile(histname+
"All",
" Reco Track #chi^{2} vas R : All ",rBin,rMin,rMax, 100,chi2Min, chi2Max,
"");
1639 h_TkD0_[0]=iBooker.
book1D(histname+
"All",
" Reco Track D0*q: All ",100,-0.1,0.6);
1640 h_TkD0_[1]=iBooker.
book1D(histname+
"Barrel",
" Reco Track D0*q: Barrel ",100,-0.1,0.6);
1641 h_TkD0_[2]=iBooker.
book1D(histname+
"Endcap",
" Reco Track D0*q: Endcap ",100,-0.1,0.6);
1644 histname=
"hTkPtPull";
1645 h_TkPtPull_[0]=iBooker.
book1D(histname+
"All",
" Reco Track Pt pull: All ",100, -10., 10.);
1646 histname=
"hTkPtPull";
1647 h_TkPtPull_[1]=iBooker.
book1D(histname+
"Barrel",
" Reco Track Pt pull: Barrel ",100, -10., 10.);
1648 histname=
"hTkPtPull";
1649 h_TkPtPull_[2]=iBooker.
book1D(histname+
"Endcap",
" Reco Track Pt pull: Endcap ",100, -10., 10.);
1651 histname=
"pTkPtPullEta";
1652 p_TkPtPull_[0]=iBooker.
bookProfile(histname+
"All",
" Reco Track Pt pull: All ",etaBin2,etaMin, etaMax, 100, -10., 10.,
" ");
1654 if ( ! isRunCentrally_ ) {
1655 histname=
"h2TkPtPullEta";
1656 h2_TkPtPull_[0]=iBooker.
book2D(histname+
"All",
" Reco Track Pt pull: All ",etaBin2,etaMin, etaMax,100, -10., 10.);
1658 histname=
"PtRecVsPtSim";
1659 h2_PtRecVsPtSim_[0]=iBooker.
book2D(histname+
"All",
"Pt Rec vs Pt sim: All ", etBin,etMin,etMax,etBin,etMin, etMax);
1660 h2_PtRecVsPtSim_[1]=iBooker.
book2D(histname+
"Barrel",
"Pt Rec vs Pt sim: Barrel ", etBin,etMin,etMax,etBin,etMin, etMax);
1661 h2_PtRecVsPtSim_[2]=iBooker.
book2D(histname+
"Endcap",
"Pt Rec vs Pt sim: Endcap ", etBin,etMin,etMax,etBin,etMin, etMax);
1662 histname=
"PtRecVsPtSimMixProv";
1663 h2_PtRecVsPtSimMixProv_ =iBooker.
book2D(histname+
"All",
"Pt Rec vs Pt sim All for mix with general tracks ", etBin,etMin,etMax,etBin,etMin, etMax);
1667 histname=
"eBcOverTkPout";
1668 hBCEnergyOverTrackPout_[0] = iBooker.
book1D(histname+
"All",
"Matrching BC E/P_out: all Ecal ",100, 0., 5.);
1669 hBCEnergyOverTrackPout_[1] = iBooker.
book1D(histname+
"Barrel",
"Matrching BC E/P_out: Barrel ",100, 0., 5.);
1670 hBCEnergyOverTrackPout_[2] = iBooker.
book1D(histname+
"Endcap",
"Matrching BC E/P_out: Endcap ",100, 0., 5.);
1674 h_OIinnermostHitR_ = iBooker.
book1D(
"OIinnermostHitR",
" R innermost hit for OI tracks ",50, 0., 25);
1675 h_IOinnermostHitR_ = iBooker.
book1D(
"IOinnermostHitR",
" R innermost hit for IO tracks ",50, 0., 25);
1678 h_trkProv_[0] = iBooker.
book1D(
"allTrkProv",
" Track pair provenance ",4, 0., 4.);
1679 h_trkProv_[1] = iBooker.
book1D(
"assTrkProv",
" Track pair provenance ",4, 0., 4.);
1682 h_convAlgo_ = iBooker.
book1D(
"allConvAlgo",
" Conv Algo ",5, -0.5, 4.5);
1683 h_convQuality_ = iBooker.
book1D(
"allConvQuality",
"Conv quality ",11,-0.5,11.);
1687 histname =
"h_RecoConvTwoTracksEta";
1688 h_RecoConvTwoTracks_[0] = iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
1689 histname =
"h_RecoConvTwoTracksPhi";
1690 h_RecoConvTwoTracks_[1] = iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
1691 histname =
"h_RecoConvTwoTracksR";
1692 h_RecoConvTwoTracks_[2] = iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated R",rBin,rMin, rMax);
1693 histname =
"h_RecoConvTwoTracksZ";
1694 h_RecoConvTwoTracks_[3] = iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Z",zBin,zMin, zMax);
1695 histname =
"h_RecoConvTwoTracksEt";
1696 h_RecoConvTwoTracks_[4] = iBooker.
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Et",etBin,etMin, etMax);
1698 histname =
"h_RecoConvTwoMTracksEta";
1699 h_RecoConvTwoMTracks_[0] = iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated #eta",etaBin2,etaMin, etaMax);
1700 histname =
"h_RecoConvTwoMTracksPhi";
1701 h_RecoConvTwoMTracks_[1] = iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated #phi",phiBin,phiMin, phiMax);
1702 histname =
"h_RecoConvTwoMTracksR";
1703 h_RecoConvTwoMTracks_[2] = iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated R",rBin,rMin, rMax);
1704 histname =
"h_RecoConvTwoMTracksZ";
1705 h_RecoConvTwoMTracks_[3] = iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Z",zBin,zMin, zMax);
1706 histname =
"h_RecoConvTwoMTracksEt";
1707 h_RecoConvTwoMTracks_[4] = iBooker.
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Et",etBin,etMin, etMax);
1717 edm::LogInfo(
"ConvertedPhotonProducer") <<
" get magnetic field" <<
"\n";
1727 thePhotonMCTruthFinder_.reset();
1734 thePhotonMCTruthFinder_->clear();
1735 using namespace edm;
1739 const float BARL = 1.4442;
1741 const float END_HI = 2.5;
1746 e.
getByLabel(
"trackAssociatorByHitsForPhotonValidation",theHitsAssociator);
1752 LogInfo(
"PhotonValidator") <<
"PhotonValidator Analyzing event number: " << e.
id() <<
" Global Counter " << nEvt_ <<
"\n";
1760 h_nRecoVtx_ ->Fill (
float(vtxH->size()));
1770 e.
getByToken(photonCollectionToken_, photonHandle);
1772 if (!photonHandle.isValid()) {
1774 <<
"Error! Can't get the Photon collection "
1781 e.
getByToken(pfCandidates_,pfCandidateHandle);
1782 if (!pfCandidateHandle.isValid()) {
1783 edm::LogError(
"PhotonValidator") <<
"Error! Can't get the product pfCandidates "<< std::endl ;
1788 if ( fName_ ==
"pfPhotonValidator") {
1789 e.
getByToken(particleBasedIso_token,phoToParticleBasedIsoMapHandle);
1790 if ( ! phoToParticleBasedIsoMapHandle.isValid()) {
1791 edm::LogInfo(
"PhotonValidator") <<
"Error! Can't get the product: valueMap photons to particle based iso " << std::endl;
1794 phoToParticleBasedIsoMap = *(phoToParticleBasedIsoMapHandle.product());
1801 e.
getByToken(conversionOITrackPr_Token_, outInTrkHandle);
1803 e.
getByToken(conversionIOTrackPr_Token_, inOutTrkHandle);
1809 h_OIinnermostHitR_ ->Fill (
sqrt( iTk->innerPosition().Perp2() ) );
1810 for (
trackingRecHit_iterator itHits=iTk->extra()->recHitsBegin(); itHits!=iTk->extra()->recHitsEnd(); ++itHits ) {
1811 if ( (*itHits)->isValid() ) {
1826 h_IOinnermostHitR_ ->Fill (
sqrt( iTk->innerPosition().Perp2() ) );
1828 for (
trackingRecHit_iterator itHits=iTk->extra()->recHitsBegin(); itHits!=iTk->extra()->recHitsEnd(); ++itHits ) {
1829 if ( (*itHits)->isValid() ) {
1841 std::vector<SimTrack> theSimTracks;
1842 std::vector<SimVertex> theSimVertices;
1857 theSimTracks.insert(theSimTracks.end(),SimTk->begin(),SimTk->end());
1858 theSimVertices.insert(theSimVertices.end(),SimVtx->begin(),SimVtx->end());
1859 std::vector<PhotonMCTruth> mcPhotons=thePhotonMCTruthFinder_->find (theSimTracks, theSimVertices);
1863 const HepMC::GenEvent *myGenEvent = hepMC->GetEvent();
1879 bool useTP= parameters_.getParameter<
bool>(
"useTP");
1890 std::vector<reco::PhotonCollection::const_iterator> StoRMatchedConvertedPhotons;
1900 OISimToReco = trackAssociator->associateSimToReco(outInTrkHandle, ElectronTPHandle);
1901 IOSimToReco = trackAssociator->associateSimToReco(inOutTrkHandle, ElectronTPHandle);
1903 OIRecoToSim = trackAssociator->associateRecoToSim(outInTrkHandle, ElectronTPHandle);
1904 IORecoToSim = trackAssociator->associateRecoToSim(inOutTrkHandle, ElectronTPHandle);
1908 vector<reco::SimToRecoCollection*> StoRCollPtrs;
1909 StoRCollPtrs.push_back(&OISimToReco);
1910 StoRCollPtrs.push_back(&IOSimToReco);
1911 vector<reco::RecoToSimCollection*> RtoSCollPtrs;
1912 RtoSCollPtrs.push_back(&OIRecoToSim);
1913 RtoSCollPtrs.push_back(&IORecoToSim);
1915 for (
int i=0;
i<2;
i++)
1917 for (
int i=0;
i<2;
i++)
1921 std::vector<reco::PhotonRef> myPhotons;
1923 for(
unsigned int iPho=0; iPho < photonHandle->size(); iPho++) {
1926 if ( fabs(phoRef->eta()) > 2.5 )
continue;
1927 myPhotons.push_back(phoRef);
1930 std::sort(myPhotons.begin(), myPhotons.end(),
sortPhotons());
1932 if ( myPhotons.size() >=2 ) {
1933 if ( myPhotons[0]->et() > 40 && myPhotons[1]->et() > 25 ) {
1938 float gamgamMass2 = p12.Dot(p12);
1939 float gamgamMass2_regr1 = p12_regr1.Dot(p12_regr1);
1940 float gamgamMass2_regr2 = p12_regr2.Dot(p12_regr2);
1943 if ( gamgamMass2 > 0 ) {
1945 h_gamgamMass_[0][0] ->
Fill(
sqrt( gamgamMass2 ));
1946 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
1947 h_gamgamMass_[0][1] ->
Fill(
sqrt( gamgamMass2 ));
1948 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
1949 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
1950 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
1951 h_gamgamMass_[0][2] ->
Fill(
sqrt( gamgamMass2 ));
1953 if ( myPhotons[0]->r9() > 0.94 && myPhotons[1]->r9() > 0.94 ) {
1954 h_gamgamMass_[1][0] ->
Fill(
sqrt( gamgamMass2 ));
1955 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
1956 h_gamgamMass_[1][1] ->
Fill(
sqrt( gamgamMass2 ));
1957 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
1958 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
1959 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
1960 h_gamgamMass_[1][2] ->
Fill(
sqrt( gamgamMass2 ));
1967 if ( chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005 ) {
1968 h_gamgamMass_[2][0] ->
Fill(
sqrt( gamgamMass2 ));
1969 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
1970 h_gamgamMass_[2][1] ->
Fill(
sqrt( gamgamMass2 ));
1972 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
1973 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
1974 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
1975 h_gamgamMass_[2][2] ->
Fill(
sqrt( gamgamMass2 )); {
1982 if ( chi2Prob1 > 0.0005 ) {
1983 h_gamgamMass_[2][0] ->
Fill(
sqrt( gamgamMass2 ));
1984 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
1985 h_gamgamMass_[2][1] ->
Fill(
sqrt( gamgamMass2 ));
1987 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
1988 h_gamgamMass_[2][2] ->
Fill(
sqrt( gamgamMass2 ));
1995 if ( chi2Prob1 > 0.0005 ) {
1996 h_gamgamMass_[2][0] ->
Fill(
sqrt( gamgamMass2 ));
1997 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
1998 h_gamgamMass_[2][1] ->
Fill(
sqrt( gamgamMass2 ));
2000 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
2001 h_gamgamMass_[2][2] ->
Fill(
sqrt( gamgamMass2 ));
2009 if ( gamgamMass2_regr1 > 0 ) {
2011 h_gamgamMassRegr1_[0][0] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2012 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
2013 h_gamgamMassRegr1_[0][1] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2014 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2015 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2016 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2017 h_gamgamMassRegr1_[0][2] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2019 if ( myPhotons[0]->r9() > 0.94 && myPhotons[1]->r9() > 0.94 ) {
2020 h_gamgamMassRegr1_[1][0] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2021 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
2022 h_gamgamMassRegr1_[1][1] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2023 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2024 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2025 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2026 h_gamgamMassRegr1_[1][2] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2035 if ( chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005 ) {
2036 h_gamgamMassRegr1_[2][0] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2037 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2038 h_gamgamMassRegr1_[2][1] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2040 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2041 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2042 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2043 h_gamgamMassRegr1_[2][2] ->
Fill(
sqrt( gamgamMass2_regr1 )); {
2050 if ( chi2Prob1 > 0.0005 ) {
2051 h_gamgamMassRegr1_[2][0] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2052 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2053 h_gamgamMassRegr1_[2][1] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2055 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
2056 h_gamgamMassRegr1_[2][2] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2063 if ( chi2Prob1 > 0.0005 ) {
2064 h_gamgamMassRegr1_[2][0] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2065 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2066 h_gamgamMassRegr1_[2][1] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2068 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
2069 h_gamgamMassRegr1_[2][2] ->
Fill(
sqrt( gamgamMass2_regr1 ));
2078 if ( gamgamMass2_regr2 > 0 ) {
2080 h_gamgamMassRegr2_[0][0] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2081 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
2082 h_gamgamMassRegr2_[0][1] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2083 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2084 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2085 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2086 h_gamgamMassRegr2_[0][2] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2088 if ( myPhotons[0]->r9() > 0.94 && myPhotons[1]->r9() > 0.94 ) {
2089 h_gamgamMassRegr2_[1][0] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2090 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() )
2091 h_gamgamMassRegr2_[1][1] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2092 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2093 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2094 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2095 h_gamgamMassRegr2_[1][2] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2104 if ( chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005 ) {
2105 h_gamgamMassRegr2_[2][0] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2106 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2107 h_gamgamMassRegr2_[2][1] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2109 if ( ( myPhotons[0]->isEE() && myPhotons[1]->isEE() ) ||
2110 ( myPhotons[0]->isEE() && myPhotons[1]->isEB() ) ||
2111 ( myPhotons[0]->isEB() && myPhotons[1]->isEE() ) )
2112 h_gamgamMassRegr2_[2][2] ->
Fill(
sqrt( gamgamMass2_regr2 )); {
2119 if ( chi2Prob1 > 0.0005 ) {
2120 h_gamgamMassRegr2_[2][0] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2121 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2122 h_gamgamMassRegr2_[2][1] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2124 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
2125 h_gamgamMassRegr2_[2][2] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2132 if ( chi2Prob1 > 0.0005 ) {
2133 h_gamgamMassRegr2_[2][0] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2134 if ( myPhotons[0]->isEB() && myPhotons[1]->isEB() ) {
2135 h_gamgamMassRegr2_[2][1] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2137 if ( myPhotons[0]->isEE() || myPhotons[1]->isEE() ) {
2138 h_gamgamMassRegr2_[2][2] ->
Fill(
sqrt( gamgamMass2_regr2 ));
2161 for ( std::vector<PhotonMCTruth>::const_iterator mcPho=mcPhotons.begin(); mcPho !=mcPhotons.end(); mcPho++) {
2162 if ( (*mcPho).fourMomentum().et() < minPhoEtCut_ )
continue;
2164 for ( HepMC::GenEvent::particle_const_iterator mcIter=myGenEvent->particles_begin(); mcIter != myGenEvent->particles_end(); mcIter++ ) {
2165 if ( (*mcIter)->pdg_id() != 22 )
continue;
2166 bool isTheSame=
false;
2168 if ( (*mcIter)->production_vertex() ) {
2169 if ( (*mcIter)->production_vertex()->particles_begin(
HepMC::parents) !=
2171 mother = *((*mcIter)->production_vertex()->particles_begin(
HepMC::parents));
2177 float mcPhi= (*mcPho).fourMomentum().phi();
2178 mcPhi_= phiNormalization(mcPhi);
2179 mcEta_= (*mcPho).fourMomentum().pseudoRapidity();
2180 mcEta_ = etaTransformation(mcEta_, (*mcPho).primaryVertex().z() );
2181 mcConvR_= (*mcPho).vertex().perp();
2182 mcConvX_= (*mcPho).vertex().x();
2183 mcConvY_= (*mcPho).vertex().y();
2184 mcConvZ_= (*mcPho).vertex().z();
2185 mcConvEta_= (*mcPho).vertex().eta();
2186 mcConvPhi_= (*mcPho).vertex().phi();
2189 if ( fabs(mcEta_) > END_HI )
continue;
2194 || (mother != 0 && mother->pdg_id() == 22)
2195 || (mother != 0 && mother->pdg_id() == 25)
2196 || (mother != 0 && mother->pdg_id() == 35) )
2198 double dPt = fabs((*mcIter)->momentum().perp() - (*mcPho).fourMomentum().et());
2199 float phiMother=(*mcIter)->momentum().phi();
2200 double dPhi = phiNormalization(phiMother) - mcPhi_ ;
2201 double dEta = fabs( (*mcIter)->momentum().eta() - (*mcPho).fourMomentum().pseudoRapidity() );
2203 if ( dEta <=0.0001 && dPhi <=0.0001 && dPt <=0.0001)
2207 if ( ! isTheSame )
continue;
2210 if ( ! isRunCentrally_ ) {
2211 h_SimPhoMotherEt_[0]->Fill( (*mcPho).motherMomentum().et() );
2212 h_SimPhoMotherEta_[0]->Fill( (*mcPho).motherMomentum().pseudoRapidity());
2215 h_SimPho_[0]->Fill ( mcEta_);
2216 h_SimPho_[1]->Fill ( mcPhi_);
2217 h_SimPho_[2]->Fill ( (*mcPho).fourMomentum().et() );
2224 bool goodSimConversion=
false;
2225 bool visibleConversion=
false;
2226 bool visibleConversionsWithTwoSimTracks=
false;
2227 if ( (*mcPho).isAConversion() == 1 ) {
2229 h_AllSimConv_[0]->Fill( mcEta_ ) ;
2230 h_AllSimConv_[1]->Fill( mcPhi_ );
2231 h_AllSimConv_[2]->Fill( mcConvR_ );
2232 h_AllSimConv_[3]->Fill( mcConvZ_ );
2233 h_AllSimConv_[4]->Fill( (*mcPho).fourMomentum().et());
2235 if ( ! isRunCentrally_ ) {
2236 if ( mcConvR_ <51) h_SimConvEtaPix_[0]->Fill( mcEta_ ) ;
2239 if ( ( fabs(mcEta_) <= BARL && mcConvR_ <85 ) ||
2240 ( fabs(mcEta_) > BARL && fabs(mcEta_) <=END_HI && fabs( (*mcPho).vertex().z() ) < 210 ) ) visibleConversion=
true;
2247 if ( fabs( tp->vx() - (*mcPho).vertex().x() ) < 0.001 &&
2248 fabs( tp->vy() - (*mcPho).vertex().y() ) < 0.001 &&
2249 fabs( tp->vz() - (*mcPho).vertex().z() ) < 0.001) {
2251 theConvTP_.push_back( tp );
2254 if ( theConvTP_.size() == 2 ) visibleConversionsWithTwoSimTracks=
true;
2255 goodSimConversion=
false;
2257 if ( visibleConversion && visibleConversionsWithTwoSimTracks ) goodSimConversion=
true;
2258 if ( goodSimConversion ) {
2260 h_VisSimConv_[0]->Fill( mcEta_ ) ;
2261 h_VisSimConv_[1]->Fill( mcPhi_ );
2262 h_VisSimConv_[2]->Fill( mcConvR_ );
2263 h_VisSimConv_[3]->Fill( mcConvZ_ );
2264 h_VisSimConv_[4]->Fill( (*mcPho).fourMomentum().et());
2268 if ( ! isRunCentrally_ ) {
2270 h_simTkPt_ ->
Fill ( (*iTrk)->pt() );
2271 h_simTkEta_ ->
Fill ( (*iTrk)->eta() );
2281 float minDelta=10000.;
2282 std::vector<reco::PhotonRef> thePhotons;
2287 for(
unsigned int iPho=0; iPho < photonHandle->size(); iPho++) {
2289 thePhotons.push_back(aPho);
2290 float phiPho=aPho->phi();
2291 float etaPho=aPho->eta();
2294 if ( deltaPhi >
pi ) deltaPhi -= twopi;
2295 if ( deltaPhi < -
pi) deltaPhi += twopi;
2296 deltaPhi=
pow(deltaPhi,2);
2297 deltaEta=
pow(deltaEta,2);
2299 if ( delta<0.1 && delta < minDelta ) {
2306 if ( iMatch>-1 ) matched=
true;
2310 if ( ! isRunCentrally_ ) {
2311 h_SimPhoMotherEt_[1]->Fill( (*mcPho).motherMomentum().et() );
2312 h_SimPhoMotherEta_[1]->Fill( (*mcPho).motherMomentum().pseudoRapidity());
2314 h_MatchedSimPho_[0]->Fill( mcEta_ ) ;
2315 h_MatchedSimPho_[1]->Fill( mcPhi_ );
2316 h_MatchedSimPho_[2]->Fill( (*mcPho).fourMomentum().et());
2323 if ( ! matched)
continue;
2327 bool phoIsInBarrel=
false;
2328 bool phoIsInEndcap=
false;
2329 bool phoIsInEndcapP=
false;
2330 bool phoIsInEndcapM=
false;
2334 if ( fabs(matchingPho->superCluster()->position().eta() ) < 1.479 ) {
2338 if ( matchingPho->superCluster()->position().eta() > 0) phoIsInEndcapP=
true;
2339 if ( matchingPho->superCluster()->position().eta() < 0) phoIsInEndcapM=
true;
2344 if ( phoIsInBarrel ) {
2346 e.
getByToken(barrelEcalHits_, ecalRecHitHandle);
2347 if (!ecalRecHitHandle.
isValid()) {
2349 labelsForToken(barrelEcalHits_, l);
2351 <<
"Error! Can't get the product "
2356 }
else if ( phoIsInEndcap ) {
2359 e.
getByToken(endcapEcalHits_, ecalRecHitHandle);
2360 if (!ecalRecHitHandle.
isValid()) {
2362 labelsForToken(barrelEcalHits_, l);
2364 <<
"Error! Can't get the product "
2373 float photonE = matchingPho->energy();
2374 float sigmaEoE = matchingPho->getCorrectedEnergyError(matchingPho->getCandidateP4type())/matchingPho->energy();
2376 float photonEt= matchingPho->pt();
2379 float r9 = matchingPho->r9();
2381 float r1 = matchingPho->r1x5();
2382 float r2 = matchingPho->r2x5();
2383 float sigmaIetaIeta = matchingPho->sigmaIetaIeta();
2385 float hOverE = matchingPho->hadronicOverEm();
2386 float newhOverE = matchingPho->hadTowOverEm();
2387 float ecalIso = matchingPho->ecalRecHitSumEtConeDR04();
2388 float hcalIso = matchingPho->hcalTowerSumEtConeDR04();
2389 float newhcalIso = matchingPho->hcalTowerSumEtBcConeDR04();
2390 float trkIso = matchingPho->trkSumPtSolidConeDR04();
2391 float nIsoTrk = matchingPho->nTrkSolidConeDR04();
2393 float chargedHadIso = matchingPho->chargedHadronIso();
2394 float neutralHadIso = matchingPho->neutralHadronIso();
2395 float photonIso = matchingPho->photonIso();
2396 float etOutsideMustache = matchingPho->etOutsideMustache();
2397 int nClusterOutsideMustache = matchingPho->nClusterOutsideMustache();
2398 float pfMVA = matchingPho->pfMVA();
2404 std::vector< std::pair<DetId, float> >::const_iterator rhIt;
2405 bool atLeastOneDeadChannel=
false;
2406 for(
reco::CaloCluster_iterator bcIt = matchingPho->superCluster()->clustersBegin();bcIt != matchingPho->superCluster()->clustersEnd(); ++bcIt) {
2407 for(rhIt = (*bcIt)->hitsAndFractions().begin();rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
2410 if (rhIt->first == (*it).id() ) {
2411 if ( (*it).recoFlag() == 9 ) {
2412 atLeastOneDeadChannel=
true;
2420 if ( atLeastOneDeadChannel ) {
2421 h_MatchedSimPhoBadCh_[0]->Fill( mcEta_ ) ;
2422 h_MatchedSimPhoBadCh_[1]->Fill( mcPhi_ );
2423 h_MatchedSimPhoBadCh_[2]->Fill( (*mcPho).fourMomentum().et());
2427 if ( phoIsInBarrel )
2428 h_phoPixSeedSize_[0] ->
Fill( matchingPho->electronPixelSeeds().size());
2430 h_phoPixSeedSize_[1] ->
Fill( matchingPho->electronPixelSeeds().size());
2432 h_scEta_[
type]->Fill( matchingPho->superCluster()->eta() );
2433 h_scPhi_[
type]->Fill( matchingPho->superCluster()->phi() );
2434 if ( ! isRunCentrally_ ) {
2435 h_scEtaWidth_[
type]->Fill( matchingPho->superCluster()->etaWidth() );
2436 h_scPhiWidth_[
type]->Fill( matchingPho->superCluster()->phiWidth() );
2438 h_scE_[
type][0]->Fill( matchingPho->superCluster()->energy() );
2439 h_scEt_[
type][0]->Fill( matchingPho->superCluster()->energy()/cosh( matchingPho->superCluster()->eta()) );
2440 if ( phoIsInEndcap ) h_psE_->Fill( matchingPho->superCluster()->preshowerEnergy() ) ;
2442 h_r9_[
type][0]->Fill( r9 );
2444 h_r1_[
type][0]->Fill( r1 );
2446 h_r2_[
type][0]->Fill( r2 );
2448 h_sigmaIetaIeta_[
type][0]->Fill( sigmaIetaIeta );
2450 h_hOverE_[
type][0]->Fill( hOverE );
2451 p_r9VsEta_[0] ->
Fill (mcEta_, r9);
2453 if ( ! isRunCentrally_ ) {
2454 h2_r9VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), r9);
2455 h2_r1VsEta_[0] ->
Fill (mcEta_, r1);
2456 h2_r1VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(),
r1);
2457 h2_r2VsEta_[0] ->
Fill (mcEta_, r2);
2458 h2_r2VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(),
r2);
2459 h2_sigmaIetaIetaVsEta_[0] ->
Fill (mcEta_, sigmaIetaIeta );
2460 h2_sigmaIetaIetaVsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), sigmaIetaIeta);
2461 h2_hOverEVsEta_[0] ->
Fill (mcEta_, hOverE );
2462 h2_hOverEVsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), hOverE);
2464 p_hOverEVsEta_[0] ->
Fill (mcEta_, hOverE );
2465 p_hOverEVsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), hOverE);
2467 h_newhOverE_[
type][0]->Fill( newhOverE );
2468 p_newhOverEVsEta_[0] ->
Fill (mcEta_, newhOverE );
2469 p_newhOverEVsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), newhOverE);
2474 h_ecalRecHitSumEtConeDR04_[
type][0]->Fill( ecalIso );
2475 if ( ! isRunCentrally_ ) {
2476 h2_ecalRecHitSumEtConeDR04VsEta_[0] ->
Fill (mcEta_, ecalIso );
2477 h2_ecalRecHitSumEtConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2478 h2_hcalTowerSumEtConeDR04VsEta_[0] ->
Fill (mcEta_, hcalIso );
2479 h2_hcalTowerSumEtConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2482 p_ecalRecHitSumEtConeDR04VsEta_[0] ->
Fill (mcEta_, ecalIso );
2483 if ( ! isRunCentrally_ ) p_ecalRecHitSumEtConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2485 h_hcalTowerSumEtConeDR04_[
type][0]->Fill( hcalIso );
2486 p_hcalTowerSumEtConeDR04VsEta_[0] ->
Fill (mcEta_, hcalIso );
2487 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2489 if ( ! isRunCentrally_ ) h_hcalTowerBcSumEtConeDR04_[
type][0]->Fill( newhcalIso );
2490 p_hcalTowerBcSumEtConeDR04VsEta_[0] ->
Fill (mcEta_, newhcalIso );
2491 if ( ! isRunCentrally_ ) p_hcalTowerBcSumEtConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), newhcalIso);
2493 h_isoTrkSolidConeDR04_[
type][0]->Fill( trkIso );
2494 h_nTrkSolidConeDR04_[
type][0]->Fill( nIsoTrk );
2496 if ( ! isRunCentrally_ ) {
2497 h2_isoTrkSolidConeDR04VsEta_[0] ->
Fill (mcEta_, trkIso );
2498 h2_isoTrkSolidConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), trkIso);
2499 h2_nTrkSolidConeDR04VsEta_[0] ->
Fill (mcEta_, nIsoTrk );
2500 h2_nTrkSolidConeDR04VsEt_[0] ->
Fill ((*mcPho).fourMomentum().et(), nIsoTrk);
2505 h_chHadIso_[0]->
Fill (chargedHadIso);
2506 h_nHadIso_[0]->
Fill (neutralHadIso);
2507 h_phoIso_[0]->
Fill (photonIso);
2508 h_nCluOutsideMustache_[0]->Fill(
float(nClusterOutsideMustache));
2509 h_etOutsideMustache_[0]->Fill(etOutsideMustache);
2510 h_pfMva_[0]->Fill(pfMVA);
2512 h_phoEta_[
type]->Fill( matchingPho->eta() );
2513 h_phoPhi_[
type]->Fill( matchingPho->phi() );
2514 h_phoDEta_[0]->Fill ( matchingPho->eta() - (*mcPho).fourMomentum().eta() );
2515 h_phoDPhi_[0]->Fill ( matchingPho->phi() - mcPhi_ );
2516 h_phoE_[
type][0]->Fill( photonE );
2517 h_phoEt_[
type][0]->Fill( photonEt);
2518 h_nConv_[0][0]->Fill(
float( matchingPho->conversions().size()));
2519 h_nConv_[1][0]->Fill(
float( matchingPho->conversionsOneLeg().size()));
2522 h_phoERes_[0][0]->Fill( photonE / (*mcPho).fourMomentum().e() );
2523 h_phoSigmaEoE_[0][0] ->
Fill (sigmaEoE);
2524 h_phoEResRegr1_[0][0]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2525 h_phoEResRegr2_[0][0]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2527 p_eResVsEta_[0]->Fill (mcEta_, photonE/(*mcPho).fourMomentum().e() ) ;
2528 p_sigmaEoEVsEta_[0] ->Fill(mcEta_,sigmaEoE);
2529 p_eResVsEt_[0][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2533 if ( ! isRunCentrally_ ) h2_eResVsEta_[0]->Fill (mcEta_, photonE/(*mcPho).fourMomentum().e() ) ;
2534 if ( ! isRunCentrally_ ) h2_eResVsEt_[0][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2535 if ( ! isRunCentrally_ ) h2_eResVsR9_[0]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2536 if ( ! isRunCentrally_ ) h2_sceResVsR9_[0]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2537 if ( ! isRunCentrally_ ) p_eResVsR9_[0]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2538 if ( ! isRunCentrally_ ) p_sceResVsR9_[0]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2540 if ( (*mcPho).isAConversion() == 0 ) {
2541 if ( ! isRunCentrally_ ) {
2542 h2_eResVsEta_[1]->Fill (mcEta_, photonE/ (*mcPho).fourMomentum().e() ) ;
2543 h2_r9VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), r9);
2545 h2_r1VsEta_[1] ->
Fill (mcEta_, r1);
2546 h2_r1VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(),
r1);
2548 h2_r2VsEta_[1] ->
Fill (mcEta_, r2);
2549 h2_r2VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(),
r2);
2551 h2_sigmaIetaIetaVsEta_[1] ->
Fill (mcEta_, sigmaIetaIeta );
2552 h2_sigmaIetaIetaVsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), sigmaIetaIeta);
2554 h2_hOverEVsEta_[1] ->
Fill (mcEta_, hOverE );
2555 h2_hOverEVsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), hOverE);
2558 if ( ! isRunCentrally_ ) {
2559 h2_ecalRecHitSumEtConeDR04VsEta_[1] ->
Fill (mcEta_, ecalIso );
2560 h2_hcalTowerSumEtConeDR04VsEta_[1] ->
Fill (mcEta_, hcalIso );
2561 h2_isoTrkSolidConeDR04VsEta_[1] ->
Fill (mcEta_, trkIso );
2562 h2_isoTrkSolidConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), trkIso);
2563 h2_nTrkSolidConeDR04VsEta_[1] ->
Fill (mcEta_, nIsoTrk );
2564 h2_nTrkSolidConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), nIsoTrk);
2567 p_ecalRecHitSumEtConeDR04VsEta_[1] ->
Fill (mcEta_, ecalIso );
2568 if ( ! isRunCentrally_ ) p_hcalTowerSumEtConeDR04VsEta_[1] ->
Fill (mcEta_, hcalIso );
2573 if ( photonE/(*mcPho).fourMomentum().e() < 0.3 && photonE/(*mcPho).fourMomentum().e() > 0.1 ) {
2578 if ( (r9>0.94 && phoIsInBarrel) || (r9>0.95 && phoIsInEndcap) ) {
2579 h_phoERes_[1][0]->Fill( photonE / (*mcPho).fourMomentum().e() );
2580 h_phoSigmaEoE_[1][0] ->
Fill (sigmaEoE);
2581 h_phoEResRegr1_[1][0]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2582 h_phoEResRegr2_[1][0]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2583 if ( ! isRunCentrally_ ) h2_eResVsEt_[0][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2584 p_eResVsEt_[0][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2585 p_eResVsEta_[1]->Fill (mcEta_,photonE/ (*mcPho).fourMomentum().e() ) ;
2586 p_r9VsEta_[1] ->
Fill (mcEta_, r9);
2587 p_sigmaEoEVsEta_[1] ->Fill(mcEta_,sigmaEoE);
2590 }
else if ( ( r9 <= 0.94&& phoIsInBarrel) || ( r9 <= 0.95&& phoIsInEndcap) ) {
2591 h_phoERes_[2][0]->Fill(photonE / (*mcPho).fourMomentum().e() );
2592 h_phoSigmaEoE_[2][0] ->
Fill (sigmaEoE);
2593 h_phoEResRegr1_[2][0]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2594 h_phoEResRegr2_[2][0]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2595 p_eResVsEt_[0][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2596 p_eResVsEta_[2]->Fill (mcEta_,photonE/ (*mcPho).fourMomentum().e() ) ;
2597 p_r9VsEta_[2] ->
Fill (mcEta_, r9);
2598 p_sigmaEoEVsEta_[2] ->Fill(mcEta_, sigmaEoE);
2600 if ( ! isRunCentrally_ ) {
2601 h2_eResVsEt_[0][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2602 h_EtR9Less093_[0][0] ->Fill ( photonEt );
2607 if ( phoIsInBarrel ) {
2608 h_scE_[
type][1]->Fill( matchingPho->superCluster()->energy() );
2609 h_scEt_[
type][1]->Fill( matchingPho->superCluster()->energy()/cosh( matchingPho->superCluster()->eta()) );
2610 h_r9_[
type][1]->Fill( r9 );
2611 h_r1_[
type][1]->Fill( r1 );
2612 h_r2_[
type][1]->Fill( r2 );
2613 h_sigmaIetaIeta_[
type][1]->Fill( sigmaIetaIeta );
2614 h_hOverE_[
type][1]->Fill( hOverE );
2615 h_newhOverE_[
type][1]->Fill( newhOverE );
2616 h_ecalRecHitSumEtConeDR04_[
type][1]->Fill( ecalIso );
2617 p_ecalRecHitSumEtConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2618 h_hcalTowerSumEtConeDR04_[
type][1]->Fill( hcalIso );
2619 p_hcalTowerSumEtConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2620 h_hcalTowerBcSumEtConeDR04_[
type][1]->Fill( newhcalIso );
2621 p_hcalTowerBcSumEtConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), newhcalIso);
2622 h_isoTrkSolidConeDR04_[
type][1]->Fill( trkIso );
2623 h_nTrkSolidConeDR04_[
type][1]->Fill( nIsoTrk );
2624 h_chHadIso_[1]->
Fill (chargedHadIso);
2625 h_nHadIso_[1]->
Fill (neutralHadIso);
2626 h_phoIso_[1]->
Fill (photonIso);
2627 h_nCluOutsideMustache_[1]->Fill(
float(nClusterOutsideMustache));
2628 h_etOutsideMustache_[1]->Fill(etOutsideMustache);
2629 h_pfMva_[1]->Fill(pfMVA);
2630 h_phoE_[
type][1]->Fill( photonE );
2631 h_phoEt_[
type][1]->Fill( photonEt );
2632 h_nConv_[
type][1]->Fill(
float( matchingPho->conversions().size()));
2633 h_nConv_[1][1]->Fill(
float( matchingPho->conversionsOneLeg().size()));
2634 h_phoERes_[0][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
2635 h_phoSigmaEoE_[0][1] ->
Fill (sigmaEoE);
2636 h_phoEResRegr1_[0][1]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2637 h_phoEResRegr2_[0][1]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2638 p_eResVsR9_[1]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2639 p_sceResVsR9_[1]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2640 if ( ! isRunCentrally_ ) {
2641 h2_eResVsR9_[1]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2642 h2_sceResVsR9_[1]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2643 h2_ecalRecHitSumEtConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2644 h2_hcalTowerSumEtConeDR04VsEt_[1] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2645 h2_eResVsEt_[1][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2647 p_eResVsEt_[1][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2648 p_eResVsNVtx_[1][0]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2649 p_sigmaEoEVsEt_[1][0] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2650 p_sigmaEoEVsNVtx_[1][0]->Fill (
float(vtxH->size()), sigmaEoE);
2653 h_phoERes_[1][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
2654 h_phoSigmaEoE_[1][1] ->
Fill (sigmaEoE);
2655 h_phoEResRegr1_[1][1]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2656 h_phoEResRegr2_[1][1]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2657 if ( ! isRunCentrally_ ) h2_eResVsEt_[1][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2658 p_eResVsEt_[1][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2659 p_eResVsNVtx_[1][1]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2660 p_sigmaEoEVsEt_[1][1] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2661 p_sigmaEoEVsNVtx_[1][1]->Fill (
float(vtxH->size()), sigmaEoE);
2664 h_phoERes_[2][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
2665 h_phoSigmaEoE_[2][1] ->
Fill (sigmaEoE);
2666 h_phoEResRegr1_[2][1]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2667 h_phoEResRegr2_[2][1]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2668 p_eResVsEt_[1][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2669 p_eResVsNVtx_[1][2]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2670 p_sigmaEoEVsEt_[1][2] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2671 p_sigmaEoEVsNVtx_[1][2]->Fill (
float(vtxH->size()), sigmaEoE);
2672 if ( ! isRunCentrally_ ) {
2673 h2_eResVsEt_[1][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2674 h_EtR9Less093_[0][1] ->Fill ( photonEt );
2678 if ( phoIsInEndcap ) {
2679 h_scE_[
type][2]->Fill( matchingPho->superCluster()->energy() );
2680 h_scEt_[
type][2]->Fill( matchingPho->superCluster()->energy()/cosh( matchingPho->superCluster()->eta()) );
2681 h_r9_[
type][2]->Fill( r9 );
2682 h_r1_[
type][2]->Fill( r1 );
2683 h_r2_[
type][2]->Fill( r2 );
2684 h_sigmaIetaIeta_[
type][2]->Fill( sigmaIetaIeta );
2685 h_hOverE_[
type][2]->Fill( hOverE );
2686 h_newhOverE_[
type][2]->Fill( newhOverE );
2687 h_ecalRecHitSumEtConeDR04_[
type][2]->Fill( ecalIso );
2688 p_ecalRecHitSumEtConeDR04VsEt_[2] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2689 h_hcalTowerSumEtConeDR04_[
type][2]->Fill( hcalIso );
2690 p_hcalTowerSumEtConeDR04VsEt_[2] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2691 h_hcalTowerBcSumEtConeDR04_[
type][2]->Fill( newhcalIso );
2692 p_hcalTowerBcSumEtConeDR04VsEt_[2] ->
Fill ((*mcPho).fourMomentum().et(), newhcalIso);
2693 h_isoTrkSolidConeDR04_[
type][2]->Fill( trkIso );
2694 h_nTrkSolidConeDR04_[
type][2]->Fill( nIsoTrk );
2695 h_chHadIso_[2]->
Fill (chargedHadIso);
2696 h_nHadIso_[2]->
Fill (neutralHadIso);
2697 h_phoIso_[2]->
Fill (photonIso);
2698 h_nCluOutsideMustache_[2]->Fill(
float(nClusterOutsideMustache));
2699 h_etOutsideMustache_[2]->Fill(etOutsideMustache);
2700 h_pfMva_[2]->Fill(pfMVA);
2701 h_phoE_[
type][2]->Fill( photonE );
2702 h_phoEt_[
type][2]->Fill( photonEt );
2703 h_nConv_[
type][2]->Fill(
float( matchingPho->conversions().size()));
2704 h_nConv_[1][2]->Fill(
float( matchingPho->conversionsOneLeg().size()));
2705 h_phoERes_[0][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2706 h_phoSigmaEoE_[0][2] ->
Fill (sigmaEoE);
2707 h_phoEResRegr1_[0][2]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2708 h_phoEResRegr2_[0][2]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2709 p_eResVsR9_[2]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2710 p_sceResVsR9_[2]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2711 if ( ! isRunCentrally_ ) {
2712 h2_eResVsR9_[2]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2713 h2_sceResVsR9_[2]->Fill (r9, matchingPho->superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2714 h2_ecalRecHitSumEtConeDR04VsEt_[2] ->
Fill ((*mcPho).fourMomentum().et(), ecalIso);
2715 h2_hcalTowerSumEtConeDR04VsEt_[2] ->
Fill ((*mcPho).fourMomentum().et(), hcalIso);
2716 h2_eResVsEt_[2][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2719 p_eResVsEt_[2][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2720 p_eResVsNVtx_[2][0]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2721 p_sigmaEoEVsEt_[2][0] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2722 p_sigmaEoEVsNVtx_[2][0]->Fill (
float(vtxH->size()), sigmaEoE);
2726 h_phoERes_[1][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2727 h_phoSigmaEoE_[1][2] ->
Fill (sigmaEoE);
2728 h_phoEResRegr1_[1][2]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2729 h_phoEResRegr2_[1][2]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2730 if ( ! isRunCentrally_ ) h2_eResVsEt_[2][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2731 p_eResVsEt_[2][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2732 p_eResVsNVtx_[2][1]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2733 p_sigmaEoEVsEt_[2][1] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2734 p_sigmaEoEVsNVtx_[2][1]->Fill (
float(vtxH->size()), sigmaEoE);
2737 h_phoERes_[2][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2738 h_phoSigmaEoE_[2][2] ->
Fill (sigmaEoE);
2739 h_phoEResRegr1_[2][2]->Fill( photonERegr1 / (*mcPho).fourMomentum().e() );
2740 h_phoEResRegr2_[2][2]->Fill( photonERegr2 / (*mcPho).fourMomentum().e() );
2741 p_eResVsEt_[2][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2742 p_eResVsNVtx_[2][2]->Fill (
float(vtxH->size()), photonE/(*mcPho).fourMomentum().e() ) ;
2743 p_sigmaEoEVsEt_[2][2] ->Fill ((*mcPho).fourMomentum().et(),sigmaEoE);
2744 p_sigmaEoEVsNVtx_[2][2]->Fill (
float(vtxH->size()), sigmaEoE);
2746 if ( ! isRunCentrally_ ) {
2747 h2_eResVsEt_[2][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2748 h_EtR9Less093_[0][2] ->Fill ( photonEt );
2754 if ( fName_ ==
"pfPhotonValidator") {
2756 float SumPtIsoValCh = 0.;
2757 float SumPtIsoValNh = 0.;
2758 float SumPtIsoValPh = 0.;
2760 float SumPtIsoValCleanCh = 0.;
2761 float SumPtIsoValCleanNh = 0.;
2762 float SumPtIsoValCleanPh = 0.;
2764 for(
unsigned int lCand=0; lCand < pfCandidateHandle->size(); lCand++) {
2766 float dR=
deltaR(matchingPho->eta(), matchingPho->phi(),pfCandRef->eta(), pfCandRef->phi());
2774 SumPtIsoValCh += pfCandRef->pt();
2775 h_dRPhoPFcand_ChHad_unCleaned_[0]->Fill(dR);
2777 h_dRPhoPFcand_ChHad_unCleaned_[1]->Fill(dR);
2779 h_dRPhoPFcand_ChHad_unCleaned_[2]->Fill(dR);
2782 SumPtIsoValNh += pfCandRef->pt();
2783 h_dRPhoPFcand_NeuHad_unCleaned_[0]->Fill(dR);
2785 h_dRPhoPFcand_NeuHad_unCleaned_[1]->Fill(dR);
2787 h_dRPhoPFcand_NeuHad_unCleaned_[2]->Fill(dR);
2790 SumPtIsoValPh += pfCandRef->pt();
2791 h_dRPhoPFcand_Pho_unCleaned_[0]->Fill(dR);
2793 h_dRPhoPFcand_Pho_unCleaned_[1]->Fill(dR);
2795 h_dRPhoPFcand_Pho_unCleaned_[2]->Fill(dR);
2799 for( std::vector<reco::PFCandidateRef>::const_iterator
i = phoToParticleBasedIsoMap[matchingPho].
begin();
i != phoToParticleBasedIsoMap[matchingPho].end(); ++
i ) {
2800 if ( (*
i) == pfCandRef ) {
2805 if ( skip )
continue;
2807 SumPtIsoValCleanCh += pfCandRef->pt();
2808 h_dRPhoPFcand_ChHad_Cleaned_[0]->Fill(dR);
2810 h_dRPhoPFcand_ChHad_Cleaned_[1]->Fill(dR);
2812 h_dRPhoPFcand_ChHad_Cleaned_[2]->Fill(dR);
2815 SumPtIsoValCleanNh += pfCandRef->pt();
2816 h_dRPhoPFcand_NeuHad_Cleaned_[0]->Fill(dR);
2818 h_dRPhoPFcand_NeuHad_Cleaned_[1]->Fill(dR);
2820 h_dRPhoPFcand_NeuHad_Cleaned_[2]->Fill(dR);
2823 SumPtIsoValCleanPh += pfCandRef->pt();
2824 h_dRPhoPFcand_Pho_Cleaned_[0]->Fill(dR);
2826 h_dRPhoPFcand_Pho_Cleaned_[1]->Fill(dR);
2828 h_dRPhoPFcand_Pho_Cleaned_[2]->Fill(dR);
2837 h_SumPtOverPhoPt_ChHad_Cleaned_[0]->Fill(SumPtIsoValCleanCh/matchingPho->pt());
2838 h_SumPtOverPhoPt_NeuHad_Cleaned_[0]->Fill(SumPtIsoValCleanNh/matchingPho->pt());
2839 h_SumPtOverPhoPt_Pho_Cleaned_[0]->Fill(SumPtIsoValCleanPh/matchingPho->pt());
2840 h_SumPtOverPhoPt_ChHad_unCleaned_[0]->Fill(SumPtIsoValCh/matchingPho->pt());
2841 h_SumPtOverPhoPt_NeuHad_unCleaned_[0]->Fill(SumPtIsoValNh/matchingPho->pt());
2842 h_SumPtOverPhoPt_Pho_unCleaned_[0]->Fill(SumPtIsoValPh/matchingPho->pt());
2843 if( phoIsInBarrel) {
2844 h_SumPtOverPhoPt_ChHad_Cleaned_[1]->Fill(SumPtIsoValCleanCh/matchingPho->pt());
2845 h_SumPtOverPhoPt_NeuHad_Cleaned_[1]->Fill(SumPtIsoValCleanNh/matchingPho->pt());
2846 h_SumPtOverPhoPt_Pho_Cleaned_[1]->Fill(SumPtIsoValCleanPh/matchingPho->pt());
2847 h_SumPtOverPhoPt_ChHad_unCleaned_[1]->Fill(SumPtIsoValCh/matchingPho->pt());
2848 h_SumPtOverPhoPt_NeuHad_unCleaned_[1]->Fill(SumPtIsoValNh/matchingPho->pt());
2849 h_SumPtOverPhoPt_Pho_unCleaned_[1]->Fill(SumPtIsoValPh/matchingPho->pt());
2851 h_SumPtOverPhoPt_ChHad_Cleaned_[2]->Fill(SumPtIsoValCleanCh/matchingPho->pt());
2852 h_SumPtOverPhoPt_NeuHad_Cleaned_[2]->Fill(SumPtIsoValCleanNh/matchingPho->pt());
2853 h_SumPtOverPhoPt_Pho_Cleaned_[2]->Fill(SumPtIsoValCleanPh/matchingPho->pt());
2854 h_SumPtOverPhoPt_ChHad_unCleaned_[2]->Fill(SumPtIsoValCh/matchingPho->pt());
2855 h_SumPtOverPhoPt_NeuHad_unCleaned_[2]->Fill(SumPtIsoValNh/matchingPho->pt());
2856 h_SumPtOverPhoPt_Pho_unCleaned_[2]->Fill(SumPtIsoValPh/matchingPho->pt());
2862 if ( ! (visibleConversion && visibleConversionsWithTwoSimTracks ) )
continue;
2865 if ( ! isRunCentrally_ ) {
2866 h_r9_[1][0]->Fill( r9 );
2867 if ( phoIsInBarrel ) h_r9_[1][1]->Fill( r9 );
2868 if ( phoIsInEndcap ) h_r9_[1][2]->Fill( r9 );
2870 h_simConvVtxRvsZ_[0] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2871 if ( fabs(mcEta_) <=1.) {
2872 h_simConvVtxRvsZ_[1] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2873 h_simConvVtxYvsX_ ->Fill ( mcConvX_, mcConvY_ ) ;
2876 h_simConvVtxRvsZ_[2] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2883 bool atLeastOneRecoTwoTrackConversion=
false;
2884 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
2886 double like = aConv->MVAout();
2887 if ( like < likelihoodCut_ )
continue;
2889 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEta_[1]->Fill (mcEta_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2890 p_EoverEtrueVsEta_[1]->Fill (mcEta_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2894 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
2895 if (tracks.size() < 2 )
continue;
2896 atLeastOneRecoTwoTrackConversion=
true;
2898 h_mvaOut_[0]->
Fill(like);
2900 if ( tracks.size()==2 ) {
2901 if (
sqrt( aConv->tracksPin()[0].Perp2()) < convTrackMinPtCut_ ||
sqrt( aConv->tracksPin()[1].Perp2()) < convTrackMinPtCut_)
continue;
2906 if ( (fabs(mcEta_) > 1.1 && fabs (mcEta_) < 1.4 ) &&
2907 fabs( aConv->pairCotThetaSeparation() ) > dCotHardCutValue_ )
continue;
2908 if ( fabs( aConv->pairCotThetaSeparation() ) > dCotCutValue_ )
continue;
2913 std::map<const reco::Track*,TrackingParticleRef> myAss;
2914 std::map<const reco::Track*,TrackingParticleRef>::const_iterator itAss;
2915 std::map<reco::TrackRef,TrackingParticleRef>::const_iterator itAssMin;
2916 std::map<reco::TrackRef,TrackingParticleRef>::const_iterator itAssMax;
2920 for (
unsigned int i=0;
i<tracks.size();
i++) {
2924 if ( ! isRunCentrally_ ) nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits())-0.0001 );
2925 if ( ! isRunCentrally_ ) nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits())-0.0001 );
2926 p_nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits()-0.0001) );
2927 p_nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits()-0.0001) );
2928 h_tkChi2_[
type] ->Fill (tracks[
i]->normalizedChi2() );
2935 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
2938 if (q.
find(theConvTP_[0])!=q.
end()){
2939 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >) q[theConvTP_[0]];
2940 }
else if (q.
find(theConvTP_[1])!=q.
end()){
2941 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >) q[theConvTP_[1]];
2945 if ( !trackV.size() )
continue;
2947 myAss.insert( std::make_pair (tr.
get(),theConvTP_[tpI] ) );
2956 float refP =-99999.;
2957 float refPt =-99999.;
2958 if ( aConv->conversionVertex().isValid() ) {
2959 refP=
sqrt(aConv->refittedPairMomentum().Mag2());
2960 refPt=
sqrt(aConv->refittedPairMomentum().perp2());
2962 float invM = aConv->pairInvariantMass();
2964 h_invMass_[
type][0] ->Fill( invM);
2965 if ( phoIsInBarrel ) h_invMass_[
type][1] ->Fill(invM);
2966 if ( phoIsInEndcap ) h_invMass_[
type][2] ->Fill(invM);
2969 if ( tracks.size() ==2 ) {
2971 h_SimConvTwoTracks_[0]->Fill( mcEta_ ) ;
2972 h_SimConvTwoTracks_[1]->Fill( mcPhi_ );
2973 h_SimConvTwoTracks_[2]->Fill( mcConvR_ );
2974 h_SimConvTwoTracks_[3]->Fill( mcConvZ_ );
2975 h_SimConvTwoTracks_[4]->Fill( (*mcPho).fourMomentum().et());
2977 if (aConv->caloCluster().size() !=0) h_convEta_[1]->
Fill( aConv->caloCluster()[0]->eta() );
2979 float trkProvenance=3;
2980 if ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"outInEcalSeededConv" ) trkProvenance=0;
2981 if ( tracks[0]->algoName() ==
"inOutEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv" ) trkProvenance=1;
2982 if ( ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv") ||
2983 ( tracks[1]->algoName() ==
"outInEcalSeededConv" && tracks[0]->algoName() ==
"inOutEcalSeededConv") ) trkProvenance=2;
2984 if ( trkProvenance==3 ) {
2986 h_trkProv_[0]->Fill( trkProvenance );
2987 h_trkAlgo_->Fill ( tracks[0]->
algo() );
2988 h_trkAlgo_->Fill ( tracks[1]->
algo() );
2989 h_convAlgo_->Fill ( aConv->algo() );
2996 if ( ! isRunCentrally_ ) {
2997 h_r9_[2][0]->Fill( r9 );
2998 if ( phoIsInBarrel ) h_r9_[2][1]->Fill( r9 );
2999 if ( phoIsInEndcap ) h_r9_[2][2]->Fill( r9 );
3002 if (aConv->caloCluster().size() !=0) h_convEta_[2]->
Fill( aConv->caloCluster()[0]->eta() );
3006 h_SimConvTwoMTracks_[0]->Fill( mcEta_ ) ;
3007 h_SimConvTwoMTracks_[1]->Fill( mcPhi_ );
3008 h_SimConvTwoMTracks_[2]->Fill( mcConvR_ );
3009 h_SimConvTwoMTracks_[3]->Fill( mcConvZ_ );
3010 h_SimConvTwoMTracks_[4]->Fill( (*mcPho).fourMomentum().et());
3012 if ( aConv->conversionVertex().isValid() ) {
3013 float chi2Prob =
ChiSquaredProbability( aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof() );
3014 if ( chi2Prob > 0) {
3015 h_SimConvTwoMTracksAndVtxPGT0_[0]->Fill( mcEta_ ) ;
3016 h_SimConvTwoMTracksAndVtxPGT0_[1]->Fill( mcPhi_ );
3017 h_SimConvTwoMTracksAndVtxPGT0_[2]->Fill( mcConvR_ );
3018 h_SimConvTwoMTracksAndVtxPGT0_[3]->Fill( mcConvZ_ );
3019 h_SimConvTwoMTracksAndVtxPGT0_[4]->Fill( (*mcPho).fourMomentum().et());
3021 if ( chi2Prob > 0.0005) {
3022 h_SimConvTwoMTracksAndVtxPGT0005_[0]->Fill( mcEta_ ) ;
3023 h_SimConvTwoMTracksAndVtxPGT0005_[1]->Fill( mcPhi_ );
3024 h_SimConvTwoMTracksAndVtxPGT0005_[2]->Fill( mcConvR_ );
3025 h_SimConvTwoMTracksAndVtxPGT0005_[3]->Fill( mcConvZ_ );
3026 h_SimConvTwoMTracksAndVtxPGT0005_[4]->Fill( (*mcPho).fourMomentum().et());
3031 if ( chi2Prob > 0.0005 ) {
3032 if (aConv->caloCluster().size() !=0) {
3033 h_convEta_[0]->Fill( aConv->caloCluster()[0]->eta() );
3034 h_convPhi_[0]->Fill( aConv->caloCluster()[0]->phi() );
3035 h_convERes_[0][0]->Fill( aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
3037 if ( ! isRunCentrally_ ) {
3038 h_r9VsNofTracks_[0][0]->Fill( r9, aConv->nTracks() ) ;
3039 h_EtR9Less093_[1][0] ->Fill ( photonEt );
3040 if ( phoIsInBarrel ) h_EtR9Less093_[1][1] ->Fill ( photonEt );
3041 if ( phoIsInEndcap ) h_EtR9Less093_[1][2] ->Fill ( photonEt );
3043 if ( phoIsInBarrel ) {
3044 if (aConv->caloCluster().size() !=0) h_convERes_[0][1]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
3045 if ( ! isRunCentrally_ ) h_r9VsNofTracks_[0][1]->Fill( r9, aConv->nTracks() ) ;
3046 h_mvaOut_[1]->
Fill(like);
3048 if ( phoIsInEndcap ) {
3049 if (aConv->caloCluster().size() !=0) h_convERes_[0][2]->
Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
3050 if ( ! isRunCentrally_ ) h_r9VsNofTracks_[0][2]->Fill( r9, aConv->nTracks() ) ;
3051 h_mvaOut_[2]->
Fill(like);
3065 h_trkProv_[1]->Fill( trkProvenance );
3066 h_invMass_[
type][0] ->Fill( invM);
3068 float eoverp= -99999.;
3070 if ( aConv->conversionVertex().isValid() ) {
3071 eoverp = photonE/
sqrt(aConv->refittedPairMomentum().Mag2());
3073 h_convPtRes_[
type][0]->Fill( refPt / (*mcPho).fourMomentum().et() );
3074 h_EoverPTracks_[
type][0] ->Fill( eoverp ) ;
3075 h_PoverETracks_[
type][0] ->Fill( 1./eoverp ) ;
3076 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[0] ->Fill( eoverp,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3077 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[0] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
3078 if ( ! isRunCentrally_ ) h2_EoverPVsEta_[0]->Fill (mcEta_, eoverp);
3079 if ( ! isRunCentrally_ ) h2_EoverPVsR_[0]->Fill (mcConvR_, eoverp);
3080 p_EoverPVsEta_[0]->Fill (mcEta_, eoverp);
3081 p_EoverPVsR_[0]->Fill (mcConvR_, eoverp);
3082 p_eResVsR_ ->Fill ( mcConvR_, photonE / (*mcPho).fourMomentum().e() );
3083 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEta_[0]->Fill (mcEta_,refP/ (*mcPho).fourMomentum().e() ) ;
3084 p_PoverPtrueVsEta_[0]->Fill (mcEta_,refP/ (*mcPho).fourMomentum().e() ) ;
3089 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEta_[0]->Fill (mcEta_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3090 if ( ! isRunCentrally_ ) h2_EoverEtrueVsR_[0]->Fill (mcConvR_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3091 p_EoverEtrueVsEta_[0]->Fill (mcEta_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3092 p_EoverEtrueVsR_[0]->Fill (mcConvR_,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3095 if ( ! isRunCentrally_ ) h2_etaVsRsim_[0]->Fill (mcEta_,mcConvR_);
3098 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
3099 h_DPhiTracksAtVtx_[
type][0]->Fill( dPhiTracksAtVtx);
3100 if ( ! isRunCentrally_ ) h2_DPhiTracksAtVtxVsEta_->Fill( mcEta_, dPhiTracksAtVtx);
3101 if ( ! isRunCentrally_ ) h2_DPhiTracksAtVtxVsR_->Fill( mcConvR_, dPhiTracksAtVtx);
3102 p_DPhiTracksAtVtxVsEta_->Fill( mcEta_, dPhiTracksAtVtx);
3103 p_DPhiTracksAtVtxVsR_->Fill( mcConvR_, dPhiTracksAtVtx);
3105 h_DCotTracks_[
type][0] ->Fill ( aConv->pairCotThetaSeparation() );
3106 if ( ! isRunCentrally_ ) h2_DCotTracksVsEta_->Fill( mcEta_, aConv->pairCotThetaSeparation() );
3107 if ( ! isRunCentrally_ ) h2_DCotTracksVsR_->Fill( mcConvR_, aConv->pairCotThetaSeparation() );
3108 p_DCotTracksVsEta_->Fill( mcEta_, aConv->pairCotThetaSeparation() );
3109 p_DCotTracksVsR_->Fill( mcConvR_, aConv->pairCotThetaSeparation() );
3111 if ( phoIsInBarrel ) {
3112 h_invMass_[
type][1] ->Fill(invM);
3113 if ( aConv->conversionVertex().isValid() ) {
3114 h_convPtRes_[
type][1]->Fill( refPt / (*mcPho).fourMomentum().et() );
3115 h_EoverPTracks_[
type][1] ->Fill( eoverp ) ;
3116 if ( mcConvR_ < 15 ) h_EoverPTracks_[0][0] ->Fill( eoverp ) ;
3117 if ( mcConvR_ > 15 && mcConvR_< 58 ) h_EoverPTracks_[0][1] ->Fill( eoverp ) ;
3118 if ( mcConvR_ > 58 ) h_EoverPTracks_[0][2] ->Fill( eoverp ) ;
3119 h_PoverETracks_[
type][1] ->Fill( 1./eoverp ) ;
3120 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[1] ->Fill( eoverp,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3121 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[1] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
3123 h_DPhiTracksAtVtx_[
type][1]->Fill( dPhiTracksAtVtx);
3124 h_DCotTracks_[
type][1] ->Fill ( aConv->pairCotThetaSeparation() );
3129 if ( phoIsInEndcap ) {
3130 h_invMass_[
type][2] ->Fill(invM);
3131 if ( aConv->conversionVertex().isValid() ) {
3132 h_convPtRes_[
type][2]->Fill( refPt / (*mcPho).fourMomentum().et() );
3133 h_EoverPTracks_[
type][2] ->Fill( eoverp ) ;
3134 h_PoverETracks_[
type][2] ->Fill( 1./eoverp ) ;
3135 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[2] ->Fill( eoverp,matchingPho->superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
3136 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[2] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
3138 h_DPhiTracksAtVtx_[
type][2]->Fill( dPhiTracksAtVtx);
3139 h_DCotTracks_[
type][2] ->Fill ( aConv->pairCotThetaSeparation() );
3143 if ( aConv->conversionVertex().isValid() ) {
3145 h_convVtxdX_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
3146 h_convVtxdY_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
3147 h_convVtxdZ_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
3148 h_convVtxdR_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
3150 if ( fabs( mcConvEta_ ) <= 1.2 ) {
3151 h_convVtxdX_barrel_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
3152 h_convVtxdY_barrel_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
3153 h_convVtxdZ_barrel_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
3154 h_convVtxdR_barrel_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
3156 h_convVtxdX_endcap_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
3157 h_convVtxdY_endcap_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
3158 h_convVtxdZ_endcap_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
3159 h_convVtxdR_endcap_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
3162 h_convVtxdPhi_ ->Fill ( aConv->conversionVertex().position().phi() - mcConvPhi_);
3163 h_convVtxdEta_ ->Fill ( aConv->conversionVertex().position().eta() - mcConvEta_);
3164 if ( ! isRunCentrally_ ) h2_convVtxdRVsR_ ->Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
3165 if ( ! isRunCentrally_ ) h2_convVtxdRVsEta_ ->Fill (mcEta_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
3166 p_convVtxdRVsR_ ->Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
3167 p_convVtxdRVsEta_ ->Fill (mcEta_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
3168 float signX= aConv->refittedPairMomentum().x()/fabs(aConv->refittedPairMomentum().x());
3169 float signY= aConv->refittedPairMomentum().y()/fabs(aConv->refittedPairMomentum().y());
3170 float signZ= aConv->refittedPairMomentum().z()/fabs(aConv->refittedPairMomentum().z());
3171 p_convVtxdXVsX_ ->Fill (mcConvX_, (aConv->conversionVertex().position().x() - mcConvX_)*signX );
3172 p_convVtxdYVsY_ ->Fill (mcConvY_, (aConv->conversionVertex().position().y() - mcConvY_)*signY );
3173 p_convVtxdZVsZ_ ->Fill (mcConvZ_, (aConv->conversionVertex().position().z() - mcConvZ_)*signZ );
3176 if ( ! isRunCentrally_ ) h2_convVtxRrecVsTrue_ ->
Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) );
3181 float thetaConv=aConv->refittedPairMomentum().Theta();
3182 float thetaSC=matchingPho->superCluster()->position().theta();
3183 float rSC=
sqrt(matchingPho->superCluster()->position().x()*matchingPho->superCluster()->position().x() +
3184 matchingPho->superCluster()->position().y()*matchingPho->superCluster()->position().y() );
3185 float zSC=matchingPho->superCluster()->position().z();
3186 float zPV =
sqrt(rSC*rSC+zSC*zSC)*
sin( thetaConv - thetaSC)/
sin(thetaConv);
3188 h_zPVFromTracks_[0]->Fill ( zPV );
3189 h_dzPVFromTracks_[0]->Fill ( zPV- (*mcPho).primaryVertex().z() );
3191 if ( phoIsInBarrel ) {
3192 h_zPVFromTracks_[1]->Fill ( zPV );
3193 h_dzPVFromTracks_[1]->Fill ( zPV - (*mcPho).primaryVertex().z() );
3194 }
else if ( phoIsInEndcap) {
3195 h_zPVFromTracks_[2]->Fill ( zPV );
3196 h_dzPVFromTracks_[2]->Fill ( zPV - (*mcPho).primaryVertex().z() );
3197 }
else if ( phoIsInEndcapP) {
3198 h_zPVFromTracks_[3]->Fill ( zPV );
3199 h_dzPVFromTracks_[3]->Fill ( zPV - (*mcPho).primaryVertex().z() );
3200 }
else if ( phoIsInEndcapM) {
3201 h_zPVFromTracks_[4]->Fill ( zPV );
3202 h_dzPVFromTracks_[4]->Fill ( zPV - (*mcPho).primaryVertex().z() );
3205 p_dzPVVsR_ ->Fill(mcConvR_, zPV - (*mcPho).primaryVertex().z() );
3206 p_dzPVVsEta_ ->Fill(mcConvEta_, zPV - (*mcPho).primaryVertex().z() );
3207 if ( ! isRunCentrally_ ) h2_dzPVVsR_ ->Fill(mcConvR_, zPV - (*mcPho).primaryVertex().z() );
3210 float dPhiTracksAtEcal=-99;
3211 float dEtaTracksAtEcal=-99;
3212 if (aConv->bcMatchingWithTracks().size() > 0 && aConv->bcMatchingWithTracks()[0].
isNonnull() && aConv->bcMatchingWithTracks()[1].
isNonnull() ) {
3213 nRecConvAssWithEcal_++;
3214 float recoPhi1 = aConv->ecalImpactPosition()[0].phi();
3215 float recoPhi2 = aConv->ecalImpactPosition()[1].phi();
3216 float recoEta1 = aConv->ecalImpactPosition()[0].eta();
3217 float recoEta2 = aConv->ecalImpactPosition()[1].eta();
3218 float bcPhi1 = aConv->bcMatchingWithTracks()[0]->phi();
3219 float bcPhi2 = aConv->bcMatchingWithTracks()[1]->phi();
3222 recoPhi1 = phiNormalization(recoPhi1);
3223 recoPhi2 = phiNormalization(recoPhi2);
3224 bcPhi1 = phiNormalization(bcPhi1);
3225 bcPhi2 = phiNormalization(bcPhi2);
3226 dPhiTracksAtEcal = recoPhi1 -recoPhi2;
3227 dPhiTracksAtEcal = phiNormalization( dPhiTracksAtEcal );
3228 dEtaTracksAtEcal = recoEta1 -recoEta2;
3230 h_DPhiTracksAtEcal_[
type][0]->Fill( fabs(dPhiTracksAtEcal));
3231 if ( ! isRunCentrally_ ) h2_DPhiTracksAtEcalVsR_ ->Fill (mcConvR_, fabs(dPhiTracksAtEcal));
3232 if ( ! isRunCentrally_ ) h2_DPhiTracksAtEcalVsEta_ ->Fill (mcEta_, fabs(dPhiTracksAtEcal));
3233 p_DPhiTracksAtEcalVsR_ ->Fill (mcConvR_, fabs(dPhiTracksAtEcal));
3234 p_DPhiTracksAtEcalVsEta_ ->Fill (mcEta_, fabs(dPhiTracksAtEcal));
3236 h_DEtaTracksAtEcal_[
type][0]->Fill( dEtaTracksAtEcal);
3238 if ( phoIsInBarrel ) {
3239 h_DPhiTracksAtEcal_[
type][1]->Fill( fabs(dPhiTracksAtEcal));
3240 h_DEtaTracksAtEcal_[
type][1]->Fill( dEtaTracksAtEcal);
3242 if ( phoIsInEndcap ) {
3243 h_DPhiTracksAtEcal_[
type][2]->Fill( fabs(dPhiTracksAtEcal));
3244 h_DEtaTracksAtEcal_[
type][2]->Fill( dEtaTracksAtEcal);
3248 for (
unsigned int i=0;
i<tracks.size();
i++) {
3250 itAss= myAss.find( tfrb.
get() );
3251 if ( itAss == myAss.end() )
continue;
3253 float trkProvenance=3;
3254 if ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"outInEcalSeededConv" ) trkProvenance=0;
3255 if ( tracks[0]->algoName() ==
"inOutEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv" ) trkProvenance=1;
3256 if ( ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv") ||
3257 ( tracks[1]->algoName() ==
"outInEcalSeededConv" && tracks[0]->algoName() ==
"inOutEcalSeededConv") ) trkProvenance=2;
3259 if ( ! isRunCentrally_ ) nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[i]->numberOfValidHits()) );
3260 if ( ! isRunCentrally_ ) nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[i]->numberOfValidHits()) );
3261 p_nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[i]->numberOfValidHits()) -0.0001);
3262 p_nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[i]->numberOfValidHits()) -0.0001);
3263 h_tkChi2_[
type] ->Fill (tracks[i]->normalizedChi2() );
3264 h_tkChi2Large_[
type] ->Fill (tracks[i]->normalizedChi2() );
3265 if ( ! isRunCentrally_ ) h2_Chi2VsEta_[0] ->Fill( mcEta_, tracks[i]->normalizedChi2() );
3266 if ( ! isRunCentrally_ ) h2_Chi2VsR_[0] ->Fill( mcConvR_, tracks[i]->normalizedChi2() );
3267 p_Chi2VsEta_[0] ->Fill( mcEta_, tracks[i]->normalizedChi2() );
3268 p_Chi2VsR_[0] ->Fill( mcConvR_, tracks[i]->normalizedChi2() );
3271 float simPt =
sqrt( ((*itAss).second)->momentum().perp2() );
3276 if ( aConv->conversionVertex().isValid() ) {
3277 reco::Track refTrack= aConv->conversionVertex().refittedTracks()[
i];
3280 refPt=
sqrt (px*px + py*py );
3282 float ptres= refPt - simPt ;
3284 float pterror = aConv->conversionVertex().refittedTracks()[
i].ptError();
3285 if ( ! isRunCentrally_ ) {
3286 h2_PtRecVsPtSim_[0]->Fill ( simPt, refPt);
3287 if ( trkProvenance ==3 ) h2_PtRecVsPtSimMixProv_->Fill ( simPt, refPt);
3290 h_TkPtPull_[0] ->Fill(ptres/pterror);
3291 if ( ! isRunCentrally_ ) h2_TkPtPull_[0] ->Fill(mcEta_, ptres/pterror);
3293 h_TkD0_[0]->Fill ( tracks[i]->d0()* tracks[i]->
charge() );
3297 if ( aConv->bcMatchingWithTracks().size() > 0 && aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[0]->
Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
3299 if ( phoIsInBarrel ) {
3300 h_TkD0_[1]->Fill ( tracks[i]->d0()* tracks[i]->
charge() );
3301 h_TkPtPull_[1] ->Fill(ptres/pterror);
3302 if ( ! isRunCentrally_ ) h2_PtRecVsPtSim_[1]->Fill ( simPt, refPt);
3304 if ( aConv->bcMatchingWithTracks().size() > 0 && aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[1]->
Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
3307 if ( phoIsInEndcap ) {
3308 h_TkD0_[2]->Fill ( tracks[i]->d0()* tracks[i]->
charge() );
3309 h_TkPtPull_[2] ->Fill(ptres/pterror);
3310 if ( ! isRunCentrally_ ) h2_PtRecVsPtSim_[2]->Fill ( simPt, refPt);
3312 if ( aConv->bcMatchingWithTracks().size() > 0 && aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[2]->
Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
3326 if ( !atLeastOneRecoTwoTrackConversion ) {
3327 for (
unsigned int iConv=0; iConv<conversionsOneLeg.
size(); iConv++) {
3329 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
3331 h_trkAlgo_->Fill ( tracks[0]->
algo() );
3332 h_convAlgo_->Fill ( aConv->algo() );
3335 std::map<const reco::Track*,TrackingParticleRef> myAss;
3336 for (
unsigned int i=0;
i<tracks.size();
i++) {
3339 p_nHitsVsEtaSL_[0] ->Fill (mcEta_,
float(tracks[0]->numberOfValidHits()-0.0001) );
3340 p_nHitsVsRSL_[0] ->Fill (mcConvR_,
float(tracks[0]->numberOfValidHits()-0.0001) );
3341 h_tkChi2SL_[0] ->Fill (tracks[0]->normalizedChi2() );
3344 float eoverp = photonE/tracks[0]->p();
3345 h_EoverP_SL_[0]->Fill ( eoverp );
3346 if ( phoIsInBarrel ) {
3347 h_EoverP_SL_[1]->Fill ( eoverp );
3349 h_EoverP_SL_[2]->Fill ( eoverp );
3351 h_convSLVtxRvsZ_[0] ->Fill ( tracks[0]->innerPosition().z(),
sqrt( tracks[0]->innerPosition().Perp2() ) );
3352 if ( fabs(mcEta_) <=1.) {
3353 h_convSLVtxRvsZ_[1] ->Fill ( tracks[0]->innerPosition().z(),
sqrt( tracks[0]->innerPosition().Perp2() ) );
3355 h_convSLVtxRvsZ_[2] ->Fill ( tracks[0]->innerPosition().z(),
sqrt( tracks[0]->innerPosition().Perp2() ) );
3362 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV;
3365 if (q.
find(theConvTP_[0])!=q.
end()){
3366 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >) q[theConvTP_[0]];
3367 }
else if (q.
find(theConvTP_[1])!=q.
end()){
3368 trackV = (std::vector<std::pair<RefToBase<reco::Track>,
double> >) q[theConvTP_[1]];
3372 if ( !trackV.size() )
continue;
3374 myAss.insert( std::make_pair (tr.
get(),theConvTP_[tpI] ) );
3380 h_SimConvOneMTracks_[0]->Fill( mcEta_ ) ;
3381 h_SimConvOneMTracks_[1]->Fill( mcPhi_ );
3382 h_SimConvOneMTracks_[2]->Fill( mcConvR_ );
3383 h_SimConvOneMTracks_[3]->Fill( mcConvZ_ );
3384 h_SimConvOneMTracks_[4]->Fill( (*mcPho).fourMomentum().et());
3396 if ( ! isRunCentrally_ ) {
3397 h_nSimPho_[0]->Fill(
float(nSimPho_[0]));
3398 h_nSimPho_[1]->Fill(
float(nSimPho_[1]));
3399 h_nSimConv_[0]->Fill(
float(nSimConv_[0]));
3400 h_nSimConv_[1]->Fill(
float(nSimConv_[1]));
3405 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
3409 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
3411 double like = aConv->MVAout();
3412 if ( like < likelihoodCut_ )
continue;
3414 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
3415 if (tracks.size() < 2 )
continue;
3423 bool phoIsInBarrel=
false;
3424 bool phoIsInEndcap=
false;
3425 if ( fabs(aPho.
superCluster()->position().eta()) < 1.479 ) {
3432 if ( ( fabs(mcEta_) > 1.1 && fabs (mcEta_) < 1.4 ) &&
3433 fabs( aConv->pairCotThetaSeparation() ) > dCotHardCutValue_ )
continue;
3434 if ( fabs( aConv->pairCotThetaSeparation() ) > dCotCutValue_ )
continue;
3438 h_RecoConvTwoTracks_[0]->Fill( aPho.
eta() ) ;
3439 h_RecoConvTwoTracks_[1]->Fill( aPho.
phi() );
3440 if ( aConv->conversionVertex().isValid() ) h_RecoConvTwoTracks_[2]->
Fill( aConv->conversionVertex().position().perp2() );
3441 h_RecoConvTwoTracks_[3]->Fill( aConv->conversionVertex().position().z() );
3442 h_RecoConvTwoTracks_[4]->Fill( aPho.
et() ) ;
3447 for ( std::vector<PhotonMCTruth>::const_iterator mcPho=mcPhotons.begin(); mcPho !=mcPhotons.end(); mcPho++) {
3449 float mcPhi= (*mcPho).fourMomentum().phi();
3451 mcPhi_= phiNormalization(mcPhi);
3452 mcEta_= (*mcPho).fourMomentum().pseudoRapidity();
3453 mcEta_ = etaTransformation(mcEta_, (*mcPho).primaryVertex().z() );
3460 if ( fabs(mcEta_) > END_HI )
continue;
3466 if ( (*mcPho).isAConversion() != 1 )
continue;
3467 if (!( ( fabs(mcEta_) <= BARL && mcConvR_ <85 ) ||
3468 ( fabs(mcEta_) > BARL && fabs(mcEta_) <=END_HI && fabs( (*mcPho).vertex().z() ) < 210 ) ) )
3474 if ( fabs( tp->vx() - (*mcPho).vertex().x() ) < 0.0001 &&
3475 fabs( tp->vy() - (*mcPho).vertex().y() ) < 0.0001 &&
3476 fabs( tp->vz() - (*mcPho).vertex().z() ) < 0.0001) {
3477 theConvTP_.push_back( tp );
3482 if ( theConvTP_.size() < 2 )
continue;
3486 std::vector<std::pair<RefToBase<reco::Track>,
double> > trackV1, trackV2;
3488 std::vector<std::pair<TrackingParticleRef, double> > tp1 = p1[tk1];
3489 std::vector<std::pair<TrackingParticleRef, double> > tp2 = p2[tk2];
3491 if (tp1.size()&&tp2.size()) {
3495 if (
abs(tpr1->pdgId())==11&&
abs(tpr2->pdgId())==11) {
3496 if ( (tpr1->parentVertex()->sourceTracks_end()-tpr1->parentVertex()->sourceTracks_begin()==1) &&
3497 (tpr2->parentVertex()->sourceTracks_end()-tpr2->parentVertex()->sourceTracks_begin()==1)) {
3498 if (tpr1->parentVertex().
key()==tpr2->parentVertex().
key() && ((*tpr1->parentVertex()->sourceTracks_begin())->
pdgId()==22)) {
3515 h_RecoConvTwoMTracks_[0]->Fill( aPho.
eta() ) ;
3516 h_RecoConvTwoMTracks_[1]->Fill( aPho.
phi() );
3517 if ( aConv->conversionVertex().isValid() ) h_RecoConvTwoMTracks_[2]->
Fill( aConv->conversionVertex().position().perp2() );
3518 h_RecoConvTwoMTracks_[3]->Fill( aConv->conversionVertex().position().z() );
3519 h_RecoConvTwoMTracks_[4]->Fill( aPho.
et() ) ;
3525 if ( aConv->conversionVertex().isValid() ) {
3527 float chi2Prob =
ChiSquaredProbability( aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof() );
3528 double convR=
sqrt(aConv->conversionVertex().position().perp2());
3529 double scalar = aConv->conversionVertex().position().x()*aConv->pairMomentum().x() +
3530 aConv->conversionVertex().position().y()*aConv->pairMomentum().y();
3533 if ( scalar < 0 ) convR= -
sqrt(aConv->conversionVertex().position().perp2());
3534 h_convVtxRvsZ_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ),
sqrt(aConv->conversionVertex().position().perp2()) ) ;
3536 if (aConv->caloCluster().size() !=0) {
3537 if ( ! isRunCentrally_ ) h2_etaVsRreco_[0]->Fill (aConv->caloCluster()[0]->eta(),
sqrt(aConv->conversionVertex().position().perp2()) );
3538 if ( fabs(aConv->caloCluster()[0]->eta() ) <= 1.) {
3540 h_convVtxYvsX_ ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
3541 h_convVtxRvsZ_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
3543 if ( ! isRunCentrally_ ) {
3544 h_convVtxYvsX_zoom_[0] ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
3545 h_convVtxYvsX_zoom_[1] ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
3546 h_convVtxRvsZ_zoom_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
3547 h_convVtxRvsZ_zoom_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
3551 if ( fabs(aConv->caloCluster()[0]->eta() ) > 1.) h_convVtxRvsZ_[2] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
3555 h_vtxChi2Prob_[0]->Fill( chi2Prob );
3556 h_vtxChi2_[0]->Fill( aConv->conversionVertex().normalizedChi2() );
3557 if ( phoIsInBarrel ) {
3558 h_vtxChi2Prob_[1]->Fill( chi2Prob );
3559 h_vtxChi2_[1]->Fill( aConv->conversionVertex().normalizedChi2() );
3561 if ( phoIsInEndcap ) {
3562 h_vtxChi2Prob_[2]->Fill( chi2Prob );
3563 h_vtxChi2_[2]->Fill( aConv->conversionVertex().normalizedChi2() );
3576 for (reco::GenJetCollection::const_iterator genJetIter = genJetCollection.begin();
3577 genJetIter != genJetCollection.end(); ++genJetIter) {
3579 if ( genJetIter->pt() < minPhoEtCut_ )
continue;
3580 if ( fabs(genJetIter->eta()) > 2.5 )
continue;
3582 float mcJetPhi= genJetIter->phi();
3583 mcJetPhi_= phiNormalization(mcJetPhi);
3584 mcJetEta_= genJetIter->eta();
3585 float mcJetPt = genJetIter->pt() ;
3587 h_SimJet_[0]->Fill ( mcJetEta_);
3588 h_SimJet_[1]->Fill ( mcJetPhi_);
3589 h_SimJet_[2]->Fill ( mcJetPt );
3591 std::vector<reco::Photon> thePhotons;
3595 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
3597 float phiPho=aPho.
phi();
3598 float etaPho=aPho.
eta();
3601 if ( deltaPhi >
pi ) deltaPhi -= twopi;
3602 if ( deltaPhi < -
pi) deltaPhi += twopi;
3603 deltaPhi=
pow(deltaPhi,2);
3604 deltaEta=
pow(deltaEta,2);
3607 matchingPho = * iPho;
3612 if (! matched )
continue;
3615 h_MatchedSimJet_[0]->Fill( mcJetEta_ ) ;
3616 h_MatchedSimJet_[1]->Fill( mcJetPhi_ );
3617 h_MatchedSimJet_[2]->Fill( mcJetPt );
3620 bool phoIsInBarrel=
false;
3621 bool phoIsInEndcap=
false;
3622 if ( fabs(matchingPho.
superCluster()->position().eta() ) < 1.479 ) {
3628 if ( phoIsInBarrel ) {
3630 e.
getByToken(barrelEcalHits_, ecalRecHitHandle);
3631 if (!ecalRecHitHandle.
isValid()) {
3633 labelsForToken(barrelEcalHits_, l);
3635 <<
"Error! Can't get the product "
3640 }
else if ( phoIsInEndcap ) {
3643 e.
getByToken(endcapEcalHits_, ecalRecHitHandle);
3644 if (!ecalRecHitHandle.
isValid()) {
3646 labelsForToken(barrelEcalHits_, l);
3648 <<
"Error! Can't get the product "
3656 float photonE = matchingPho.
energy();
3657 float photonEt= matchingPho.
et();
3658 float r9 = matchingPho.
r9();
3659 float r1 = matchingPho.
r1x5();
3660 float r2 = matchingPho.
r2x5();
3667 std::vector< std::pair<DetId, float> >::const_iterator rhIt;
3669 bool atLeastOneDeadChannel=
false;
3671 for(rhIt = (*bcIt)->hitsAndFractions().begin();rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
3674 if (rhIt->first == (*it).id() ) {
3675 if ( (*it).recoFlag() == 9 ) {
3676 atLeastOneDeadChannel=
true;
3684 if ( atLeastOneDeadChannel ) {
3685 h_MatchedSimJetBadCh_[0]->Fill( mcJetEta_ ) ;
3686 h_MatchedSimJetBadCh_[1]->Fill( mcJetPhi_ );
3687 h_MatchedSimJetBadCh_[2]->Fill( mcJetPt );
3691 h_scBkgEta_->Fill( matchingPho.
superCluster()->eta() );
3692 h_scBkgPhi_->Fill( matchingPho.
superCluster()->phi() );
3693 h_scBkgE_[0]->Fill( matchingPho.
superCluster()->energy() );
3696 h_phoBkgEta_->Fill( matchingPho.
eta() );
3697 h_phoBkgPhi_->Fill( matchingPho.
phi() );
3698 h_phoBkgE_[0]->Fill( photonE );
3699 h_phoBkgEt_[0]->Fill( photonEt);
3700 h_phoBkgDEta_->Fill ( matchingPho.
eta() - mcJetEta_ );
3701 h_phoBkgDPhi_->Fill ( matchingPho.
phi() - mcJetPhi_ );
3703 h_r9Bkg_[0]->Fill( r9 );
3704 h_r1Bkg_[0]->Fill( r1 );
3705 h_r2Bkg_[0]->Fill( r2 );
3706 h_sigmaIetaIetaBkg_[0]->Fill( sigmaIetaIeta );
3707 h_hOverEBkg_[0]->Fill( hOverE );
3708 h_ecalRecHitSumEtConeDR04Bkg_[0]->Fill( ecalIso );
3709 h_hcalTowerSumEtConeDR04Bkg_[0]->Fill( hcalIso );
3710 h_isoTrkSolidConeDR04Bkg_[0]->Fill( trkIso );
3711 h_nTrkSolidConeDR04Bkg_[0]->Fill( nIsoTrk );
3713 if ( ! isRunCentrally_ ) {
3715 h2_r9VsEtaBkg_ ->
Fill (mcJetEta_, r9);
3716 h2_r9VsEtBkg_ ->
Fill (mcJetPt, r9);
3717 h2_r1VsEtaBkg_ ->
Fill (mcJetEta_, r1);
3718 h2_r1VsEtBkg_ ->
Fill (mcJetPt, r1);
3719 h2_r2VsEtaBkg_ ->
Fill (mcJetEta_, r2);
3720 h2_r2VsEtBkg_ ->
Fill (mcJetPt, r2);
3721 h2_sigmaIetaIetaVsEtaBkg_ ->
Fill (mcJetEta_, sigmaIetaIeta );
3722 h2_sigmaIetaIetaVsEtBkg_[0] ->
Fill (mcJetPt, sigmaIetaIeta);
3723 h2_hOverEVsEtaBkg_ ->
Fill (mcJetEta_, hOverE );
3724 h2_hOverEVsEtBkg_ ->
Fill (mcJetPt, hOverE);
3726 p_r1VsEtaBkg_ ->
Fill (mcJetEta_, r1);
3727 p_r1VsEtBkg_ ->
Fill (mcJetPt, r1);
3728 p_r2VsEtaBkg_ ->
Fill (mcJetEta_, r2);
3729 p_r2VsEtBkg_ ->
Fill (mcJetPt, r2);
3730 p_sigmaIetaIetaVsEtaBkg_ ->
Fill (mcJetEta_, sigmaIetaIeta );
3731 p_sigmaIetaIetaVsEtBkg_[0] ->
Fill (mcJetPt, sigmaIetaIeta);
3732 p_hOverEVsEtaBkg_ ->
Fill (mcJetEta_, hOverE );
3733 p_hOverEVsEtBkg_ ->
Fill (mcJetPt, hOverE);
3738 if ( ! isRunCentrally_ ) {
3739 h2_ecalRecHitSumEtConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, ecalIso );
3740 h2_ecalRecHitSumEtConeDR04VsEtBkg_[0] ->
Fill ( mcJetPt, ecalIso);
3741 h2_hcalTowerSumEtConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, hcalIso );
3742 h2_hcalTowerSumEtConeDR04VsEtBkg_[0] ->
Fill ( mcJetPt, hcalIso);
3743 p_ecalRecHitSumEtConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, ecalIso );
3744 p_ecalRecHitSumEtConeDR04VsEtBkg_[0] ->
Fill ( mcJetPt, ecalIso);
3745 p_hcalTowerSumEtConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, hcalIso );
3746 p_hcalTowerSumEtConeDR04VsEtBkg_[0] ->
Fill ( mcJetPt, hcalIso);
3747 p_isoTrkSolidConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, trkIso );
3748 p_isoTrkSolidConeDR04VsEtBkg_[0] ->
Fill (mcJetPt, trkIso);
3749 p_nTrkSolidConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, nIsoTrk );
3750 p_nTrkSolidConeDR04VsEtBkg_[0] ->
Fill (mcJetPt, nIsoTrk);
3751 h2_isoTrkSolidConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, trkIso );
3752 h2_isoTrkSolidConeDR04VsEtBkg_[0] ->
Fill (mcJetPt, trkIso);
3753 h2_nTrkSolidConeDR04VsEtaBkg_ ->
Fill (mcJetEta_, nIsoTrk );
3754 h2_nTrkSolidConeDR04VsEtBkg_[0] ->
Fill (mcJetPt, nIsoTrk);
3759 if ( phoIsInBarrel ) {
3761 h_r9Bkg_[1]->Fill( r9 );
3762 h_r1Bkg_[1]->Fill( r1 );
3763 h_r2Bkg_[1]->Fill( r2 );
3766 h_sigmaIetaIetaBkg_[1]->Fill( sigmaIetaIeta );
3767 h_hOverEBkg_[1]->Fill( hOverE );
3768 h_ecalRecHitSumEtConeDR04Bkg_[1]->Fill( ecalIso );
3769 h_hcalTowerSumEtConeDR04Bkg_[1]->Fill( hcalIso );
3770 h_isoTrkSolidConeDR04Bkg_[1]->Fill( trkIso );
3771 h_nTrkSolidConeDR04Bkg_[1]->Fill( nIsoTrk );
3773 if ( ! isRunCentrally_ ) {
3774 h2_sigmaIetaIetaVsEtBkg_[1] ->
Fill (mcJetPt, sigmaIetaIeta);
3775 h2_isoTrkSolidConeDR04VsEtBkg_[1] ->
Fill (mcJetPt, trkIso);
3776 h2_nTrkSolidConeDR04VsEtBkg_[1] ->
Fill (mcJetPt, nIsoTrk);
3777 h2_ecalRecHitSumEtConeDR04VsEtBkg_[1] ->
Fill ( mcJetPt, ecalIso);
3778 h2_hcalTowerSumEtConeDR04VsEtBkg_[1] ->
Fill ( mcJetPt, hcalIso);
3779 p_sigmaIetaIetaVsEtBkg_[1] ->
Fill (mcJetPt, sigmaIetaIeta);
3780 p_ecalRecHitSumEtConeDR04VsEtBkg_[1] ->
Fill ( mcJetPt, ecalIso);
3781 p_hcalTowerSumEtConeDR04VsEtBkg_[1] ->
Fill ( mcJetPt, hcalIso);
3782 p_isoTrkSolidConeDR04VsEtBkg_[1] ->
Fill (mcJetPt, trkIso);
3783 p_nTrkSolidConeDR04VsEtBkg_[1] ->
Fill (mcJetPt, nIsoTrk);
3785 }
else if ( phoIsInEndcap ) {
3787 h_r9Bkg_[2]->Fill( r9 );
3788 h_r1Bkg_[2]->Fill( r1 );
3789 h_r2Bkg_[2]->Fill( r2 );
3791 h_sigmaIetaIetaBkg_[2]->Fill( sigmaIetaIeta );
3792 h_hOverEBkg_[2]->Fill( hOverE );
3793 h_ecalRecHitSumEtConeDR04Bkg_[2]->Fill( ecalIso );
3794 h_hcalTowerSumEtConeDR04Bkg_[2]->Fill( hcalIso );
3795 h_isoTrkSolidConeDR04Bkg_[2]->Fill( trkIso );
3796 h_nTrkSolidConeDR04Bkg_[2]->Fill( nIsoTrk );
3798 if ( ! isRunCentrally_ ) {
3799 h2_sigmaIetaIetaVsEtBkg_[2] ->
Fill (mcJetPt, sigmaIetaIeta);
3800 h2_isoTrkSolidConeDR04VsEtBkg_[2] ->
Fill (mcJetPt, trkIso);
3801 h2_nTrkSolidConeDR04VsEtBkg_[2] ->
Fill (mcJetPt, nIsoTrk);
3802 h2_ecalRecHitSumEtConeDR04VsEtBkg_[2] ->
Fill ( mcJetPt, ecalIso);
3803 h2_hcalTowerSumEtConeDR04VsEtBkg_[2] ->
Fill ( mcJetPt, hcalIso);
3804 p_sigmaIetaIetaVsEtBkg_[2] ->
Fill (mcJetPt, sigmaIetaIeta);
3805 p_ecalRecHitSumEtConeDR04VsEtBkg_[2] ->
Fill ( mcJetPt, ecalIso);
3806 p_hcalTowerSumEtConeDR04VsEtBkg_[2] ->
Fill ( mcJetPt, hcalIso);
3807 p_isoTrkSolidConeDR04VsEtBkg_[2] ->
Fill (mcJetPt, trkIso);
3808 p_nTrkSolidConeDR04VsEtBkg_[2] ->
Fill (mcJetPt, nIsoTrk);
3815 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
3818 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
3819 double like = aConv->MVAout();
3820 if ( like < likelihoodCut_ )
continue;
3821 if ( tracks.size() < 2 )
continue;
3822 if (aConv->caloCluster().size() !=0) {
3823 h_convEtaBkg_->Fill( aConv->caloCluster()[0]->eta() );
3824 h_convPhiBkg_->Fill( aConv->caloCluster()[0]->phi() );
3826 h_mvaOutBkg_[0]->
Fill(like);
3827 float eoverp= aConv->EoverP();
3828 h_EoverPTracksBkg_[0] ->Fill( eoverp ) ;
3829 h_PoverETracksBkg_[0] ->Fill( 1./eoverp ) ;
3830 h_DCotTracksBkg_[0] ->Fill ( aConv->pairCotThetaSeparation() );
3831 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
3832 h_DPhiTracksAtVtxBkg_[0]->Fill( dPhiTracksAtVtx);
3834 if ( phoIsInBarrel ) {
3835 h_mvaOutBkg_[1]->
Fill(like);
3836 h_EoverPTracksBkg_[1] ->Fill( eoverp ) ;
3837 h_PoverETracksBkg_[1] ->Fill( 1./eoverp ) ;
3838 h_DCotTracksBkg_[1] ->Fill ( aConv->pairCotThetaSeparation() );
3839 h_DPhiTracksAtVtxBkg_[1]->Fill( dPhiTracksAtVtx);
3840 }
else if ( phoIsInEndcap ) {
3841 h_mvaOutBkg_[2]->
Fill(like);
3842 h_EoverPTracksBkg_[2] ->Fill( eoverp ) ;
3843 h_PoverETracksBkg_[2] ->Fill( 1./eoverp ) ;
3844 h_DCotTracksBkg_[2] ->Fill ( aConv->pairCotThetaSeparation() );
3845 h_DPhiTracksAtVtxBkg_[2]->Fill( dPhiTracksAtVtx);
3848 if ( aConv->conversionVertex().isValid() ) {
3850 double convR=
sqrt(aConv->conversionVertex().position().perp2());
3851 double scalar = aConv->conversionVertex().position().x()*aConv->pairMomentum().x() +
3852 aConv->conversionVertex().position().y()*aConv->pairMomentum().y();
3853 if ( scalar < 0 ) convR= -
sqrt(aConv->conversionVertex().position().perp2());
3855 if ( ! isRunCentrally_ ) {
3856 h_convVtxRvsZBkg_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ),
sqrt(aConv->conversionVertex().position().perp2()) ) ;
3857 if ( aConv->caloCluster().size() !=0 && fabs(aConv->caloCluster()[0]->eta() ) <= 1. ) {
3858 h_convVtxYvsXBkg_ ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
3859 h_convVtxRvsZBkg_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
3872 for ( reco::GenParticleCollection::const_iterator mcIter=
genParticles->begin() ; mcIter!=
genParticles->end() ; mcIter++ ) {
3873 if ( !(mcIter->pdgId() == 22 ) )
continue;
3874 if ( mcIter->mother() !=
nullptr and !(mcIter->mother()->pdgId()==25) )
continue;
3875 if ( fabs(mcIter->eta()) > 2.5 )
continue;
3877 float mcPhi= mcIter->phi();
3878 float mcEta= mcIter->eta();
3880 float mcEnergy=mcIter->energy();
3883 double dR = 9999999.;
3888 for(
unsigned int ipho=0; ipho < photonHandle->size(); ipho++) {
3891 double dphi = pho->phi()-mcPhi;
3893 { dphi = dphi < 0? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi ; }
3894 double deta = pho->superCluster()->position().eta()-mcEta;
3897 if ( dR<0.1 && dR< minDr ) {
3904 if ( iMatch >-1) matched=
true;
3905 if ( ! matched)
continue;
3910 bool phoIsInBarrel=
false;
3911 bool phoIsInEndcap=
false;
3913 float phoEta = matchingPho->superCluster()->position().eta();
3914 if ( fabs(phoEta) < 1.479) {
3922 float photonE = matchingPho->energy();
3923 float sigmaEoE = matchingPho->getCorrectedEnergyError(matchingPho->getCandidateP4type())/matchingPho->energy();
3924 float photonEt= matchingPho->energy()/cosh( matchingPho->eta()) ;
3927 float r9 = matchingPho->r9();
3928 float full5x5_r9 = matchingPho->full5x5_r9();
3929 float r1 = matchingPho->r1x5();
3930 float r2 = matchingPho->r2x5();
3931 float sigmaIetaIeta = matchingPho->sigmaIetaIeta();
3932 float full5x5_sieie = matchingPho->full5x5_sigmaIetaIeta();
3933 float hOverE = matchingPho->hadronicOverEm();
3934 float newhOverE = matchingPho->hadTowOverEm();
3935 float ecalIso = matchingPho->ecalRecHitSumEtConeDR04();
3936 float hcalIso = matchingPho->hcalTowerSumEtConeDR04();
3937 float newhcalIso = matchingPho->hcalTowerSumEtBcConeDR04();
3938 float trkIso = matchingPho->trkSumPtSolidConeDR04();
3939 float nIsoTrk = matchingPho->nTrkSolidConeDR04();
3941 float chargedHadIso = matchingPho->chargedHadronIso();
3942 float neutralHadIso = matchingPho->neutralHadronIso();
3943 float photonIso = matchingPho->photonIso();
3948 if ( ( photonEt > 14 && newhOverE <0.15 ) || ( photonEt > 10 && photonEt < 14 && chargedHadIso <10 ) ) {
3951 h_scEta_miniAOD_[0]->Fill( matchingPho->superCluster()->eta() );
3952 h_scPhi_miniAOD_[0]->Fill( matchingPho->superCluster()->phi() );
3954 h_phoE_miniAOD_[0][0]->Fill( photonE );
3955 h_phoEt_miniAOD_[0][0]->Fill( photonEt);
3957 h_phoERes_miniAOD_[0][0]->Fill( photonE / mcEnergy );
3958 h_phoSigmaEoE_miniAOD_[0][0] ->
Fill (sigmaEoE);
3961 h_r9_miniAOD_[0][0]->Fill( r9 );
3962 h_full5x5_r9_miniAOD_[0][0]->Fill( full5x5_r9 );
3963 h_r1_miniAOD_[0][0]->Fill( r1 );
3964 h_r2_miniAOD_[0][0]->Fill( r2 );
3966 h_sigmaIetaIeta_miniAOD_[0][0]->Fill(sigmaIetaIeta);
3967 h_full5x5_sigmaIetaIeta_miniAOD_[0][0]->Fill(full5x5_sieie);
3968 h_hOverE_miniAOD_[0][0]->Fill( hOverE );
3969 h_newhOverE_miniAOD_[0][0]->Fill( newhOverE );
3971 h_ecalRecHitSumEtConeDR04_miniAOD_[0][0]->Fill( ecalIso );
3972 h_hcalTowerSumEtConeDR04_miniAOD_[0][0]->Fill( hcalIso );
3973 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][0]->Fill( newhcalIso );
3974 h_isoTrkSolidConeDR04_miniAOD_[0][0]->Fill( trkIso );
3975 h_nTrkSolidConeDR04_miniAOD_[0][0]->Fill( nIsoTrk );
3978 h_chHadIso_miniAOD_[0]->
Fill (chargedHadIso);
3979 h_nHadIso_miniAOD_[0]->
Fill (neutralHadIso);
3980 h_phoIso_miniAOD_[0]->
Fill (photonIso);
3983 if ( phoIsInBarrel ) {
3984 h_phoE_miniAOD_[0][1]->Fill( photonE );
3985 h_phoEt_miniAOD_[0][1]->Fill( photonEt);
3987 h_phoERes_miniAOD_[0][1]->Fill( photonE / mcEnergy );
3988 h_phoSigmaEoE_miniAOD_[0][1] ->
Fill (sigmaEoE);
3990 h_r9_miniAOD_[0][1]->Fill( r9 );
3991 h_full5x5_r9_miniAOD_[0][1]->Fill( full5x5_r9 );
3992 h_r1_miniAOD_[0][1]->Fill( r1 );
3993 h_r2_miniAOD_[0][1]->Fill( r2 );
3994 h_sigmaIetaIeta_miniAOD_[0][1]->Fill(sigmaIetaIeta);
3995 h_full5x5_sigmaIetaIeta_miniAOD_[0][1]->Fill(full5x5_sieie);
3996 h_hOverE_miniAOD_[0][1]->Fill( hOverE );
3997 h_newhOverE_miniAOD_[0][1]->Fill( newhOverE );
3998 h_ecalRecHitSumEtConeDR04_miniAOD_[0][1]->Fill( ecalIso );
3999 h_hcalTowerSumEtConeDR04_miniAOD_[0][1]->Fill( hcalIso );
4000 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][1]->Fill( newhcalIso );
4001 h_isoTrkSolidConeDR04_miniAOD_[0][1]->Fill( trkIso );
4002 h_nTrkSolidConeDR04_miniAOD_[0][1]->Fill( nIsoTrk );
4003 h_chHadIso_miniAOD_[1]->
Fill (chargedHadIso);
4004 h_nHadIso_miniAOD_[1]->
Fill (neutralHadIso);
4005 h_phoIso_miniAOD_[1]->
Fill (photonIso);
4008 if ( phoIsInEndcap ) {
4009 h_phoE_miniAOD_[0][2]->Fill( photonE );
4010 h_phoEt_miniAOD_[0][2]->Fill( photonEt);
4012 h_phoERes_miniAOD_[0][2]->Fill( photonE / mcEnergy);
4013 h_phoSigmaEoE_miniAOD_[0][2] ->
Fill (sigmaEoE);
4014 h_r9_miniAOD_[0][2]->Fill( r9 );
4015 h_full5x5_r9_miniAOD_[0][2]->Fill( full5x5_r9 );
4016 h_r1_miniAOD_[0][2]->Fill( r1 );
4017 h_r2_miniAOD_[0][2]->Fill( r2 );
4018 h_sigmaIetaIeta_miniAOD_[0][2]->Fill(sigmaIetaIeta);
4019 h_full5x5_sigmaIetaIeta_miniAOD_[0][2]->Fill(full5x5_sieie);
4020 h_hOverE_miniAOD_[0][2]->Fill( hOverE );
4021 h_newhOverE_miniAOD_[0][2]->Fill( newhOverE );
4022 h_ecalRecHitSumEtConeDR04_miniAOD_[0][2]->Fill( ecalIso );
4023 h_hcalTowerSumEtConeDR04_miniAOD_[0][2]->Fill( hcalIso );
4024 h_hcalTowerBcSumEtConeDR04_miniAOD_[0][2]->Fill( newhcalIso );
4025 h_isoTrkSolidConeDR04_miniAOD_[0][2]->Fill( trkIso );
4026 h_nTrkSolidConeDR04_miniAOD_[0][2]->Fill( nIsoTrk );
4027 h_chHadIso_miniAOD_[2]->
Fill (chargedHadIso);
4028 h_nHadIso_miniAOD_[2]->
Fill (neutralHadIso);
4029 h_phoIso_miniAOD_[2]->
Fill (photonIso);
4043 h_nPho_->Fill(
float(nPho));
4050 const float PI = 3.1415927;
4054 if(phi > PI) {phi = phi -
TWOPI;}
4055 if(phi < -PI) {phi = phi +
TWOPI;}
4065 const float PI = 3.1415927;
4068 const float R_ECAL = 136.5;
4075 float ZEcal = R_ECAL*sinh(EtaParticle)+Zvertex;
4077 if(ZEcal != 0.0) Theta = atan(R_ECAL/ZEcal);
4078 if(Theta<0.0) Theta = Theta+
PI ;
4081 if( fabs(ETA) > etaBarrelEndcap )
4084 if(EtaParticle<0.0 ) Zend = -Zend ;
4085 float Zlen = Zend - Zvertex ;
4086 float RR = Zlen/sinh(EtaParticle);
4087 Theta = atan(RR/Zend);
4088 if(Theta<0.0) Theta = Theta+
PI ;
4089 ETA = -
log(
tan(0.5*Theta));
value_type const * get() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
float hcalTowerSumEtConeDR04() const
Hcal isolation sum.
const unsigned int nTracks(const reco::Vertex &sv)
ParticleType
particle types
bool isNonnull() const
Checks for non-null.
virtual ~PhotonValidator()
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
std::vector< TrackingParticle > TrackingParticleCollection
virtual double energy() const final
energy
const_iterator end() const
last iterator over the map (read only)
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Sin< T >::type sin(const T &t)
float trkSumPtSolidConeDR04() const
std::vector< GenJet > GenJetCollection
collection of GenJet objects
virtual void endRun(edm::Run const &r, edm::EventSetup const &es) override
const_iterator find(const key_type &k) const
find element with specified reference key
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< EcalRecHit >::const_iterator const_iterator
virtual double phi() const final
momentum azimuthal angle
float ecalRecHitSumEtConeDR04() const
key_type key() const
Accessor for product key.
const Vector & momentum() const
track momentum vector
static const double deltaEta
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
double dPhi(double phi1, double phi2)
reco::ConversionRefVector conversions() const
vector of references to Conversion's
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
float phiNormalization(float &a)
float sigmaIetaIeta() const
MonitorElement * book1D(Args &&...args)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
#define TWOPI
EgammaCoreTools.
float ChiSquaredProbability(double chiSquared, double nrDOF)
float hadronicOverEm() const
the total hadronic over electromagnetic fraction
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
double deltaR(double eta1, double eta2, double phi1, double phi2)
void setCurrentFolder(const std::string &fullpath)
T const * product() const
MonitorElement * book2D(Args &&...args)
std::vector< Photon > PhotonCollection
collectin of Photon objects
int nTrkSolidConeDR04() const
static const float etaBarrelEndcap
float etaTransformation(float a, float b)
static const float Z_Endcap
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void push_back(const RefToBase< T > &)
static const float R_ECAL
size_type size() const
Size of the RefVector.
virtual double et() const final
transverse energy
virtual double eta() const final
momentum pseudorapidity
virtual void dqmBeginRun(edm::Run const &r, edm::EventSetup const &theEventSetup) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
tuple size
Write out results.
Power< A, B >::type pow(const A &a, const B &b)
const_iterator begin() const
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .
PhotonValidator(const edm::ParameterSet &)