36 #include "CLHEP/Units/GlobalPhysicalConstants.h"
98 isRunCentrally_= pset.
getParameter<
bool>(
"isRunCentrally");
101 photonCollectionProducer_ = pset.
getParameter<std::string>(
"phoProducer");
102 photonCollection_ = pset.
getParameter<std::string>(
"photonCollection");
110 conversionOITrackProducer_ = pset.
getParameter<std::string>(
"conversionOITrackProducer");
111 conversionIOTrackProducer_ = pset.
getParameter<std::string>(
"conversionIOTrackProducer");
114 minPhoEtCut_ = pset.
getParameter<
double>(
"minPhoEtCut");
115 convTrackMinPtCut_ = pset.
getParameter<
double>(
"convTrackMinPtCut");
116 likelihoodCut_ = pset.
getParameter<
double>(
"likelihoodCut");
118 trkIsolExtRadius_ = pset.
getParameter<
double>(
"trkIsolExtR");
119 trkIsolInnRadius_ = pset.
getParameter<
double>(
"trkIsolInnR");
122 ecalIsolRadius_ = pset.
getParameter<
double>(
"ecalIsolR");
124 hcalIsolExtRadius_ = pset.
getParameter<
double>(
"hcalIsolExtR");
125 hcalIsolInnRadius_ = pset.
getParameter<
double>(
"hcalIsolInnR");
126 hcalHitEtLow_ = pset.
getParameter<
double>(
"minHcalHitEtCut");
128 numOfTracksInCone_ = pset.
getParameter<
int>(
"maxNumOfTracksInCone");
129 trkPtSumCut_ = pset.
getParameter<
double>(
"trkPtSumCut");
130 ecalEtSumCut_ = pset.
getParameter<
double>(
"ecalEtSumCut");
131 hcalEtSumCut_ = pset.
getParameter<
double>(
"hcalEtSumCut");
133 dCotCutValue_ = pset.
getParameter<
double>(
"dCotCutValue");
134 dCotHardCutValue_ = pset.
getParameter<
double>(
"dCotHardCutValue");
153 nRecConvAssWithEcal_=0;
163 double resMin = parameters_.getParameter<
double>(
"resMin");
164 double resMax = parameters_.getParameter<
double>(
"resMax");
165 int resBin = parameters_.getParameter<
int>(
"resBin");
167 double eMin = parameters_.getParameter<
double>(
"eMin");
168 double eMax = parameters_.getParameter<
double>(
"eMax");
169 int eBin = parameters_.getParameter<
int>(
"eBin");
171 double etMin = parameters_.getParameter<
double>(
"etMin");
172 double etMax = parameters_.getParameter<
double>(
"etMax");
173 int etBin = parameters_.getParameter<
int>(
"etBin");
175 double etScale = parameters_.getParameter<
double>(
"etScale");
177 double etaMin = parameters_.getParameter<
double>(
"etaMin");
178 double etaMax = parameters_.getParameter<
double>(
"etaMax");
179 int etaBin = parameters_.getParameter<
int>(
"etaBin");
180 int etaBin2 = parameters_.getParameter<
int>(
"etaBin2");
182 double dEtaMin = parameters_.getParameter<
double>(
"dEtaMin");
183 double dEtaMax = parameters_.getParameter<
double>(
"dEtaMax");
184 int dEtaBin = parameters_.getParameter<
int>(
"dEtaBin");
186 double phiMin = parameters_.getParameter<
double>(
"phiMin");
187 double phiMax = parameters_.getParameter<
double>(
"phiMax");
188 int phiBin = parameters_.getParameter<
int>(
"phiBin");
190 double dPhiMin = parameters_.getParameter<
double>(
"dPhiMin");
191 double dPhiMax = parameters_.getParameter<
double>(
"dPhiMax");
192 int dPhiBin = parameters_.getParameter<
int>(
"dPhiBin");
194 double rMin = parameters_.getParameter<
double>(
"rMin");
195 double rMax = parameters_.getParameter<
double>(
"rMax");
196 int rBin = parameters_.getParameter<
int>(
"rBin");
198 double zMin = parameters_.getParameter<
double>(
"zMin");
199 double zMax = parameters_.getParameter<
double>(
"zMax");
200 int zBin = parameters_.getParameter<
int>(
"zBin");
204 double r9Min = parameters_.getParameter<
double>(
"r9Min");
205 double r9Max = parameters_.getParameter<
double>(
"r9Max");
206 int r9Bin = parameters_.getParameter<
int>(
"r9Bin");
208 double dPhiTracksMin = parameters_.getParameter<
double>(
"dPhiTracksMin");
209 double dPhiTracksMax = parameters_.getParameter<
double>(
"dPhiTracksMax");
210 int dPhiTracksBin = parameters_.getParameter<
int>(
"dPhiTracksBin");
212 double dEtaTracksMin = parameters_.getParameter<
double>(
"dEtaTracksMin");
213 double dEtaTracksMax = parameters_.getParameter<
double>(
"dEtaTracksMax");
214 int dEtaTracksBin = parameters_.getParameter<
int>(
"dEtaTracksBin");
216 double dCotTracksMin = parameters_.getParameter<
double>(
"dCotTracksMin");
217 double dCotTracksMax = parameters_.getParameter<
double>(
"dCotTracksMax");
218 int dCotTracksBin = parameters_.getParameter<
int>(
"dCotTracksBin");
221 double povereMin = parameters_.getParameter<
double>(
"povereMin");
222 double povereMax = parameters_.getParameter<
double>(
"povereMax");
223 int povereBin = parameters_.getParameter<
int>(
"povereBin");
225 double eoverpMin = parameters_.getParameter<
double>(
"eoverpMin");
226 double eoverpMax = parameters_.getParameter<
double>(
"eoverpMax");
227 int eoverpBin = parameters_.getParameter<
int>(
"eoverpBin");
229 double chi2Min = parameters_.getParameter<
double>(
"chi2Min");
230 double chi2Max = parameters_.getParameter<
double>(
"chi2Max");
232 int ggMassBin = parameters_.getParameter<
int>(
"ggMassBin");
233 double ggMassMin = parameters_.getParameter<
double>(
"ggMassMin");
234 double ggMassMax = parameters_.getParameter<
double>(
"ggMassMax");
237 double rMinForXray = parameters_.getParameter<
double>(
"rMinForXray");
238 double rMaxForXray = parameters_.getParameter<
double>(
"rMaxForXray");
239 int rBinForXray = parameters_.getParameter<
int>(
"rBinForXray");
240 double zMinForXray = parameters_.getParameter<
double>(
"zMinForXray");
241 double zMaxForXray = parameters_.getParameter<
double>(
"zMaxForXray");
242 int zBinForXray = parameters_.getParameter<
int>(
"zBinForXray");
243 int zBin2ForXray = parameters_.getParameter<
int>(
"zBin2ForXray");
254 std::string histname =
"nOfSimPhotons";
255 h_nSimPho_[0] =
dbe_->
book1D(histname,
"# of Sim photons per event ",20,-0.5,19.5);
256 histname =
"SimPhoMotherEt";
257 h_SimPhoMotherEt_[0] =
dbe_->
book1D(histname,
"Sim photon Mother tranverse energy spectrum",etBin,etMin,etMax);
258 h_SimPhoMotherEta_[0] =
dbe_->
book1D(
"SimPhoMotherEta",
" Sim Photon Mother Eta ",etaBin,etaMin, etaMax) ;
259 histname =
"SimPhoMotherEtMatched";
260 h_SimPhoMotherEt_[1] =
dbe_->
book1D(histname,
"Sim photon matched by a reco Photon: Mother tranverse energy spectrum",etBin,etMin,etMax);
261 h_SimPhoMotherEta_[1] =
dbe_->
book1D(
"SimPhoMotherEtaMatched",
" Sim Photon matched by a reco Photon: Mother Eta ",etaBin,etaMin, etaMax) ;
263 histname =
"h_SimPhoEta";
264 h_SimPho_[0] =
dbe_->
book1D(histname,
" All photons simulated #eta",etaBin,etaMin, etaMax);
265 histname =
"h_SimPhoPhi";
266 h_SimPho_[1] =
dbe_->
book1D(histname,
" All photons simulated #phi",phiBin,phiMin, phiMax);
267 histname =
"h_SimPhoEt";
268 h_SimPho_[2] =
dbe_->
book1D(histname,
" All photons simulated Et",etBin,etMin, etMax);
270 histname =
"nOfSimPhotonsMatched";
271 h_nSimPho_[1] =
dbe_->
book1D(histname,
"# of Sim photons matched by a reco Photon per event ",20,-0.5,19.5);
272 histname =
"h_MatchedSimPhoEta";
273 h_MatchedSimPho_[0] =
dbe_->
book1D(histname,
" Matching photons simulated #eta",etaBin,etaMin, etaMax);
274 histname =
"h_MatchedSimPhoPhi";
275 h_MatchedSimPho_[1] =
dbe_->
book1D(histname,
" Matching photons simulated #phi",phiBin,phiMin, phiMax);
276 histname =
"h_MatchedSimPhoEt";
277 h_MatchedSimPho_[2] =
dbe_->
book1D(histname,
" Matching photons simulated Et",etBin,etMin, etMax);
279 histname =
"h_MatchedSimPhoBadChEta";
280 h_MatchedSimPhoBadCh_[0] =
dbe_->
book1D(histname,
" Matching photons simulated #eta",etaBin,etaMin, etaMax);
281 histname =
"h_MatchedSimPhoBadChPhi";
282 h_MatchedSimPhoBadCh_[1] =
dbe_->
book1D(histname,
" Matching photons simulated #phi",phiBin,phiMin, phiMax);
283 histname =
"h_MatchedSimPhoBadChEt";
284 h_MatchedSimPhoBadCh_[2] =
dbe_->
book1D(histname,
" Matching photons simulated Et",etBin,etMin, etMax);
288 histname =
"nOfSimConversions";
289 h_nSimConv_[0] =
dbe_->
book1D(histname,
"# of Sim conversions per event ",20,-0.5,19.5);
291 histname =
"h_AllSimConvEta";
292 h_AllSimConv_[0] =
dbe_->
book1D(histname,
" All conversions: simulated #eta",etaBin2,etaMin,etaMax);
293 histname =
"h_AllSimConvPhi";
294 h_AllSimConv_[1] =
dbe_->
book1D(histname,
" All conversions: simulated #phi",phiBin,phiMin,phiMax);
295 histname =
"h_AllSimConvR";
296 h_AllSimConv_[2] =
dbe_->
book1D(histname,
" All conversions: simulated R",rBin,rMin,rMax);
297 histname =
"h_AllSimConvZ";
298 h_AllSimConv_[3] =
dbe_->
book1D(histname,
" All conversions: simulated Z",zBin,zMin,zMax);
299 histname =
"h_AllSimConvEt";
300 h_AllSimConv_[4] =
dbe_->
book1D(histname,
" All conversions: simulated Et",etBin,etMin,etMax);
302 histname =
"nOfVisSimConversions";
303 h_nSimConv_[1] =
dbe_->
book1D(histname,
"# of Sim conversions per event ",20,-0.5,19.5);
304 histname =
"h_VisSimConvEta";
305 h_VisSimConv_[0] =
dbe_->
book1D(histname,
" All vis conversions: simulated #eta",etaBin2,etaMin, etaMax);
306 histname =
"h_VisSimConvPhi";
307 h_VisSimConv_[1] =
dbe_->
book1D(histname,
" All vis conversions: simulated #phi",phiBin,phiMin, phiMax);
308 histname =
"h_VisSimConvR";
309 h_VisSimConv_[2] =
dbe_->
book1D(histname,
" All vis conversions: simulated R",rBin,rMin,rMax);
310 histname =
"h_VisSimConvZ";
311 h_VisSimConv_[3] =
dbe_->
book1D(histname,
" All vis conversions: simulated Z",zBin,zMin, zMax);
312 histname =
"h_VisSimConvEt";
313 h_VisSimConv_[4] =
dbe_->
book1D(histname,
" All vis conversions: simulated Et",etBin,etMin, etMax);
315 histname =
"h_SimConvOneTracksEta";
316 h_SimConvOneTracks_[0] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
317 histname =
"h_SimConvOneTracksPhi";
318 h_SimConvOneTracks_[1] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
319 histname =
"h_SimConvOneTracksR";
320 h_SimConvOneTracks_[2] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco tracks: simulated R",rBin,rMin, rMax);
321 histname =
"h_SimConvOneTracksZ";
322 h_SimConvOneTracks_[3] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Z",zBin,zMin, zMax);
323 histname =
"h_SimConvOneTracksEt";
324 h_SimConvOneTracks_[4] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco tracks: simulated Et",etBin,etMin, etMax);
326 histname =
"h_SimConvTwoMTracksEta";
327 h_SimConvTwoMTracks_[0] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated #eta",etaBin2,etaMin, etaMax);
328 histname =
"h_SimConvTwoMTracksPhi";
329 h_SimConvTwoMTracks_[1] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated #phi",phiBin,phiMin, phiMax);
330 histname =
"h_SimConvTwoMTracksR";
331 h_SimConvTwoMTracks_[2] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated R",rBin,rMin, rMax);
332 histname =
"h_SimConvTwoMTracksZ";
333 h_SimConvTwoMTracks_[3] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Z",zBin,zMin, zMax);
334 histname =
"h_SimConvTwoMTracksEt";
335 h_SimConvTwoMTracks_[4] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks: simulated Et",etBin,etMin, etMax);
337 histname =
"h_SimConvTwoTracksEta";
338 h_SimConvTwoTracks_[0] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
339 histname =
"h_SimConvTwoTracksPhi";
340 h_SimConvTwoTracks_[1] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
341 histname =
"h_SimConvTwoTracksR";
342 h_SimConvTwoTracks_[2] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco tracks: simulated R",rBin,rMin, rMax);
343 histname =
"h_SimConvTwoTracksZ";
344 h_SimConvTwoTracks_[3] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Z",zBin,zMin, zMax);
345 histname =
"h_SimConvTwoTracksEt";
346 h_SimConvTwoTracks_[4] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco tracks: simulated Et",etBin,etMin, etMax);
348 histname =
"h_SimConvOneMTracksEta";
349 h_SimConvOneMTracks_[0] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated #eta",etaBin2,etaMin, etaMax);
350 histname =
"h_SimConvOneMTracksPhi";
351 h_SimConvOneMTracks_[1] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated #phi",phiBin,phiMin, phiMax);
352 histname =
"h_SimConvOneMTracksR";
353 h_SimConvOneMTracks_[2] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated R",rBin,rMin, rMax);
354 histname =
"h_SimConvOneMTracksZ";
355 h_SimConvOneMTracks_[3] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Z",zBin,zMin, zMax);
356 histname =
"h_SimConvOneMTracksEt";
357 h_SimConvOneMTracks_[4] =
dbe_->
book1D(histname,
" All vis conversions with 1 reco-matching tracks: simulated Et",etBin,etMin, etMax);
359 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0";
360 h_SimConvTwoMTracksAndVtxPGT0_[0] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",etaBin2,etaMin, etaMax);
361 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0";
362 h_SimConvTwoMTracksAndVtxPGT0_[1] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",phiBin,phiMin, phiMax);
363 histname =
"h_SimConvTwoMTracksRAndVtxPGT0";
364 h_SimConvTwoMTracksAndVtxPGT0_[2] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",rBin,rMin, rMax);
365 histname =
"h_SimConvTwoMTracksZAndVtxPGT0";
366 h_SimConvTwoMTracksAndVtxPGT0_[3] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",zBin,zMin, zMax);
367 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0";
368 h_SimConvTwoMTracksAndVtxPGT0_[4] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",etBin,etMin, etMax);
370 histname =
"h_SimConvTwoMTracksEtaAndVtxPGT0005";
371 h_SimConvTwoMTracksAndVtxPGT0005_[0] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #eta",etaBin2,etaMin, etaMax);
372 histname =
"h_SimConvTwoMTracksPhiAndVtxPGT0005";
373 h_SimConvTwoMTracksAndVtxPGT0005_[1] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated #phi",phiBin,phiMin, phiMax);
374 histname =
"h_SimConvTwoMTracksRAndVtxPGT0005";
375 h_SimConvTwoMTracksAndVtxPGT0005_[2] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated R",rBin,rMin, rMax);
376 histname =
"h_SimConvTwoMTracksZAndVtxPGT0005";
377 h_SimConvTwoMTracksAndVtxPGT0005_[3] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Z",zBin,zMin, zMax);
378 histname =
"h_SimConvTwoMTracksEtAndVtxPGT0005";
379 h_SimConvTwoMTracksAndVtxPGT0005_[4] =
dbe_->
book1D(histname,
" All vis conversions with 2 reco-matching tracks + vertex: simulated Et",etBin,etMin, etMax);
382 h_SimConvEtaPix_[0] =
dbe_->
book1D(
"simConvEtaPix",
" sim converted Photon Eta: Pix ",etaBin,etaMin, etaMax) ;
383 h_simTkPt_ =
dbe_->
book1D(
"simTkPt",
"Sim conversion tracks pt ",etBin*3,0.,etMax);
384 h_simTkEta_ =
dbe_->
book1D(
"simTkEta",
"Sim conversion tracks eta ",etaBin,etaMin,etaMax);
386 if ( ! isRunCentrally_ ) {
387 h_simConvVtxRvsZ_[0] =
dbe_->
book2D(
"simConvVtxRvsZAll",
" Photon Sim conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
388 h_simConvVtxRvsZ_[1] =
dbe_->
book2D(
"simConvVtxRvsZBarrel",
" Photon Sim conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
389 h_simConvVtxRvsZ_[2] =
dbe_->
book2D(
"simConvVtxRvsZEndcap",
" Photon Sim conversion vtx position",zBin2ForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
390 h_simConvVtxYvsX_ =
dbe_->
book2D(
"simConvVtxYvsXTrkBarrel",
" Photon Sim conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
394 histname =
"h_SimJetEta";
395 h_SimJet_[0] =
dbe_->
book1D(histname,
" Jet bkg simulated #eta",etaBin,etaMin, etaMax);
396 histname =
"h_SimJetPhi";
397 h_SimJet_[1] =
dbe_->
book1D(histname,
" Jet bkg simulated #phi",phiBin,phiMin, phiMax);
398 histname =
"h_SimJetEt";
399 h_SimJet_[2] =
dbe_->
book1D(histname,
" Jet bkg simulated Et",etBin,etMin, etMax);
401 histname =
"h_MatchedSimJetEta";
402 h_MatchedSimJet_[0] =
dbe_->
book1D(histname,
" Matching jet simulated #eta",etaBin,etaMin, etaMax);
403 histname =
"h_MatchedSimJetPhi";
404 h_MatchedSimJet_[1] =
dbe_->
book1D(histname,
" Matching jet simulated #phi",phiBin,phiMin, phiMax);
405 histname =
"h_MatchedSimJetEt";
406 h_MatchedSimJet_[2] =
dbe_->
book1D(histname,
" Matching jet simulated Et",etBin,etMin, etMax);
408 histname =
"h_MatchedSimJetBadChEta";
409 h_MatchedSimJetBadCh_[0] =
dbe_->
book1D(histname,
" Matching jet simulated #eta",etaBin,etaMin, etaMax);
410 histname =
"h_MatchedSimJetBadChPhi";
411 h_MatchedSimJetBadCh_[1] =
dbe_->
book1D(histname,
" Matching jet simulated #phi",phiBin,phiMin, phiMax);
412 histname =
"h_MatchedSimJetBadChEt";
413 h_MatchedSimJetBadCh_[2] =
dbe_->
book1D(histname,
" Matching jet simulated Et",etBin,etMin, etMax);
418 histname =
"nOfPhotons";
419 h_nPho_ =
dbe_->
book1D(histname,
"# of Reco photons per event ",20,-0.5,19.5);
421 h_scBkgEta_ =
dbe_->
book1D(
"scBkgEta",
" SC Bkg Eta ",etaBin,etaMin, etaMax) ;
422 h_scBkgPhi_ =
dbe_->
book1D(
"scBkgPhi",
" SC Bkg Phi ",phiBin,phiMin,phiMax) ;
424 h_phoBkgEta_ =
dbe_->
book1D(
"phoBkgEta",
" Photon Bkg Eta ",etaBin,etaMin, etaMax) ;
425 h_phoBkgPhi_ =
dbe_->
book1D(
"phoBkgPhi",
" Photon Bkg Phi ",phiBin,phiMin,phiMax) ;
427 h_phoBkgDEta_ =
dbe_->
book1D(
"phoBkgDEta",
" Photon Eta(rec)-Eta(true) ",dEtaBin,dEtaMin, dEtaMax) ;
428 h_phoBkgDPhi_ =
dbe_->
book1D(
"phoBkgDPhi",
" Photon Phi(rec)-Phi(true) ",dPhiBin,dPhiMin,dPhiMax) ;
430 histname =
"phoBkgE";
431 h_phoBkgE_[0]=
dbe_->
book1D(histname+
"All",
" Photon Bkg Energy: All ecal ", eBin,eMin, eMax);
432 h_phoBkgE_[1]=
dbe_->
book1D(histname+
"Barrel",
" Photon Bkg Energy: barrel ",eBin,eMin, eMax);
433 h_phoBkgE_[2]=
dbe_->
book1D(histname+
"Endcap",
" Photon Bkg Energy: Endcap ",eBin,eMin, eMax);
435 histname =
"phoBkgEt";
436 h_phoBkgEt_[0] =
dbe_->
book1D(histname+
"All",
" Photon Bkg Transverse Energy: All ecal ", etBin,etMin, etMax);
437 h_phoBkgEt_[1] =
dbe_->
book1D(histname+
"Barrel",
" Photon Bkg Transverse Energy: Barrel ",etBin,etMin, etMax);
438 h_phoBkgEt_[2] =
dbe_->
book1D(histname+
"Endcap",
" Photon BkgTransverse Energy: Endcap ",etBin,etMin, etMax);
442 h_scBkgE_[0] =
dbe_->
book1D(histname+
"All",
" SC bkg Energy: All Ecal ",eBin,eMin, eMax);
443 h_scBkgE_[1] =
dbe_->
book1D(histname+
"Barrel",
" SC bkg Energy: Barrel ",eBin,eMin, eMax);
444 h_scBkgE_[2] =
dbe_->
book1D(histname+
"Endcap",
" SC bkg Energy: Endcap ",eBin,eMin, eMax);
445 histname =
"scBkgEt";
446 h_scBkgEt_[0] =
dbe_->
book1D(histname+
"All",
" SC bkg Et: All Ecal ",eBin,eMin, eMax);
447 h_scBkgEt_[1] =
dbe_->
book1D(histname+
"Barrel",
" SC bkg Et: Barrel ",eBin,eMin, eMax);
448 h_scBkgEt_[2] =
dbe_->
book1D(histname+
"Endcap",
" SC bkg Et: Endcap ",eBin,eMin, eMax);
451 h_r9Bkg_[0] =
dbe_->
book1D(histname+
"All",
" r9 bkg: All Ecal",r9Bin,r9Min, r9Max) ;
452 h_r9Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
" r9 bkg: Barrel ",r9Bin,r9Min, r9Max) ;
453 h_r9Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" r9 bkg: Endcap ",r9Bin,r9Min, r9Max) ;
455 histname=
"R9VsEtaBkg";
456 h2_r9VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
458 histname=
"R9VsEtBkg";
459 h2_r9VsEtBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
462 h_r1Bkg_[0] =
dbe_->
book1D(histname+
"All",
" Bkg photon e1x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
463 h_r1Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
" Bkg photon e1x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
464 h_r1Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" Bkg photon e1x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
466 histname=
"R1VsEtaBkg";
467 h2_r1VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
468 histname=
"pR1VsEtaBkg";
469 p_r1VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
471 histname=
"R1VsEtBkg";
472 h2_r1VsEtBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
473 histname=
"pR1VsEtBkg";
474 p_r1VsEtBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
477 h_r2Bkg_[0] =
dbe_->
book1D(histname+
"All",
" Bkg photon e2x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
478 h_r2Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
" Bkg photon e2x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
479 h_r2Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" Bkg photon e2x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
481 histname=
"R2VsEtaBkg";
482 h2_r2VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
483 histname=
"pR2VsEtaBkg";
484 p_r2VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
486 histname=
"R2VsEtBkg";
487 h2_r2VsEtBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
488 histname=
"pR2VsEtBkg";
489 p_r2VsEtBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
492 histname =
"sigmaIetaIetaBkg";
493 h_sigmaIetaIetaBkg_[0] =
dbe_->
book1D(histname+
"All",
"Bkg sigmaIetaIeta: All Ecal",100,0., 0.1) ;
494 h_sigmaIetaIetaBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"Bkg sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
495 h_sigmaIetaIetaBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"Bkg sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
497 histname=
"sigmaIetaIetaVsEtaBkg";
498 h2_sigmaIetaIetaVsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
499 histname=
"pSigmaIetaIetaVsEtaBkg";
500 p_sigmaIetaIetaVsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
502 histname=
"sigmaIetaIetaVsEtBkg";
503 h2_sigmaIetaIetaVsEtBkg_[0] =
dbe_->
book2D(histname+
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
504 h2_sigmaIetaIetaVsEtBkg_[1] =
dbe_->
book2D(histname+
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
505 h2_sigmaIetaIetaVsEtBkg_[2] =
dbe_->
book2D(histname+
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
507 histname=
"pSigmaIetaIetaVsEtBkg";
508 p_sigmaIetaIetaVsEtBkg_[0] =
dbe_->
bookProfile(histname+
"All",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
509 p_sigmaIetaIetaVsEtBkg_[1] =
dbe_->
bookProfile(histname+
"Barrel",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
510 p_sigmaIetaIetaVsEtBkg_[2] =
dbe_->
bookProfile(histname+
"Endcap",
" Bkg photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
512 histname =
"hOverEBkg";
513 h_hOverEBkg_[0] =
dbe_->
book1D(histname+
"All",
"H/E bkg: All Ecal",100,0., 1.) ;
514 h_hOverEBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"H/E bkg: Barrel ", 100,0., 1.) ;
515 h_hOverEBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"H/E bkg: Endcap ", 100,0., 1.) ;
517 histname=
"hOverEVsEtaBkg";
518 h2_hOverEVsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
519 histname=
"pHOverEVsEtaBkg";
520 p_hOverEVsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
522 histname=
"hOverEVsEtBkg";
523 h2_hOverEVsEtBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
524 histname=
"pHOverEVsEtBkg";
525 p_hOverEVsEtBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
527 histname =
"ecalRecHitSumEtConeDR04Bkg";
528 h_ecalRecHitSumEtConeDR04Bkg_[0] =
dbe_->
book1D(histname+
"All",
"bkg ecalRecHitSumEtDR04: All Ecal",etBin,etMin,50.);
529 h_ecalRecHitSumEtConeDR04Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"bkg ecalRecHitSumEtDR04: Barrel ", etBin,etMin,50.);
530 h_ecalRecHitSumEtConeDR04Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"bkg ecalRecHitSumEtDR04: Endcap ", etBin,etMin,50.);
532 histname=
"ecalRecHitSumEtConeDR04VsEtaBkg";
533 h2_ecalRecHitSumEtConeDR04VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" bkg ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
534 histname=
"pEcalRecHitSumEtConeDR04VsEtaBkg";
535 p_ecalRecHitSumEtConeDR04VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
"bkg photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
537 histname=
"ecalRecHitSumEtConeDR04VsEtBkg";
538 h2_ecalRecHitSumEtConeDR04VsEtBkg_[0] =
dbe_->
book2D(histname+
"All",
" Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
539 h2_ecalRecHitSumEtConeDR04VsEtBkg_[1] =
dbe_->
book2D(histname+
"Barrel",
" Bkg ecalRecHitSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
540 h2_ecalRecHitSumEtConeDR04VsEtBkg_[2] =
dbe_->
book2D(histname+
"Endcap",
" Bkg ecalRecHitSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
541 histname=
"pEcalRecHitSumEtConeDR04VsEtBkg";
542 p_ecalRecHitSumEtConeDR04VsEtBkg_[0] =
dbe_->
bookProfile(histname+
"All",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
543 p_ecalRecHitSumEtConeDR04VsEtBkg_[1] =
dbe_->
bookProfile(histname+
"Barrel",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
544 p_ecalRecHitSumEtConeDR04VsEtBkg_[2] =
dbe_->
bookProfile(histname+
"Endcap",
"Bkg ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
546 histname =
"hcalTowerSumEtConeDR04Bkg";
547 h_hcalTowerSumEtConeDR04Bkg_[0] =
dbe_->
book1D(histname+
"All",
"bkg hcalTowerSumEtDR04: All Ecal",etBin,etMin,20.);
548 h_hcalTowerSumEtConeDR04Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"bkg hcalTowerSumEtDR04: Barrel ", etBin,etMin,20.);
549 h_hcalTowerSumEtConeDR04Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"bkg hcalTowerSumEtDR04: Endcap ", etBin,etMin,20.);
551 histname=
"hcalTowerSumEtConeDR04VsEtaBkg";
552 h2_hcalTowerSumEtConeDR04VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" bkg hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
553 histname=
"pHcalTowerSumEtConeDR04VsEtaBkg";
554 p_hcalTowerSumEtConeDR04VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
"bkg photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
556 histname=
"hcalTowerSumEtConeDR04VsEtBkg";
557 h2_hcalTowerSumEtConeDR04VsEtBkg_[0] =
dbe_->
book2D(histname+
"All",
" Bkg hcalTowerSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
558 h2_hcalTowerSumEtConeDR04VsEtBkg_[1] =
dbe_->
book2D(histname+
"Barrel",
" Bkg hcalTowerSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
559 h2_hcalTowerSumEtConeDR04VsEtBkg_[2] =
dbe_->
book2D(histname+
"Endcap",
" Bkg hcalTowerSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
560 histname=
"pHcalTowerSumEtConeDR04VsEtBkg";
561 p_hcalTowerSumEtConeDR04VsEtBkg_[0] =
dbe_->
bookProfile(histname+
"All",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
562 p_hcalTowerSumEtConeDR04VsEtBkg_[1] =
dbe_->
bookProfile(histname+
"Barrel",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
563 p_hcalTowerSumEtConeDR04VsEtBkg_[2] =
dbe_->
bookProfile(histname+
"Endcap",
"Bkg hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
565 histname =
"isoTrkSolidConeDR04Bkg";
566 h_isoTrkSolidConeDR04Bkg_[0] =
dbe_->
book1D(histname+
"All",
"isoTrkSolidConeDR04 Bkg: All Ecal",etBin,etMin,etMax*0.1);
567 h_isoTrkSolidConeDR04Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"isoTrkSolidConeDR04 Bkg: Barrel ", etBin,etMin,etMax*0.1);
568 h_isoTrkSolidConeDR04Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"isoTrkSolidConeDR04 Bkg: Endcap ", etBin,etMin,etMax*0.1);
570 histname=
"isoTrkSolidConeDR04VsEtaBkg";
571 h2_isoTrkSolidConeDR04VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
572 histname=
"pIsoTrkSolidConeDR04VsEtaBkg";
573 p_isoTrkSolidConeDR04VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
575 histname=
"isoTrkSolidConeDR04VsEtBkg";
576 h2_isoTrkSolidConeDR04VsEtBkg_[0] =
dbe_->
book2D(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
577 h2_isoTrkSolidConeDR04VsEtBkg_[1] =
dbe_->
book2D(histname+
"Barrel",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
578 h2_isoTrkSolidConeDR04VsEtBkg_[2] =
dbe_->
book2D(histname+
"Endcap",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
579 histname=
"pIsoTrkSolidConeDR04VsEtBkg";
580 p_isoTrkSolidConeDR04VsEtBkg_[0] =
dbe_->
bookProfile(histname+
"All",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
581 p_isoTrkSolidConeDR04VsEtBkg_[1] =
dbe_->
bookProfile(histname+
"Barrel",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
582 p_isoTrkSolidConeDR04VsEtBkg_[2] =
dbe_->
bookProfile(histname+
"Endcap",
" Bkg photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
584 histname =
"nTrkSolidConeDR04Bkg";
585 h_nTrkSolidConeDR04Bkg_[0] =
dbe_->
book1D(histname+
"All",
"Bkg nTrkSolidConeDR04: All Ecal",20,0., 20) ;
586 h_nTrkSolidConeDR04Bkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"Bkg nTrkSolidConeDR04: Barrel ", 20,0., 20) ;
587 h_nTrkSolidConeDR04Bkg_[2] =
dbe_->
book1D(histname+
"Endcap",
"Bkg nTrkSolidConeDR04: Endcap ", 20,0., 20) ;
589 histname=
"nTrkSolidConeDR04VsEtaBkg";
590 h2_nTrkSolidConeDR04VsEtaBkg_ =
dbe_->
book2D(histname+
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
591 histname=
"p_nTrkSolidConeDR04VsEtaBkg";
592 p_nTrkSolidConeDR04VsEtaBkg_ =
dbe_->
bookProfile(histname+
"All",
" Bkg photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
594 histname=
"nTrkSolidConeDR04VsEtBkg";
595 h2_nTrkSolidConeDR04VsEtBkg_[0] =
dbe_->
book2D(histname+
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
596 h2_nTrkSolidConeDR04VsEtBkg_[1] =
dbe_->
book2D(histname+
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
597 h2_nTrkSolidConeDR04VsEtBkg_[2] =
dbe_->
book2D(histname+
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
599 histname=
"pnTrkSolidConeDR04VsEtBkg";
600 p_nTrkSolidConeDR04VsEtBkg_[0] =
dbe_->
bookProfile(histname+
"All",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
601 p_nTrkSolidConeDR04VsEtBkg_[1] =
dbe_->
bookProfile(histname+
"Barrel",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
602 p_nTrkSolidConeDR04VsEtBkg_[2] =
dbe_->
bookProfile(histname+
"Endcap",
"Bkg photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
604 h_convEtaBkg_ =
dbe_->
book1D(
"convEtaBkg",
" converted Photon Bkg Eta 2 tracks",etaBin,etaMin, etaMax) ;
605 h_convPhiBkg_ =
dbe_->
book1D(
"convPhiBkg",
" converted Photon Bkg Phi ",phiBin,phiMin,phiMax) ;
607 histname=
"mvaOutBkg";
608 h_mvaOutBkg_[0] =
dbe_->
book1D(histname+
"All",
" mvaOut conversions bkg : All Ecal",100, 0., 1.);
609 h_mvaOutBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
" mvaOut conversions bkg: Barrel Ecal",100, 0., 1.);
610 h_mvaOutBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" mvaOut conversions bkg: Endcap Ecal",100, 0., 1.);
612 histname=
"PoverEtracksBkg";
613 h_PoverETracksBkg_[0] =
dbe_->
book1D(histname+
"All",
" bkg photons conversion p/E: all Ecal ",povereBin, povereMin, povereMax);
614 h_PoverETracksBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"bkg photons conversion p/E: Barrel Ecal",povereBin, povereMin, povereMax);
615 h_PoverETracksBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" bkg photons conversion p/E: Endcap Ecal ",povereBin, povereMin, povereMax);
617 histname=
"EoverPtracksBkg";
618 h_EoverPTracksBkg_[0] =
dbe_->
book1D(histname+
"All",
" bkg photons conversion E/p: all Ecal ",eoverpBin, eoverpMin, eoverpMax);
619 h_EoverPTracksBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
"bkg photons conversion E/p: Barrel Ecal",eoverpBin, eoverpMin, eoverpMax);
620 h_EoverPTracksBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" bkg photons conversion E/p: Endcap Ecal ",eoverpBin, eoverpMin, eoverpMax);
622 histname=
"hDCotTracksBkg";
623 h_DCotTracksBkg_[0]=
dbe_->
book1D(histname+
"All",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
624 h_DCotTracksBkg_[1]=
dbe_->
book1D(histname+
"Barrel",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
625 h_DCotTracksBkg_[2]=
dbe_->
book1D(histname+
"Endcap",
" bkg Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
627 histname=
"hDPhiTracksAtVtxBkg";
628 h_DPhiTracksAtVtxBkg_[0] =
dbe_->
book1D(histname+
"All",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
629 h_DPhiTracksAtVtxBkg_[1] =
dbe_->
book1D(histname+
"Barrel",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
630 h_DPhiTracksAtVtxBkg_[2] =
dbe_->
book1D(histname+
"Endcap",
" Bkg Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
632 if ( ! isRunCentrally_ ) {
633 h_convVtxRvsZBkg_[0] =
dbe_->
book2D(
"convVtxRvsZAllBkg",
" Bkg Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
634 h_convVtxRvsZBkg_[1] =
dbe_->
book2D(
"convVtxRvsZBarrelBkg",
" Bkg Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
635 h_convVtxYvsXBkg_ =
dbe_->
book2D(
"convVtxYvsXTrkBarrelBkg",
" Bkg Photon Reco conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
641 h_phoEta_[0] =
dbe_->
book1D(
"phoEta",
" Photon Eta ",etaBin,etaMin, etaMax) ;
642 h_phoPhi_[0] =
dbe_->
book1D(
"phoPhi",
" Photon Phi ",phiBin,phiMin,phiMax) ;
644 h_phoDEta_[0] =
dbe_->
book1D(
"phoDEta",
" Photon Eta(rec)-Eta(true) ",dEtaBin,dEtaMin, dEtaMax) ;
645 h_phoDPhi_[0] =
dbe_->
book1D(
"phoDPhi",
" Photon Phi(rec)-Phi(true) ",dPhiBin,dPhiMin,dPhiMax) ;
647 h_scEta_[0] =
dbe_->
book1D(
"scEta",
" SC Eta ",etaBin,etaMin, etaMax);
648 h_scPhi_[0] =
dbe_->
book1D(
"scPhi",
" SC Phi ",phiBin,phiMin,phiMax);
650 h_scEtaWidth_[0] =
dbe_->
book1D(
"scEtaWidth",
" SC Eta Width ",100,0., 0.1);
651 h_scPhiWidth_[0] =
dbe_->
book1D(
"scPhiWidth",
" SC Phi Width ",100,0., 1.);
655 h_scE_[0][0] =
dbe_->
book1D(histname+
"All",
" SC Energy: All Ecal ",eBin,eMin, eMax);
656 h_scE_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" SC Energy: Barrel ",eBin,eMin, eMax);
657 h_scE_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" SC Energy: Endcap ",eBin,eMin, eMax);
660 h_psE_ =
dbe_->
book1D(histname+
"Endcap",
" ES Energy ",eBin,eMin, 50.);
664 h_scEt_[0][0] =
dbe_->
book1D(histname+
"All",
" SC Et: All Ecal ",etBin,etMin, etMax) ;
665 h_scEt_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" SC Et: Barrel",etBin,etMin, etMax) ;
666 h_scEt_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" SC Et: Endcap",etBin,etMin, etMax) ;
669 h_r9_[0][0] =
dbe_->
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
670 h_r9_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
671 h_r9_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
673 histname =
"r9ConvFromMC";
674 h_r9_[1][0] =
dbe_->
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
675 h_r9_[1][1] =
dbe_->
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
676 h_r9_[1][2] =
dbe_->
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
678 histname =
"r9ConvFromReco";
679 h_r9_[2][0] =
dbe_->
book1D(histname+
"All",
" r9: All Ecal",r9Bin,r9Min, r9Max) ;
680 h_r9_[2][1] =
dbe_->
book1D(histname+
"Barrel",
" r9: Barrel ",r9Bin,r9Min, r9Max) ;
681 h_r9_[2][2] =
dbe_->
book1D(histname+
"Endcap",
" r9: Endcap ",r9Bin,r9Min, r9Max) ;
684 h2_r9VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
685 h2_r9VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons r9 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
688 h2_r9VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
689 h2_r9VsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons r9 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
692 h_r1_[0][0] =
dbe_->
book1D(histname+
"All",
" e1x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
693 h_r1_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" e1x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
694 h_r1_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" e1x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
697 h2_r1VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
698 h2_r1VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons e1x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
701 h2_r1VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
702 h2_r1VsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons e1x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
705 h_r2_[0][0] =
dbe_->
book1D(histname+
"All",
" e2x5/e5x5: All Ecal",r9Bin,r9Min, r9Max) ;
706 h_r2_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" e2x5/e5x5: Barrel ",r9Bin,r9Min, r9Max) ;
707 h_r2_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" e2x5/e5x5: Endcap ",r9Bin,r9Min, r9Max) ;
710 h2_r2VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
711 h2_r2VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons e2x5/e5x5 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,1.1);
714 h2_r2VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
715 h2_r2VsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons e2x5/e5x5 vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,1.1);
717 histname =
"sigmaIetaIeta";
718 h_sigmaIetaIeta_[0][0] =
dbe_->
book1D(histname+
"All",
"sigmaIetaIeta: All Ecal",100,0., 0.1) ;
719 h_sigmaIetaIeta_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"sigmaIetaIeta: Barrel ", 100,0., 0.05) ;
720 h_sigmaIetaIeta_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"sigmaIetaIeta: Endcap ", 100,0., 0.1) ;
722 histname=
"sigmaIetaIetaVsEta";
723 h2_sigmaIetaIetaVsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons sigmaIetaIeta vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
724 h2_sigmaIetaIetaVsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons sigmaIetaIeta vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
726 histname=
"sigmaIetaIetaVsEt";
727 h2_sigmaIetaIetaVsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
728 h2_sigmaIetaIetaVsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons sigmaIetaIeta vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
731 h_hOverE_[0][0] =
dbe_->
book1D(histname+
"All",
"H/E: All Ecal",100,0., 0.1) ;
732 h_hOverE_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"H/E: Barrel ", 100,0., 0.1) ;
733 h_hOverE_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"H/E: Endcap ", 100,0., 0.1) ;
735 histname=
"hOverEVsEta";
736 h2_hOverEVsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
737 h2_hOverEVsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons H/E vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
739 histname=
"hOverEVsEt";
740 h2_hOverEVsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
741 h2_hOverEVsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
743 histname=
"pHoverEVsEta";
744 p_hOverEVsEta_[0] =
dbe_->
bookProfile(histname+
"All",
" All photons H/E vs #eta: all Ecal ", etaBin2,etaMin, etaMax,100, 0.,0.1);
745 p_hOverEVsEta_[1] =
dbe_->
bookProfile(histname+
"Unconv",
" All photons H/E vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0.,0.1);
747 histname=
"pHoverEVsEt";
748 p_hOverEVsEt_[0] =
dbe_->
bookProfile(histname+
"All",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
749 p_hOverEVsEt_[1] =
dbe_->
bookProfile(histname+
"Unconv",
" All photons H/E vs Et: all Ecal ",etBin,etMin, etMax,100, 0.,0.1);
752 histname =
"ecalRecHitSumEtConeDR04";
753 h_ecalRecHitSumEtConeDR04_[0][0] =
dbe_->
book1D(histname+
"All",
"ecalRecHitSumEtDR04: All Ecal",etBin,etMin,20.);
754 h_ecalRecHitSumEtConeDR04_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"ecalRecHitSumEtDR04: Barrel ", etBin,etMin,20.);
755 h_ecalRecHitSumEtConeDR04_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"ecalRecHitSumEtDR04: Endcap ", etBin,etMin,20.);
757 histname=
"ecalRecHitSumEtConeDR04VsEta";
758 h2_ecalRecHitSumEtConeDR04VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale);
759 h2_ecalRecHitSumEtConeDR04VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*etScale);
760 histname=
"pEcalRecHitSumEtConeDR04VsEta";
761 p_ecalRecHitSumEtConeDR04VsEta_[0] =
dbe_->
bookProfile(histname+
"All",
"All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
762 p_ecalRecHitSumEtConeDR04VsEta_[1] =
dbe_->
bookProfile(histname+
"Unconv",
"All photons ecalRecHitSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*etScale,
"");
764 histname=
"ecalRecHitSumEtConeDR04VsEt";
765 h2_ecalRecHitSumEtConeDR04VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons ecalRecHitSumEtDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
766 h2_ecalRecHitSumEtConeDR04VsEt_[1] =
dbe_->
book2D(histname+
"Barrel",
" All photons ecalRecHitSumEtDR04 vs Et: Barrel ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
767 h2_ecalRecHitSumEtConeDR04VsEt_[2] =
dbe_->
book2D(histname+
"Endcap",
" All photons ecalRecHitSumEtDR04 vs Et: Endcap ",etBin,etMin, etMax, etBin,etMin,etMax*etScale);
768 histname=
"pEcalRecHitSumEtConeDR04VsEt";
769 p_ecalRecHitSumEtConeDR04VsEt_[0] =
dbe_->
bookProfile(histname+
"All",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
770 p_ecalRecHitSumEtConeDR04VsEt_[1] =
dbe_->
bookProfile(histname+
"Barrel",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
771 p_ecalRecHitSumEtConeDR04VsEt_[2] =
dbe_->
bookProfile(histname+
"Endcap",
"All photons ecalRecHitSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
773 histname =
"hcalTowerSumEtConeDR04";
774 h_hcalTowerSumEtConeDR04_[0][0] =
dbe_->
book1D(histname+
"All",
"hcalTowerSumEtConeDR04: All Ecal",etBin,etMin,20.);
775 h_hcalTowerSumEtConeDR04_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"hcalTowerSumEtConeDR04: Barrel ", etBin,etMin,20.);
776 h_hcalTowerSumEtConeDR04_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"hcalTowerSumEtConeDR04: Endcap ", etBin,etMin,20.);
779 histname=
"hcalTowerSumEtConeDR04VsEta";
780 h2_hcalTowerSumEtConeDR04VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
781 h2_hcalTowerSumEtConeDR04VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons hcalTowerSumEtConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*0.1);
782 histname=
"pHcalTowerSumEtConeDR04VsEta";
783 p_hcalTowerSumEtConeDR04VsEta_[0] =
dbe_->
bookProfile(histname+
"All",
"All photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
784 p_hcalTowerSumEtConeDR04VsEta_[1] =
dbe_->
bookProfile(histname+
"Unconv",
"All photons hcalTowerSumEtDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1,
"");
786 histname=
"hcalTowerSumEtConeDR04VsEt";
787 h2_hcalTowerSumEtConeDR04VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons hcalTowerSumEtConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
788 h2_hcalTowerSumEtConeDR04VsEt_[1] =
dbe_->
book2D(histname+
"Barrel",
" All photons hcalTowerSumEtConeDR04 vs Et: Barrel ",etBin,etMin, etMax,etBin,etMin,etMax*0.1);
789 h2_hcalTowerSumEtConeDR04VsEt_[2] =
dbe_->
book2D(histname+
"Endcap",
" All photons hcalTowerSumEtConeDR04 vs Et: Endcap ",etBin,etMin, etMax,etBin,etMin,etMax*0.1);
790 histname=
"pHcalTowerSumEtConeDR04VsEt";
791 p_hcalTowerSumEtConeDR04VsEt_[0] =
dbe_->
bookProfile(histname+
"All",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
792 p_hcalTowerSumEtConeDR04VsEt_[1] =
dbe_->
bookProfile(histname+
"Barrel",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
793 p_hcalTowerSumEtConeDR04VsEt_[2] =
dbe_->
bookProfile(histname+
"Endcap",
"All photons hcalTowerSumEtDR04 vs Et: all Ecal ", etBin,etMin, etMax, etBin,etMin,etMax*etScale,
"");
796 histname =
"isoTrkSolidConeDR04";
797 h_isoTrkSolidConeDR04_[0][0] =
dbe_->
book1D(histname+
"All",
"isoTrkSolidConeDR04: All Ecal",etBin,etMin,etMax*0.1);
798 h_isoTrkSolidConeDR04_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"isoTrkSolidConeDR04: Barrel ", etBin,etMin,etMax*0.1);
799 h_isoTrkSolidConeDR04_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"isoTrkSolidConeDR04: Endcap ", etBin,etMin,etMax*0.1);
801 histname=
"isoTrkSolidConeDR04VsEta";
802 h2_isoTrkSolidConeDR04VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons isoTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, etBin,etMin,etMax*0.1);
803 h2_isoTrkSolidConeDR04VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons isoTrkSolidConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,etBin,etMin,etMax*0.1);
805 histname=
"isoTrkSolidConeDR04VsEt";
806 h2_isoTrkSolidConeDR04VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
807 h2_isoTrkSolidConeDR04VsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons isoTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, etBin,etMin,etMax*0.1);
809 histname =
"nTrkSolidConeDR04";
810 h_nTrkSolidConeDR04_[0][0] =
dbe_->
book1D(histname+
"All",
"nTrkSolidConeDR04: All Ecal",20,0., 20) ;
811 h_nTrkSolidConeDR04_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"nTrkSolidConeDR04: Barrel ", 20,0., 20) ;
812 h_nTrkSolidConeDR04_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"nTrkSolidConeDR04: Endcap ", 20,0., 20) ;
814 histname=
"nTrkSolidConeDR04VsEta";
815 h2_nTrkSolidConeDR04VsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ", etaBin2,etaMin, etaMax, 20,0., 20) ;
816 h2_nTrkSolidConeDR04VsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons nTrkSolidConeDR04 vs #eta: all Ecal ",etaBin2,etaMin, etaMax,20,0., 20) ;
818 histname=
"nTrkSolidConeDR04VsEt";
819 h2_nTrkSolidConeDR04VsEt_[0] =
dbe_->
book2D(histname+
"All",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax, 20,0., 20) ;
820 h2_nTrkSolidConeDR04VsEt_[1] =
dbe_->
book2D(histname+
"Unconv",
" All photons nTrkSolidConeDR04 vs Et: all Ecal ",etBin,etMin, etMax,20,0., 20) ;
823 h_phoE_[0][0]=
dbe_->
book1D(histname+
"All",
" Photon Energy: All ecal ", eBin,eMin, eMax);
824 h_phoE_[0][1]=
dbe_->
book1D(histname+
"Barrel",
" Photon Energy: barrel ",eBin,eMin, eMax);
825 h_phoE_[0][2]=
dbe_->
book1D(histname+
"Endcap",
" Photon Energy: Endcap ",eBin,eMin, eMax);
828 h_phoEt_[0][0] =
dbe_->
book1D(histname+
"All",
" Photon Transverse Energy: All ecal ", etBin,etMin, etMax);
829 h_phoEt_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" Photon Transverse Energy: Barrel ",etBin,etMin, etMax);
830 h_phoEt_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" Photon Transverse Energy: Endcap ",etBin,etMin, etMax);
833 h_phoERes_[0][0] =
dbe_->
book1D(histname+
"All",
" Photon rec/true Energy: All ecal ", resBin,resMin, resMax);
834 h_phoERes_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" Photon rec/true Energy: Barrel ",resBin,resMin, resMax);
835 h_phoERes_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" Photon rec/true Energy: Endcap ",resBin,resMin, resMax);
837 h_phoERes_[1][0] =
dbe_->
book1D(histname+
"unconvAll",
" Photon rec/true Energy if r9>0.93: All ecal ", resBin,resMin, resMax);
838 h_phoERes_[1][1] =
dbe_->
book1D(histname+
"unconvBarrel",
" Photon rec/true Energy if r9>0.93: Barrel ",resBin,resMin, resMax);
839 h_phoERes_[1][2] =
dbe_->
book1D(histname+
"unconvEndcap",
" Photon rec/true Energyif r9>0.93: Endcap ",resBin,resMin, resMax);
841 h_phoERes_[2][0] =
dbe_->
book1D(histname+
"convAll",
" Photon rec/true Energy if r9<0.93: All ecal ", resBin,resMin, resMax);
842 h_phoERes_[2][1] =
dbe_->
book1D(histname+
"convBarrel",
" Photon rec/true Energyif r9<0.93: Barrel ",resBin,resMin, resMax);
843 h_phoERes_[2][2] =
dbe_->
book1D(histname+
"convEndcap",
" Photon rec/true Energyif r9<0.93: Endcap ",resBin,resMin, resMax);
846 histname=
"eResVsEta";
847 h2_eResVsEta_[0] =
dbe_->
book2D(histname+
"All",
" All photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
848 h2_eResVsEta_[1] =
dbe_->
book2D(histname+
"Unconv",
" Unconv photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
850 histname=
"pEResVsEta";
851 p_eResVsEta_[0] =
dbe_->
bookProfile(histname+
"All",
"All photons E/Etrue vs #eta: all Ecal ",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
852 p_eResVsEta_[1] =
dbe_->
bookProfile(histname+
"Unconv",
"Unconv photons E/Etrue vs #eta: all Ecal",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
853 p_eResVsEta_[2] =
dbe_->
bookProfile(histname+
"Conv",
"Conv photons E/Etrue vs #eta: all Ecal",etaBin2,etaMin,etaMax,resBin,resMin, resMax,
"");
855 if ( ! isRunCentrally_ ) {
857 h2_eResVsEt_[0][0] =
dbe_->
book2D(histname+
"All",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
858 h2_eResVsEt_[0][1] =
dbe_->
book2D(histname+
"unconv",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
859 h2_eResVsEt_[0][2] =
dbe_->
book2D(histname+
"conv",
" All photons E/Etrue vs true Et: all Ecal ",etBin,etMin, etMax,100, 0.9, 1.1);
860 h2_eResVsEt_[1][0] =
dbe_->
book2D(histname+
"Barrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
861 h2_eResVsEt_[1][1] =
dbe_->
book2D(histname+
"unconvBarrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
862 h2_eResVsEt_[1][2] =
dbe_->
book2D(histname+
"convBarrel",
" All photons E/Etrue vs true Et: Barrel ",etBin,etMin, etMax,100, 0.9, 1.1);
863 h2_eResVsEt_[2][0] =
dbe_->
book2D(histname+
"Endcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
864 h2_eResVsEt_[2][1] =
dbe_->
book2D(histname+
"unconvEndcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
865 h2_eResVsEt_[2][2] =
dbe_->
book2D(histname+
"convEndcap",
" All photons E/Etrue vs true Et: Endcap ",etBin,etMin, etMax,100, 0.9, 1.1);
868 histname=
"pEResVsEt";
869 p_eResVsEt_[0][0] =
dbe_->
bookProfile(histname+
"All",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
870 p_eResVsEt_[0][1] =
dbe_->
bookProfile(histname+
"unconv",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
871 p_eResVsEt_[0][2] =
dbe_->
bookProfile(histname+
"conv",
"All photons E/Etrue vs Et: all Ecal ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
872 p_eResVsEt_[1][0] =
dbe_->
bookProfile(histname+
"Barrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
873 p_eResVsEt_[1][1] =
dbe_->
bookProfile(histname+
"unconvBarrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
874 p_eResVsEt_[1][2] =
dbe_->
bookProfile(histname+
"convBarrel",
"All photons E/Etrue vs Et: Barrel ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
875 p_eResVsEt_[2][0] =
dbe_->
bookProfile(histname+
"Endcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
876 p_eResVsEt_[2][1] =
dbe_->
bookProfile(histname+
"unconvEndcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
877 p_eResVsEt_[2][2] =
dbe_->
bookProfile(histname+
"convEndcap",
"All photons E/Etrue vs Et: Endcap ",etBin,etMin,etMax,resBin,resMin, resMax,
"");
881 h2_eResVsR9_[0] =
dbe_->
book2D(histname+
"All",
" All photons E/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,100, 0., 2.5);
882 h2_eResVsR9_[1] =
dbe_->
book2D(histname+
"Barrel",
" All photons E/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,100, 0.,2.5);
883 h2_eResVsR9_[2] =
dbe_->
book2D(histname+
"Endcap",
" All photons E/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,100, 0., 2.5);
884 histname=
"pEResVsR9";
885 p_eResVsR9_[0] =
dbe_->
bookProfile(histname+
"All",
" All photons E/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
886 p_eResVsR9_[1] =
dbe_->
bookProfile(histname+
"Barrel",
" All photons E/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
887 p_eResVsR9_[2] =
dbe_->
bookProfile(histname+
"Endcap",
" All photons E/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
888 histname=
"sceResVsR9";
889 h2_sceResVsR9_[0] =
dbe_->
book2D(histname+
"All",
" All photons scE/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,100, 0., 2.5);
890 h2_sceResVsR9_[1] =
dbe_->
book2D(histname+
"Barrel",
" All photons scE/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,100, 0.,2.5);
891 h2_sceResVsR9_[2] =
dbe_->
book2D(histname+
"Endcap",
" All photons scE/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,100, 0., 2.5);
892 histname=
"scpEResVsR9";
893 p_sceResVsR9_[0] =
dbe_->
bookProfile(histname+
"All",
" All photons scE/Etrue vs R9: all Ecal ",r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
894 p_sceResVsR9_[1] =
dbe_->
bookProfile(histname+
"Barrel",
" All photons scE/Etrue vs R9: Barrel ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
895 p_sceResVsR9_[2] =
dbe_->
bookProfile(histname+
"Endcap",
" All photons scE/Etrue vs R9: Endcap ", r9Bin*2,r9Min, r9Max,resBin,resMin, resMax,
"");
900 histname =
"gamgamMass";
901 h_gamgamMass_[0][0] =
dbe_->
book1D(histname+
"All",
"2 photons invariant mass: All ecal ", ggMassBin, ggMassMin, ggMassMax);
902 h_gamgamMass_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"2 photons invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
903 h_gamgamMass_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"2 photons invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
905 histname =
"gamgamMassNoConv";
906 h_gamgamMass_[1][0] =
dbe_->
book1D(histname+
"All",
"2 photons with no conversion invariant mass: All ecal ",ggMassBin, ggMassMin, ggMassMax);
907 h_gamgamMass_[1][1] =
dbe_->
book1D(histname+
"Barrel",
"2 photons with no conversion invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
908 h_gamgamMass_[1][2] =
dbe_->
book1D(histname+
"Endcap",
"2 photons with no conversion invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
910 histname =
"gamgamMassConv";
911 h_gamgamMass_[2][0] =
dbe_->
book1D(histname+
"All",
"2 photons with conversion invariant mass: All ecal ", ggMassBin, ggMassMin, ggMassMax);
912 h_gamgamMass_[2][1] =
dbe_->
book1D(histname+
"Barrel",
"2 photons with conversion invariant mass: Barrel ",ggMassBin, ggMassMin, ggMassMax);
913 h_gamgamMass_[2][2] =
dbe_->
book1D(histname+
"Endcap",
"2 photons with conversion invariant mass: Endcap ",ggMassBin, ggMassMin, ggMassMax);
919 h_nConv_[0][0] =
dbe_->
book1D(histname+
"All",
"Number Of Conversions per isolated candidates per events: All Ecal ",10,-0.5, 9.5);
920 h_nConv_[0][1] =
dbe_->
book1D(histname+
"Barrel",
"Number Of Conversions per isolated candidates per events: Ecal Barrel ",10,-0.5, 9.5);
921 h_nConv_[0][2] =
dbe_->
book1D(histname+
"Endcap",
"Number Of Conversions per isolated candidates per events: Ecal Endcap ",10,-0.5, 9.5);
923 h_convEta_[0] =
dbe_->
book1D(
"convEta1",
" converted Photon Eta >1 track",etaBin,etaMin, etaMax) ;
924 h_convEta_[1] =
dbe_->
book1D(
"convEta2",
" converted Photon Eta =2 tracks ",etaBin,etaMin, etaMax) ;
925 h_convEta_[2] =
dbe_->
book1D(
"convEta2ass",
" converted Photon Eta =2 tracks, both ass ",etaBin,etaMin, etaMax) ;
926 h_convPhi_[0] =
dbe_->
book1D(
"convPhi",
" converted Photon Phi ",phiBin,phiMin,phiMax) ;
929 histname =
"convERes";
930 h_convERes_[0][0] =
dbe_->
book1D(histname+
"All",
" Conversion rec/true Energy: All ecal ", resBin,resMin, resMax);
931 h_convERes_[0][1] =
dbe_->
book1D(histname+
"Barrel",
" Conversion rec/true Energy: Barrel ",resBin,resMin, resMax);
932 h_convERes_[0][2] =
dbe_->
book1D(histname+
"Endcap",
" Conversion rec/true Energy: Endcap ",resBin,resMin, resMax);
934 histname=
"p_EResVsR";
935 p_eResVsR_ =
dbe_->
bookProfile(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin,rMax, 100, 0.,1.5,
"");
938 histname =
"convPtRes";
939 h_convPtRes_[1][0] =
dbe_->
book1D(histname+
"All",
" Conversion Pt rec/true from tracks : All ecal ", resBin,0.,1.5);
940 h_convPtRes_[1][1] =
dbe_->
book1D(histname+
"Barrel",
" Conversion Pt rec/true from tracks: Barrel ",resBin,0., 1.5);
941 h_convPtRes_[1][2] =
dbe_->
book1D(histname+
"Endcap",
" Conversion Pt rec/true from tracks: Endcap ",resBin,0., 1.5);
944 if ( ! isRunCentrally_ ) {
945 histname=
"r9VsTracks";
946 h_r9VsNofTracks_[0][0] =
dbe_->
book2D(histname+
"All",
" photons r9 vs nTracks from conversions: All Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
947 h_r9VsNofTracks_[0][1] =
dbe_->
book2D(histname+
"Barrel",
" photons r9 vs nTracks from conversions: Barrel Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
948 h_r9VsNofTracks_[0][2] =
dbe_->
book2D(histname+
"Endcap",
" photons r9 vs nTracks from conversions: Endcap Ecal",r9Bin,r9Min, r9Max, 3, -0.5, 2.5) ;
952 h_mvaOut_[0] =
dbe_->
book1D(histname+
"All",
" mvaOut for all conversions : All Ecal",100, 0., 1.);
953 h_mvaOut_[1] =
dbe_->
book1D(histname+
"Barrel",
" mvaOut for all conversions : Barrel Ecal",100, 0., 1.);
954 h_mvaOut_[2] =
dbe_->
book1D(histname+
"Endcap",
" mvaOut for all conversions : Endcap Ecal",100, 0., 1.);
958 histname=
"EoverPtracks";
959 h_EoverPTracks_[0][0] =
dbe_->
book1D(histname+
"BarrelPix",
" photons conversion E/p: barrel pix",eoverpBin, eoverpMin,eoverpMax);
960 h_EoverPTracks_[0][1] =
dbe_->
book1D(histname+
"BarrelTib",
" photons conversion E/p: barrel tib",eoverpBin, eoverpMin,eoverpMax);
961 h_EoverPTracks_[0][2] =
dbe_->
book1D(histname+
"BarrelTob",
" photons conversion E/p: barrel tob ",eoverpBin, eoverpMin,eoverpMax);
963 h_EoverPTracks_[1][0] =
dbe_->
book1D(histname+
"All",
" photons conversion E/p: all Ecal ",100, 0., 5.);
964 h_EoverPTracks_[1][1] =
dbe_->
book1D(histname+
"Barrel",
" photons conversion E/p: Barrel Ecal",100, 0., 5.);
965 h_EoverPTracks_[1][2] =
dbe_->
book1D(histname+
"Endcap",
" photons conversion E/p: Endcap Ecal ",100, 0., 5.);
967 histname=
"PoverEtracks";
968 h_PoverETracks_[1][0] =
dbe_->
book1D(histname+
"All",
" photons conversion p/E: all Ecal ",povereBin, povereMin, povereMax);
969 h_PoverETracks_[1][1] =
dbe_->
book1D(histname+
"Barrel",
" photons conversion p/E: Barrel Ecal",povereBin, povereMin, povereMax);
970 h_PoverETracks_[1][2] =
dbe_->
book1D(histname+
"Endcap",
" photons conversion p/E: Endcap Ecal ",povereBin, povereMin, povereMax);
972 histname=
"pEoverEtrueVsEta";
973 p_EoverEtrueVsEta_[0] =
dbe_->
bookProfile(histname+
"All",
" photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax, 100,0.,2.5,
"");
975 histname=
"pEoverEtrueVsR";
976 p_EoverEtrueVsR_[0] =
dbe_->
bookProfile(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin,rMax, 100, 0., 2.5,
"");
978 histname=
"pEoverEtrueVsEta";
979 p_EoverEtrueVsEta_[1] =
dbe_->
bookProfile(histname+
"All2",
" photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5,
"");
981 histname=
"pPoverPtrueVsEta";
982 p_PoverPtrueVsEta_[0] =
dbe_->
bookProfile(histname+
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.,
"");
984 histname=
"pEoverPVsEta";
985 p_EoverPVsEta_[0] =
dbe_->
bookProfile(histname+
"All",
" photons conversion E/P vs #eta: all Ecal ",etaBin2,etaMin, etaMax, 100, 0., 5.,
"");
988 if ( ! isRunCentrally_ ) {
989 histname=
"EoverEtrueVsEoverP";
990 h2_EoverEtrueVsEoverP_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion E/Etrue vs E/P: all Ecal ",100, 0., 5., 100, 0.5, 1.5);
991 h2_EoverEtrueVsEoverP_[1] =
dbe_->
book2D(histname+
"Barrel",
" photons conversion E/Etrue vs E/: Barrel Ecal",100, 0., 5.,100, 0.5, 1.5);
992 h2_EoverEtrueVsEoverP_[2] =
dbe_->
book2D(histname+
"Endcap",
" photons conversion E/Etrue vs E/: Endcap Ecal ",100, 0., 5., 100, 0.5, 1.5);
993 histname=
"PoverPtrueVsEoverP";
994 h2_PoverPtrueVsEoverP_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion P/Ptrue vs E/P: all Ecal ",100, 0., 5., 100, 0., 2.5);
995 h2_PoverPtrueVsEoverP_[1] =
dbe_->
book2D(histname+
"Barrel",
" photons conversion P/Ptrue vs E/: Barrel Ecal",100, 0., 5.,100, 0., 2.5);
996 h2_PoverPtrueVsEoverP_[2] =
dbe_->
book2D(histname+
"Endcap",
" photons conversion P/Ptrue vs E/: Endcap Ecal ",100, 0., 5., 100, 0., 2.5);
998 histname=
"EoverEtrueVsEta";
999 h2_EoverEtrueVsEta_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion with 2 (associated) reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
1002 histname=
"EoverEtrueVsEta";
1003 h2_EoverEtrueVsEta_[1] =
dbe_->
book2D(histname+
"All2",
" photons conversion 2 reco tracks E/Etrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 2.5);
1005 histname=
"EoverEtrueVsR";
1006 h2_EoverEtrueVsR_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion E/Etrue vs R: all Ecal ",rBin,rMin, rMax,100, 0., 2.5);
1008 histname=
"PoverPtrueVsEta";
1009 h2_PoverPtrueVsEta_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion P/Ptrue vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.);
1011 histname=
"EoverPVsEta";
1012 h2_EoverPVsEta_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion E/P vs #eta: all Ecal ",etaBin2,etaMin, etaMax,100, 0., 5.);
1014 histname=
"EoverPVsR";
1015 h2_EoverPVsR_[0] =
dbe_->
book2D(histname+
"All",
" photons conversion E/P vs R: all Ecal ",rBin,rMin, rMax,100, 0., 5.);
1017 histname=
"etaVsRsim";
1018 h2_etaVsRsim_[0] =
dbe_->
book2D(histname+
"All",
" eta(sim) vs R (sim) for associated conversions: all Ecal ",etaBin, etaMin, etaMax,rBin,rMin, rMax);
1019 histname=
"etaVsRreco";
1020 h2_etaVsRreco_[0] =
dbe_->
book2D(histname+
"All",
" eta(reco) vs R (reco) for associated conversions: all Ecal ",etaBin, etaMin, etaMax,rBin,rMin, rMax);
1024 histname=
"pEoverPVsR";
1025 p_EoverPVsR_[0] =
dbe_->
bookProfile(histname+
"All",
" photons conversion E/P vs R: all Ecal ",rBin,rMin,rMax, 100, 0., 5.,
"");
1028 histname=
"hInvMass";
1029 h_invMass_[0][0]=
dbe_->
book1D(histname+
"All_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ",100, 0., 1.5);
1030 h_invMass_[0][1]=
dbe_->
book1D(histname+
"Barrel_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ",100, 0., 1.5);
1031 h_invMass_[0][2]=
dbe_->
book1D(histname+
"Endcap_AllTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ",100, 0., 1.5);
1032 histname=
"hInvMass";
1033 h_invMass_[1][0]=
dbe_->
book1D(histname+
"All_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: all Ecal ",100, 0., 1.5);
1034 h_invMass_[1][1]=
dbe_->
book1D(histname+
"Barrel_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Barrel Ecal ",100, 0., 1.5);
1035 h_invMass_[1][2]=
dbe_->
book1D(histname+
"Endcap_AssTracks",
" Photons:Tracks from conversion: Pair invariant mass: Endcap Ecal ",100, 0., 1.5);
1038 histname=
"hDPhiTracksAtVtx";
1039 h_DPhiTracksAtVtx_[1][0] =
dbe_->
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: all Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1040 h_DPhiTracksAtVtx_[1][1] =
dbe_->
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: Barrel Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1041 h_DPhiTracksAtVtx_[1][2] =
dbe_->
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex: Endcap Ecal",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
1044 if ( ! isRunCentrally_ ) {
1045 histname=
"hDPhiTracksAtVtxVsEta";
1046 h2_DPhiTracksAtVtxVsEta_ =
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta",etaBin2,etaMin, etaMax,100, -0.5, 0.5);
1048 histname=
"hDPhiTracksAtVtxVsR";
1049 h2_DPhiTracksAtVtxVsR_ =
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R",rBin,rMin, rMax,100, -0.5, 0.5);
1051 histname=
"hDCotTracksVsEta";
1052 h2_DCotTracksVsEta_ =
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta",etaBin2,etaMin, etaMax,100, -0.2, 0.2);
1054 histname=
"hDCotTracksVsR";
1055 h2_DCotTracksVsR_ =
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R",rBin,rMin, rMax,100, -0.2, 0.2);
1057 histname=
"h2_DPhiTracksAtEcalVsR";
1058 h2_DPhiTracksAtEcalVsR_=
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs R : all Ecal ",rBin,rMin, rMax, dPhiTracksBin,0.,dPhiTracksMax);
1060 histname=
"h2_DPhiTracksAtEcalVsEta";
1061 h2_DPhiTracksAtEcalVsEta_=
dbe_->
book2D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs #eta : all Ecal ",etaBin2,etaMin, etaMax, dPhiTracksBin,0.,dPhiTracksMax);
1066 histname=
"pDPhiTracksAtVtxVsEta";
1067 p_DPhiTracksAtVtxVsEta_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs #eta ",etaBin2,etaMin, etaMax, 100, -0.5, 0.5,
"");
1069 histname=
"pDPhiTracksAtVtxVsR";
1070 p_DPhiTracksAtVtxVsR_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi Tracks at vertex vs R ",rBin,rMin, rMax,100, -0.5, 0.5,
"");
1073 histname=
"hDCotTracks";
1074 h_DCotTracks_[1][0]=
dbe_->
book1D(histname+
"All",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: all Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1075 h_DCotTracks_[1][1]=
dbe_->
book1D(histname+
"Barrel",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Barrel Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1076 h_DCotTracks_[1][2]=
dbe_->
book1D(histname+
"Endcap",
" Photons:Tracks from conversions #delta cotg(#Theta) Tracks: Endcap Ecal ",dCotTracksBin,dCotTracksMin,dCotTracksMax);
1079 histname=
"pDCotTracksVsEta";
1080 p_DCotTracksVsEta_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks vs #eta ",etaBin2,etaMin, etaMax, 100, -0.2, 0.2,
"");
1082 histname=
"pDCotTracksVsR";
1083 p_DCotTracksVsR_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta cotg(#Theta) Tracks at vertex vs R ",rBin,rMin, rMax,100, -0.2, 0.2,
"");
1086 histname=
"hDistMinAppTracks";
1087 h_distMinAppTracks_[1][0]=
dbe_->
book1D(histname+
"All",
" Photons:Tracks from conversions Min Approach Dist Tracks: all Ecal ",dEtaTracksBin,-0.1,0.6);
1088 h_distMinAppTracks_[1][1]=
dbe_->
book1D(histname+
"Barrel",
" Photons:Tracks from conversions Min Approach Dist Tracks: Barrel Ecal ",dEtaTracksBin,-0.1,0.6);
1089 h_distMinAppTracks_[1][2]=
dbe_->
book1D(histname+
"Endcap",
" Photons:Tracks from conversions Min Approach Dist Tracks: Endcap Ecal ",dEtaTracksBin,-0.1,0.6);
1091 histname=
"hDPhiTracksAtEcal";
1092 h_DPhiTracksAtEcal_[1][0]=
dbe_->
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal : all Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1093 h_DPhiTracksAtEcal_[1][1]=
dbe_->
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#phi at Ecal : Barrel Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1094 h_DPhiTracksAtEcal_[1][2]=
dbe_->
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#phi at Ecal : Endcap Ecal ",dPhiTracksBin,0.,dPhiTracksMax);
1096 histname=
"pDPhiTracksAtEcalVsR";
1097 p_DPhiTracksAtEcalVsR_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs R ",rBin,rMin, rMax, dPhiTracksBin,0.,dPhiTracksMax,
"");
1099 histname=
"pDPhiTracksAtEcalVsEta";
1100 p_DPhiTracksAtEcalVsEta_ =
dbe_->
bookProfile(histname+
"All",
" Photons:Tracks from conversions: #delta#phi at Ecal vs #eta ",etaBin2,etaMin, etaMax,dPhiTracksBin,0.,dPhiTracksMax,
"");
1103 histname=
"hDEtaTracksAtEcal";
1104 h_DEtaTracksAtEcal_[1][0]=
dbe_->
book1D(histname+
"All",
" Photons:Tracks from conversions: #delta#eta at Ecal : all Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1105 h_DEtaTracksAtEcal_[1][1]=
dbe_->
book1D(histname+
"Barrel",
" Photons:Tracks from conversions: #delta#eta at Ecal : Barrel Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1106 h_DEtaTracksAtEcal_[1][2]=
dbe_->
book1D(histname+
"Endcap",
" Photons:Tracks from conversions: #delta#eta at Ecal : Endcap Ecal ",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
1109 h_convVtxRvsZ_[0] =
dbe_->
book2D(
"convVtxRvsZAll",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1110 h_convVtxRvsZ_[1] =
dbe_->
book2D(
"convVtxRvsZBarrel",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1111 h_convVtxRvsZ_[2] =
dbe_->
book2D(
"convVtxRvsZEndcap",
" Photon Reco conversion vtx position",zBin2ForXray, zMinForXray, zMaxForXray, rBinForXray, rMinForXray, rMaxForXray);
1112 h_convVtxYvsX_ =
dbe_->
book2D(
"convVtxYvsXTrkBarrel",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -80., 80., 100, -80., 80.);
1114 if ( ! isRunCentrally_ ) {
1115 h_convVtxRvsZ_zoom_[0] =
dbe_->
book2D(
"convVtxRvsZBarrelZoom1",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, -10., 40.);
1116 h_convVtxRvsZ_zoom_[1] =
dbe_->
book2D(
"convVtxRvsZBarrelZoom2",
" Photon Reco conversion vtx position",zBinForXray, zMinForXray, zMaxForXray, rBinForXray, -10., 20.);
1117 h_convVtxYvsX_zoom_[0] =
dbe_->
book2D(
"convVtxYvsXTrkBarrelZoom1",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -40., 40., 100, -40., 40.);
1118 h_convVtxYvsX_zoom_[1] =
dbe_->
book2D(
"convVtxYvsXTrkBarrelZoom2",
" Photon Reco conversion vtx position, (x,y) eta<1 ",100, -20., 20., 100, -20., 20.);
1121 h_convVtxdX_ =
dbe_->
book1D(
"convVtxdX",
" Photon Reco conversion vtx dX",100, -20.,20.);
1122 h_convVtxdY_ =
dbe_->
book1D(
"convVtxdY",
" Photon Reco conversion vtx dY",100, -20.,20.);
1123 h_convVtxdZ_ =
dbe_->
book1D(
"convVtxdZ",
" Photon Reco conversion vtx dZ",100, -20.,20.);
1124 h_convVtxdR_ =
dbe_->
book1D(
"convVtxdR",
" Photon Reco conversion vtx dR",100, -20.,20.);
1126 h_convVtxdX_barrel_ =
dbe_->
book1D(
"convVtxdX_barrel",
" Photon Reco conversion vtx dX, |eta|<=1.2",100, -20.,20.);
1127 h_convVtxdY_barrel_ =
dbe_->
book1D(
"convVtxdY_barrel",
" Photon Reco conversion vtx dY, |eta|<=1.2 ",100, -20.,20.);
1128 h_convVtxdZ_barrel_ =
dbe_->
book1D(
"convVtxdZ_barrel",
" Photon Reco conversion vtx dZ, |eta|<=1.2,",100, -20.,20.);
1129 h_convVtxdR_barrel_ =
dbe_->
book1D(
"convVtxdR_barrel",
" Photon Reco conversion vtx dR, |eta|<=1.2",100, -20.,20.);
1130 h_convVtxdX_endcap_ =
dbe_->
book1D(
"convVtxdX_endcap",
" Photon Reco conversion vtx dX, |eta|>1.2",100, -20.,20.);
1131 h_convVtxdY_endcap_ =
dbe_->
book1D(
"convVtxdY_endcap",
" Photon Reco conversion vtx dY, |eta|>1.2",100, -20.,20.);
1132 h_convVtxdZ_endcap_ =
dbe_->
book1D(
"convVtxdZ_endcap",
" Photon Reco conversion vtx dZ, |eta|>1.2",100, -20.,20.);
1133 h_convVtxdR_endcap_ =
dbe_->
book1D(
"convVtxdR_endcap",
" Photon Reco conversion vtx dR, |eta|>1.2 ",100, -20.,20.);
1136 h_convVtxdPhi_ =
dbe_->
book1D(
"convVtxdPhi",
" Photon Reco conversion vtx dPhi",100, -0.005,0.005);
1137 h_convVtxdEta_ =
dbe_->
book1D(
"convVtxdEta",
" Photon Reco conversion vtx dEta",100, -0.5,0.5);
1139 if ( ! isRunCentrally_ ) {
1140 h2_convVtxdRVsR_ =
dbe_->
book2D(
"h2ConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR" ,rBin,rMin, rMax,100, -20.,20.);
1141 h2_convVtxdRVsEta_ =
dbe_->
book2D(
"h2ConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta" ,etaBin2,etaMin, etaMax,100, -20.,20.);
1144 p_convVtxdRVsR_ =
dbe_->
bookProfile(
"pConvVtxdRVsR",
"Photon Reco conversion vtx dR vsR" ,rBin,rMin, rMax ,100, -20.,20.,
"");
1145 p_convVtxdRVsEta_ =
dbe_->
bookProfile(
"pConvVtxdRVsEta",
"Photon Reco conversion vtx dR vs Eta" ,etaBin2,etaMin, etaMax, 100, -20.,20.,
"");
1146 p_convVtxdXVsX_ =
dbe_->
bookProfile(
"pConvVtxdXVsX",
"Conversion vtx dX vs X" ,120,-60, 60 ,100, -20.,20.,
"");
1147 p_convVtxdYVsY_ =
dbe_->
bookProfile(
"pConvVtxdYVsY",
"Conversion vtx dY vs Y" ,120,-60, 60 ,100, -20.,20.,
"");
1148 p_convVtxdZVsZ_ =
dbe_->
bookProfile(
"pConvVtxdZVsZ",
"Conversion vtx dZ vs Z" ,zBin,zMin,zMax ,100, -20.,20.,
"");
1151 if ( ! isRunCentrally_ ) {
1152 h2_convVtxRrecVsTrue_ =
dbe_->
book2D(
"h2ConvVtxRrecVsTrue",
"Photon Reco conversion vtx R rec vs true" ,rBin,rMin, rMax,rBin,rMin, rMax);
1156 h_vtxChi2_[0] =
dbe_->
book1D(histname+
"All",
"vertex #chi^{2} all", 100, chi2Min, chi2Max);
1157 h_vtxChi2_[1] =
dbe_->
book1D(histname+
"Barrel",
"vertex #chi^{2} barrel", 100, chi2Min, chi2Max);
1158 h_vtxChi2_[2] =
dbe_->
book1D(histname+
"Endcap",
"vertex #chi^{2} endcap", 100, chi2Min, chi2Max);
1159 histname=
"vtxChi2Prob";
1160 h_vtxChi2Prob_[0] =
dbe_->
book1D(histname+
"All",
"vertex #chi^{2} all", 100, 0., 1.);
1161 h_vtxChi2Prob_[1] =
dbe_->
book1D(histname+
"Barrel",
"vertex #chi^{2} barrel", 100, 0., 1.);
1162 h_vtxChi2Prob_[2] =
dbe_->
book1D(histname+
"Endcap",
"vertex #chi^{2} endcap", 100, 0., 1.);
1164 h_zPVFromTracks_[1] =
dbe_->
book1D(
"zPVFromTracks",
" Photons: PV z from conversion tracks",100, -25., 25.);
1165 h_dzPVFromTracks_[1] =
dbe_->
book1D(
"dzPVFromTracks",
" Photons: PV Z_rec - Z_true from conversion tracks",100, -5., 5.);
1166 p_dzPVVsR_ =
dbe_->
bookProfile(
"pdzPVVsR",
"Photon Reco conversions: dz(PV) vs R" ,rBin,rMin, rMax, 100, -3.,3.,
"");
1168 if ( ! isRunCentrally_ ) {
1169 h2_dzPVVsR_ =
dbe_->
book2D(
"h2dzPVVsR",
"Photon Reco conversions: dz(PV) vs R" ,rBin,rMin, rMax,100, -3.,3.);
1173 if ( ! isRunCentrally_ ) {
1174 histname=
"nHitsVsEta";
1175 nHitsVsEta_[0] =
dbe_->
book2D(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs #eta all tracks",etaBin,etaMin, etaMax,25,0., 25.);
1177 histname=
"nHitsVsEta";
1178 nHitsVsEta_[1] =
dbe_->
book2D(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs #eta associated tracks",etaBin,etaMin, etaMax,25,0., 25.);
1180 histname=
"nHitsVsR";
1181 nHitsVsR_[0] =
dbe_->
book2D(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs radius all tracks" ,rBin,rMin, rMax,25,0.,25);
1183 histname=
"nHitsVsR";
1184 nHitsVsR_[1] =
dbe_->
book2D(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs radius associated tracks" ,rBin,rMin, rMax,25,0.,25);
1186 histname=
"h2Chi2VsEta";
1187 h2_Chi2VsEta_[0]=
dbe_->
book2D(histname+
"All",
" Reco Track #chi^{2} vs #eta: All ",etaBin2,etaMin, etaMax,100, chi2Min, chi2Max);
1190 histname=
"h2Chi2VsR";
1191 h2_Chi2VsR_[0]=
dbe_->
book2D(histname+
"All",
" Reco Track #chi^{2} vs R: All ",rBin,rMin, rMax,100,chi2Min, chi2Max);
1194 histname=
"h_nHitsVsEta";
1195 p_nHitsVsEta_[0] =
dbe_->
bookProfile(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs #eta all tracks",etaBin,etaMin, etaMax, 25,-0.5, 24.5,
"");
1197 histname=
"h_nHitsVsEta";
1198 p_nHitsVsEta_[1] =
dbe_->
bookProfile(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs #eta associated tracks",etaBin,etaMin, etaMax, 25,-0.5, 24.5,
"");
1201 histname=
"h_nHitsVsR";
1202 p_nHitsVsR_[0] =
dbe_->
bookProfile(histname+
"AllTracks",
"Photons:Tracks from conversions: # of hits vs radius all tracks",rBin,rMin, rMax, 25,-0.5, 24.5,
"");
1204 h_tkChi2_[0] =
dbe_->
book1D(histname+
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 100, chi2Min, chi2Max);
1205 histname=
"tkChi2Large";
1206 h_tkChi2Large_[0] =
dbe_->
book1D(histname+
"AllTracks",
"Photons:Tracks from conversions: #chi^{2} of all tracks", 1000, 0., 5000.0);
1208 histname=
"h_nHitsVsR";
1209 p_nHitsVsR_[1] =
dbe_->
bookProfile(histname+
"AssTracks",
"Photons:Tracks from conversions: # of hits vs radius associated tracks",rBin,rMin, rMax, 25,-0.5, 24.5,
"");
1212 h_tkChi2_[1] =
dbe_->
book1D(histname+
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 100, chi2Min, chi2Max);
1213 histname=
"tkChi2Large";
1214 h_tkChi2Large_[1] =
dbe_->
book1D(histname+
"AssTracks",
"Photons:Tracks from conversions: #chi^{2} of associated tracks", 1000, 0., 5000.0);
1216 histname=
"pChi2VsEta";
1217 p_Chi2VsEta_[0]=
dbe_->
bookProfile(histname+
"All",
" Reco Track #chi^{2} vs #eta : All ",etaBin2,etaMin, etaMax, 100, chi2Min, chi2Max,
"");
1219 histname=
"pChi2VsR";
1220 p_Chi2VsR_[0]=
dbe_->
bookProfile(histname+
"All",
" Reco Track #chi^{2} vas R : All ",rBin,rMin,rMax, 100,chi2Min, chi2Max,
"");
1224 h_TkD0_[0]=
dbe_->
book1D(histname+
"All",
" Reco Track D0*q: All ",100,-0.1,0.6);
1225 h_TkD0_[1]=
dbe_->
book1D(histname+
"Barrel",
" Reco Track D0*q: Barrel ",100,-0.1,0.6);
1226 h_TkD0_[2]=
dbe_->
book1D(histname+
"Endcap",
" Reco Track D0*q: Endcap ",100,-0.1,0.6);
1229 histname=
"hTkPtPull";
1230 h_TkPtPull_[0]=
dbe_->
book1D(histname+
"All",
" Reco Track Pt pull: All ",100, -10., 10.);
1231 histname=
"hTkPtPull";
1232 h_TkPtPull_[1]=
dbe_->
book1D(histname+
"Barrel",
" Reco Track Pt pull: Barrel ",100, -10., 10.);
1233 histname=
"hTkPtPull";
1234 h_TkPtPull_[2]=
dbe_->
book1D(histname+
"Endcap",
" Reco Track Pt pull: Endcap ",100, -10., 10.);
1236 histname=
"pTkPtPullEta";
1237 p_TkPtPull_[0]=
dbe_->
bookProfile(histname+
"All",
" Reco Track Pt pull: All ",etaBin2,etaMin, etaMax, 100, -10., 10.,
" ");
1239 if ( ! isRunCentrally_ ) {
1240 histname=
"h2TkPtPullEta";
1241 h2_TkPtPull_[0]=
dbe_->
book2D(histname+
"All",
" Reco Track Pt pull: All ",etaBin2,etaMin, etaMax,100, -10., 10.);
1243 histname=
"PtRecVsPtSim";
1244 h2_PtRecVsPtSim_[0]=
dbe_->
book2D(histname+
"All",
"Pt Rec vs Pt sim: All ", etBin,etMin,etMax,etBin,etMin, etMax);
1245 h2_PtRecVsPtSim_[1]=
dbe_->
book2D(histname+
"Barrel",
"Pt Rec vs Pt sim: Barrel ", etBin,etMin,etMax,etBin,etMin, etMax);
1246 h2_PtRecVsPtSim_[2]=
dbe_->
book2D(histname+
"Endcap",
"Pt Rec vs Pt sim: Endcap ", etBin,etMin,etMax,etBin,etMin, etMax);
1247 histname=
"PtRecVsPtSimMixProv";
1248 h2_PtRecVsPtSimMixProv_ =
dbe_->
book2D(histname+
"All",
"Pt Rec vs Pt sim All for mix with general tracks ", etBin,etMin,etMax,etBin,etMin, etMax);
1252 histname=
"eBcOverTkPout";
1253 hBCEnergyOverTrackPout_[0] =
dbe_->
book1D(histname+
"All",
"Matrching BC E/P_out: all Ecal ",100, 0., 5.);
1254 hBCEnergyOverTrackPout_[1] =
dbe_->
book1D(histname+
"Barrel",
"Matrching BC E/P_out: Barrel ",100, 0., 5.);
1255 hBCEnergyOverTrackPout_[2] =
dbe_->
book1D(histname+
"Endcap",
"Matrching BC E/P_out: Endcap ",100, 0., 5.);
1259 h_OIinnermostHitR_ =
dbe_->
book1D(
"OIinnermostHitR",
" R innermost hit for OI tracks ",50, 0., 25);
1260 h_IOinnermostHitR_ =
dbe_->
book1D(
"IOinnermostHitR",
" R innermost hit for IO tracks ",50, 0., 25);
1263 h_trkProv_[0] =
dbe_->
book1D(
"allTrkProv",
" Track pair provenance ",4, 0., 4.);
1264 h_trkProv_[1] =
dbe_->
book1D(
"assTrkProv",
" Track pair provenance ",4, 0., 4.);
1267 histname =
"h_RecoConvTwoTracksEta";
1268 h_RecoConvTwoTracks_[0] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco tracks: simulated #eta",etaBin2,etaMin, etaMax);
1269 histname =
"h_RecoConvTwoTracksPhi";
1270 h_RecoConvTwoTracks_[1] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco tracks: simulated #phi",phiBin,phiMin, phiMax);
1271 histname =
"h_RecoConvTwoTracksR";
1272 h_RecoConvTwoTracks_[2] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco tracks: simulated R",rBin,rMin, rMax);
1273 histname =
"h_RecoConvTwoTracksZ";
1274 h_RecoConvTwoTracks_[3] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Z",zBin,zMin, zMax);
1275 histname =
"h_RecoConvTwoTracksEt";
1276 h_RecoConvTwoTracks_[4] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco tracks: simulated Et",etBin,etMin, etMax);
1278 histname =
"h_RecoConvTwoMTracksEta";
1279 h_RecoConvTwoMTracks_[0] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated #eta",etaBin2,etaMin, etaMax);
1280 histname =
"h_RecoConvTwoMTracksPhi";
1281 h_RecoConvTwoMTracks_[1] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated #phi",phiBin,phiMin, phiMax);
1282 histname =
"h_RecoConvTwoMTracksR";
1283 h_RecoConvTwoMTracks_[2] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated R",rBin,rMin, rMax);
1284 histname =
"h_RecoConvTwoMTracksZ";
1285 h_RecoConvTwoMTracks_[3] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Z",zBin,zMin, zMax);
1286 histname =
"h_RecoConvTwoMTracksEt";
1287 h_RecoConvTwoMTracks_[4] =
dbe_->
book1D(histname,
" All reco conversions with 2 reco-ass tracks: simulated Et",etBin,etMin, etMax);
1303 edm::LogInfo(
"ConvertedPhotonProducer") <<
" get magnetic field" <<
"\n";
1317 delete thePhotonMCTruthFinder_;
1326 using namespace edm;
1330 const float BARL = 1.4442;
1332 const float END_HI = 2.5;
1338 LogInfo(
"PhotonValidator") <<
"PhotonValidator Analyzing event number: " << e.
id() <<
" Global Counter " << nEvt_ <<
"\n";
1353 e.
getByLabel(photonCollectionProducer_, photonCollection_ , photonHandle);
1355 if (!photonHandle.isValid()) {
1356 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the Photon collection "<< std::endl;
1364 e.
getByLabel(conversionOITrackProducer_, outInTrkHandle);
1368 e.
getByLabel(conversionIOTrackProducer_, inOutTrkHandle);
1377 h_OIinnermostHitR_ ->Fill (
sqrt( iTk->innerPosition().Perp2() ) );
1378 for (
trackingRecHit_iterator itHits=iTk->extra()->recHitsBegin(); itHits!=iTk->extra()->recHitsEnd(); ++itHits ) {
1379 if ( (*itHits)->isValid() ) {
1397 h_IOinnermostHitR_ ->Fill (
sqrt( iTk->innerPosition().Perp2() ) );
1399 for (
trackingRecHit_iterator itHits=iTk->extra()->recHitsBegin(); itHits!=iTk->extra()->recHitsEnd(); ++itHits ) {
1400 if ( (*itHits)->isValid() ) {
1417 std::vector<SimTrack> theSimTracks;
1418 std::vector<SimVertex> theSimVertices;
1433 theSimTracks.insert(theSimTracks.end(),SimTk->begin(),SimTk->end());
1434 theSimVertices.insert(theSimVertices.end(),SimVtx->begin(),SimVtx->end());
1435 std::vector<PhotonMCTruth> mcPhotons=thePhotonMCTruthFinder_->find (theSimTracks, theSimVertices);
1439 const HepMC::GenEvent *myGenEvent = hepMC->GetEvent();
1444 e.
getByLabel(
"iterativeCone5GenJets",
"",GenJetsHandle);
1450 bool useTP= parameters_.getParameter<
bool>(
"useTP");
1462 std::vector<reco::PhotonCollection::const_iterator> StoRMatchedConvertedPhotons;
1472 OISimToReco = theTrackAssociator_->associateSimToReco(outInTrkHandle, ElectronTPHandle, &e);
1473 IOSimToReco = theTrackAssociator_->associateSimToReco(inOutTrkHandle, ElectronTPHandle, &e);
1475 OIRecoToSim = theTrackAssociator_->associateRecoToSim(outInTrkHandle, ElectronTPHandle, &e);
1476 IORecoToSim = theTrackAssociator_->associateRecoToSim(inOutTrkHandle, ElectronTPHandle, &e);
1480 vector<reco::SimToRecoCollection*> StoRCollPtrs;
1481 StoRCollPtrs.push_back(&OISimToReco);
1482 StoRCollPtrs.push_back(&IOSimToReco);
1483 vector<reco::RecoToSimCollection*> RtoSCollPtrs;
1484 RtoSCollPtrs.push_back(&OIRecoToSim);
1485 RtoSCollPtrs.push_back(&IORecoToSim);
1487 for (
int i=0;
i<2;
i++)
1489 for (
int i=0;
i<2;
i++)
1493 std::vector<reco::Photon> myPhotons;
1494 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
1495 if ( fabs(iPho->eta()) > 2.5 )
continue;
1496 myPhotons.push_back(*iPho);
1500 if ( myPhotons.size() >=2 ) {
1501 if ( myPhotons[0].
et() > 40 && myPhotons[1].et() > 25 ) {
1504 float gamgamMass2 = p12.Dot(p12);
1505 if ( gamgamMass2 > 0 ) {
1508 h_gamgamMass_[0][0] -> Fill(
sqrt( gamgamMass2 ));
1509 if ( myPhotons[0].isEB() && myPhotons[1].isEB() )
1510 h_gamgamMass_[0][1] -> Fill(
sqrt( gamgamMass2 ));
1511 if ( ( myPhotons[0].isEE() && myPhotons[1].isEE() ) ||
1512 ( myPhotons[0].isEE() && myPhotons[1].isEB() ) ||
1513 ( myPhotons[0].isEB() && myPhotons[1].isEE() ) )
1514 h_gamgamMass_[0][2] -> Fill(
sqrt( gamgamMass2 ));
1518 if ( myPhotons[0].r9() > 0.93 && myPhotons[1].r9() > 0.93 ) {
1519 h_gamgamMass_[1][0] -> Fill(
sqrt( gamgamMass2 ));
1520 if ( myPhotons[0].isEB() && myPhotons[1].isEB() )
1521 h_gamgamMass_[1][1] -> Fill(
sqrt( gamgamMass2 ));
1522 if ( ( myPhotons[0].isEE() && myPhotons[1].isEE() ) ||
1523 ( myPhotons[0].isEE() && myPhotons[1].isEB() ) ||
1524 ( myPhotons[0].isEB() && myPhotons[1].isEE() ) )
1525 h_gamgamMass_[1][2] -> Fill(
sqrt( gamgamMass2 ));
1534 if ( chi2Prob1 > 0.0005 && chi2Prob2 > 0.0005 ) {
1535 h_gamgamMass_[2][0] -> Fill(
sqrt( gamgamMass2 ));
1536 if ( myPhotons[0].isEB() && myPhotons[1].isEB() ) {
1537 h_gamgamMass_[2][1] -> Fill(
sqrt( gamgamMass2 ));
1539 if ( ( myPhotons[0].isEE() && myPhotons[1].isEE() ) ||
1540 ( myPhotons[0].isEE() && myPhotons[1].isEB() ) ||
1541 ( myPhotons[0].isEB() && myPhotons[1].isEE() ) )
1542 h_gamgamMass_[2][2] -> Fill(
sqrt( gamgamMass2 )); {
1549 if ( myPhotons[0].
conversions()[0]->nTracks() ==2 ) {
1551 if ( chi2Prob1 > 0.0005 ) {
1552 h_gamgamMass_[2][0] -> Fill(
sqrt( gamgamMass2 ));
1553 if ( myPhotons[0].isEB() && myPhotons[1].isEB() ) {
1554 h_gamgamMass_[2][1] -> Fill(
sqrt( gamgamMass2 ));
1556 if ( myPhotons[0].isEE() || myPhotons[1].isEE() ) {
1557 h_gamgamMass_[2][2] -> Fill(
sqrt( gamgamMass2 ));
1564 if ( myPhotons[1].
conversions()[0]->nTracks() ==2 ) {
1566 if ( chi2Prob1 > 0.0005 ) {
1567 h_gamgamMass_[2][0] -> Fill(
sqrt( gamgamMass2 ));
1568 if ( myPhotons[0].isEB() && myPhotons[1].isEB() ) {
1569 h_gamgamMass_[2][1] -> Fill(
sqrt( gamgamMass2 ));
1571 if ( myPhotons[0].isEE() || myPhotons[1].isEE() ) {
1572 h_gamgamMass_[2][2] -> Fill(
sqrt( gamgamMass2 ));
1585 for ( std::vector<PhotonMCTruth>::const_iterator mcPho=mcPhotons.begin(); mcPho !=mcPhotons.end(); mcPho++) {
1586 if ( (*mcPho).fourMomentum().et() < minPhoEtCut_ )
continue;
1588 for ( HepMC::GenEvent::particle_const_iterator mcIter=myGenEvent->particles_begin(); mcIter != myGenEvent->particles_end(); mcIter++ ) {
1589 if ( (*mcIter)->pdg_id() != 22 )
continue;
1590 bool isTheSame=
false;
1592 if ( (*mcIter)->production_vertex() ) {
1593 if ( (*mcIter)->production_vertex()->particles_begin(
HepMC::parents) !=
1595 mother = *((*mcIter)->production_vertex()->particles_begin(
HepMC::parents));
1601 float mcPhi= (*mcPho).fourMomentum().phi();
1602 mcPhi_= phiNormalization(mcPhi);
1603 mcEta_= (*mcPho).fourMomentum().pseudoRapidity();
1604 mcEta_ = etaTransformation(mcEta_, (*mcPho).primaryVertex().z() );
1605 mcConvR_= (*mcPho).vertex().perp();
1606 mcConvX_= (*mcPho).vertex().x();
1607 mcConvY_= (*mcPho).vertex().y();
1608 mcConvZ_= (*mcPho).vertex().z();
1609 mcConvEta_= (*mcPho).vertex().eta();
1610 mcConvPhi_= (*mcPho).vertex().phi();
1612 if ( fabs(mcEta_) > END_HI )
continue;
1617 || (mother != 0 && mother->pdg_id() == 22)
1618 || (mother != 0 && mother->pdg_id() == 25)
1619 || (mother != 0 && mother->pdg_id() == 35) )
1623 double dPt = fabs((*mcIter)->momentum().perp() - (*mcPho).fourMomentum().et());
1624 float phiMother=(*mcIter)->momentum().phi();
1625 double dPhi = phiNormalization(phiMother) - mcPhi_ ;
1626 double dEta = fabs( (*mcIter)->momentum().eta() - (*mcPho).fourMomentum().pseudoRapidity() );
1631 if ( dEta <=0.0001 && dPhi <=0.0001 && dPt <=0.0001)
1635 if ( ! isTheSame )
continue;
1646 h_SimPhoMotherEt_[0]->Fill( (*mcPho).motherMomentum().et() );
1647 h_SimPhoMotherEta_[0]->Fill( (*mcPho).motherMomentum().pseudoRapidity());
1649 h_SimPho_[0]->Fill ( mcEta_);
1650 h_SimPho_[1]->Fill ( mcPhi_);
1651 h_SimPho_[2]->Fill ( (*mcPho).fourMomentum().et() );
1658 bool goodSimConversion=
false;
1659 bool visibleConversion=
false;
1660 bool visibleConversionsWithTwoSimTracks=
false;
1661 if ( (*mcPho).isAConversion() == 1 ) {
1663 h_AllSimConv_[0]->Fill( mcEta_ ) ;
1664 h_AllSimConv_[1]->Fill( mcPhi_ );
1665 h_AllSimConv_[2]->Fill( mcConvR_ );
1666 h_AllSimConv_[3]->Fill( mcConvZ_ );
1667 h_AllSimConv_[4]->Fill( (*mcPho).fourMomentum().et());
1669 if ( mcConvR_ <15) h_SimConvEtaPix_[0]->Fill( mcEta_ ) ;
1671 if ( ( fabs(mcEta_) <= BARL && mcConvR_ <85 ) ||
1672 ( fabs(mcEta_) > BARL && fabs(mcEta_) <=END_HI && fabs( (*mcPho).vertex().z() ) < 210 ) ) visibleConversion=
true;
1684 if ( fabs( tp->vx() - (*mcPho).vertex().x() ) < 0.001 &&
1685 fabs( tp->vy() - (*mcPho).vertex().y() ) < 0.001 &&
1686 fabs( tp->vz() - (*mcPho).vertex().z() ) < 0.001) {
1691 theConvTP_.push_back( tp );
1696 if ( theConvTP_.size() == 2 ) visibleConversionsWithTwoSimTracks=
true;
1697 goodSimConversion=
false;
1699 if ( visibleConversion && visibleConversionsWithTwoSimTracks ) goodSimConversion=
true;
1700 if ( goodSimConversion ) {
1702 h_VisSimConv_[0]->Fill( mcEta_ ) ;
1703 h_VisSimConv_[1]->Fill( mcPhi_ );
1704 h_VisSimConv_[2]->Fill( mcConvR_ );
1705 h_VisSimConv_[3]->Fill( mcConvZ_ );
1706 h_VisSimConv_[4]->Fill( (*mcPho).fourMomentum().et());
1710 for ( vector<TrackingParticleRef>::iterator iTrk=theConvTP_.begin(); iTrk!=theConvTP_.end(); ++iTrk) {
1711 h_simTkPt_ -> Fill ( (*iTrk)->pt() );
1712 h_simTkEta_ -> Fill ( (*iTrk)->eta() );
1720 float minDelta=10000.;
1721 std::vector<reco::Photon> thePhotons;
1727 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
1729 thePhotons.push_back(aPho);
1730 float phiPho=aPho.
phi();
1731 float etaPho=aPho.
eta();
1733 float deltaEta = etaPho-mcEta_;
1734 if ( deltaPhi >
pi ) deltaPhi -= twopi;
1735 if ( deltaPhi < -
pi) deltaPhi += twopi;
1736 deltaPhi=
pow(deltaPhi,2);
1737 deltaEta=
pow(deltaEta,2);
1739 if ( delta<0.1 && delta < minDelta ) {
1746 if ( iMatch>-1 ) matched=
true;
1752 h_SimPhoMotherEt_[1]->Fill( (*mcPho).motherMomentum().et() );
1753 h_SimPhoMotherEta_[1]->Fill( (*mcPho).motherMomentum().pseudoRapidity());
1755 h_MatchedSimPho_[0]->Fill( mcEta_ ) ;
1756 h_MatchedSimPho_[1]->Fill( mcPhi_ );
1757 h_MatchedSimPho_[2]->Fill( (*mcPho).fourMomentum().et());
1764 if ( ! matched)
continue;
1766 bool phoIsInBarrel=
false;
1767 bool phoIsInEndcap=
false;
1771 if ( fabs(matchingPho.
superCluster()->position().eta() ) < 1.479 ) {
1777 if ( phoIsInBarrel ) {
1779 e.
getByLabel(barrelEcalHits_, ecalRecHitHandle);
1780 if (!ecalRecHitHandle.
isValid()) {
1781 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product "<<barrelEcalHits_.label();
1785 }
else if ( phoIsInEndcap ) {
1788 e.
getByLabel(endcapEcalHits_, ecalRecHitHandle);
1789 if (!ecalRecHitHandle.
isValid()) {
1790 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product "<<endcapEcalHits_.label();
1800 float photonE = matchingPho.
energy();
1801 float photonEt= matchingPho.
energy()/cosh( matchingPho.
eta()) ;
1802 float r9 = matchingPho.
r9();
1803 float r1 = matchingPho.
r1x5();
1804 float r2 = matchingPho.
r2x5();
1811 std::vector< std::pair<DetId, float> >::const_iterator rhIt;
1813 bool atLeastOneDeadChannel=
false;
1815 for(rhIt = (*bcIt)->hitsAndFractions().begin();rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
1818 if (rhIt->first == (*it).id() ) {
1819 if ( (*it).recoFlag() == 9 ) {
1820 atLeastOneDeadChannel=
true;
1828 if ( atLeastOneDeadChannel ) {
1829 h_MatchedSimPhoBadCh_[0]->Fill( mcEta_ ) ;
1830 h_MatchedSimPhoBadCh_[1]->Fill( mcPhi_ );
1831 h_MatchedSimPhoBadCh_[2]->Fill( (*mcPho).fourMomentum().et());
1842 if ( phoIsInEndcap ) h_psE_->Fill( matchingPho.
superCluster()->preshowerEnergy() ) ;
1844 h_r9_[
type][0]->Fill( r9 );
1845 h2_r9VsEta_[0] -> Fill (mcEta_, r9);
1846 h2_r9VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), r9);
1848 h_r1_[
type][0]->Fill( r1 );
1849 h2_r1VsEta_[0] -> Fill (mcEta_, r1);
1850 h2_r1VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), r1);
1852 h_r2_[
type][0]->Fill( r2 );
1853 h2_r2VsEta_[0] -> Fill (mcEta_, r2);
1854 h2_r2VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), r2);
1856 h_sigmaIetaIeta_[
type][0]->Fill( sigmaIetaIeta );
1857 h2_sigmaIetaIetaVsEta_[0] -> Fill (mcEta_, sigmaIetaIeta );
1858 h2_sigmaIetaIetaVsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), sigmaIetaIeta);
1860 h_hOverE_[
type][0]->Fill( hOverE );
1861 h2_hOverEVsEta_[0] -> Fill (mcEta_, hOverE );
1862 h2_hOverEVsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), hOverE);
1863 p_hOverEVsEta_[0] -> Fill (mcEta_, hOverE );
1864 p_hOverEVsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), hOverE);
1866 h_ecalRecHitSumEtConeDR04_[
type][0]->Fill( ecalIso );
1867 h2_ecalRecHitSumEtConeDR04VsEta_[0] -> Fill (mcEta_, ecalIso );
1868 h2_ecalRecHitSumEtConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
1869 p_ecalRecHitSumEtConeDR04VsEta_[0] -> Fill (mcEta_, ecalIso );
1870 p_ecalRecHitSumEtConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
1872 h_hcalTowerSumEtConeDR04_[
type][0]->Fill( hcalIso );
1873 h2_hcalTowerSumEtConeDR04VsEta_[0] -> Fill (mcEta_, hcalIso );
1874 h2_hcalTowerSumEtConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
1875 p_hcalTowerSumEtConeDR04VsEta_[0] -> Fill (mcEta_, hcalIso );
1876 p_hcalTowerSumEtConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
1878 h_isoTrkSolidConeDR04_[
type][0]->Fill( trkIso );
1879 h2_isoTrkSolidConeDR04VsEta_[0] -> Fill (mcEta_, trkIso );
1880 h2_isoTrkSolidConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), trkIso);
1882 h_nTrkSolidConeDR04_[
type][0]->Fill( nIsoTrk );
1883 h2_nTrkSolidConeDR04VsEta_[0] -> Fill (mcEta_, nIsoTrk );
1884 h2_nTrkSolidConeDR04VsEt_[0] -> Fill ((*mcPho).fourMomentum().et(), nIsoTrk);
1886 h_phoEta_[
type]->Fill( matchingPho.
eta() );
1887 h_phoPhi_[
type]->Fill( matchingPho.
phi() );
1888 h_phoDEta_[0]->Fill ( matchingPho.
eta() - (*mcPho).fourMomentum().eta() );
1889 h_phoDPhi_[0]->Fill ( matchingPho.
phi() - mcPhi_ );
1890 h_phoE_[
type][0]->Fill( photonE );
1891 h_phoEt_[
type][0]->Fill( photonEt);
1893 h_phoERes_[0][0]->Fill( photonE / (*mcPho).fourMomentum().e() );
1894 h2_eResVsEta_[0]->Fill (mcEta_, photonE/(*mcPho).fourMomentum().e() ) ;
1895 p_eResVsEta_[0]->Fill (mcEta_, photonE/(*mcPho).fourMomentum().e() ) ;
1897 if ( ! isRunCentrally_ ) h2_eResVsEt_[0][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1898 p_eResVsEt_[0][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1900 h2_eResVsR9_[0]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
1901 h2_sceResVsR9_[0]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
1902 p_eResVsR9_[0]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
1903 p_sceResVsR9_[0]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
1905 if ( (*mcPho).isAConversion() == 0 ) {
1906 h2_eResVsEta_[1]->Fill (mcEta_, photonE/ (*mcPho).fourMomentum().e() ) ;
1910 h2_r9VsEta_[1] -> Fill (mcEta_, r9);
1911 h2_r9VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), r9);
1913 h2_r1VsEta_[1] -> Fill (mcEta_, r1);
1914 h2_r1VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), r1);
1916 h2_r2VsEta_[1] -> Fill (mcEta_, r2);
1917 h2_r2VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), r2);
1919 h2_sigmaIetaIetaVsEta_[1] -> Fill (mcEta_, sigmaIetaIeta );
1920 h2_sigmaIetaIetaVsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), sigmaIetaIeta);
1922 h2_hOverEVsEta_[1] -> Fill (mcEta_, hOverE );
1923 h2_hOverEVsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), hOverE);
1925 h2_ecalRecHitSumEtConeDR04VsEta_[1] -> Fill (mcEta_, ecalIso );
1926 p_ecalRecHitSumEtConeDR04VsEta_[1] -> Fill (mcEta_, ecalIso );
1928 h2_hcalTowerSumEtConeDR04VsEta_[1] -> Fill (mcEta_, hcalIso );
1929 p_hcalTowerSumEtConeDR04VsEta_[1] -> Fill (mcEta_, hcalIso );
1931 h2_isoTrkSolidConeDR04VsEta_[1] -> Fill (mcEta_, trkIso );
1932 h2_isoTrkSolidConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), trkIso);
1934 h2_nTrkSolidConeDR04VsEta_[1] -> Fill (mcEta_, nIsoTrk );
1935 h2_nTrkSolidConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), nIsoTrk);
1942 if ( photonE/(*mcPho).fourMomentum().e() < 0.3 && photonE/(*mcPho).fourMomentum().e() > 0.1 ) {
1949 h_phoERes_[1][0]->Fill( photonE / (*mcPho).fourMomentum().e() );
1950 if ( ! isRunCentrally_ ) h2_eResVsEt_[0][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1951 p_eResVsEt_[0][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1952 p_eResVsEta_[1]->Fill (mcEta_,photonE/ (*mcPho).fourMomentum().e() ) ;
1954 }
else if ( r9 <= 0.93 ) {
1955 h_phoERes_[2][0]->Fill(photonE / (*mcPho).fourMomentum().e() );
1956 if ( ! isRunCentrally_ ) h2_eResVsEt_[0][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1957 p_eResVsEt_[0][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1958 p_eResVsEta_[2]->Fill (mcEta_,photonE/ (*mcPho).fourMomentum().e() ) ;
1963 if ( phoIsInBarrel ) {
1966 h_r9_[
type][1]->Fill( r9 );
1967 h_r1_[
type][1]->Fill( r1 );
1968 h_r2_[
type][1]->Fill( r2 );
1969 h_sigmaIetaIeta_[
type][1]->Fill( sigmaIetaIeta );
1970 h_hOverE_[
type][1]->Fill( hOverE );
1971 h_ecalRecHitSumEtConeDR04_[
type][1]->Fill( ecalIso );
1972 h2_ecalRecHitSumEtConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
1973 p_ecalRecHitSumEtConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
1974 h_hcalTowerSumEtConeDR04_[
type][1]->Fill( hcalIso );
1975 h2_hcalTowerSumEtConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
1976 p_hcalTowerSumEtConeDR04VsEt_[1] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
1977 h_isoTrkSolidConeDR04_[
type][1]->Fill( trkIso );
1978 h_nTrkSolidConeDR04_[
type][1]->Fill( nIsoTrk );
1981 h_phoE_[
type][1]->Fill( photonE );
1982 h_phoEt_[
type][1]->Fill( photonEt );
1986 h_phoERes_[0][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
1987 h2_eResVsR9_[1]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
1988 h2_sceResVsR9_[1]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
1989 p_eResVsR9_[1]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
1990 p_sceResVsR9_[1]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
1992 if ( ! isRunCentrally_ ) h2_eResVsEt_[1][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1993 p_eResVsEt_[1][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1997 h_phoERes_[1][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
1998 if ( ! isRunCentrally_ ) h2_eResVsEt_[1][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
1999 p_eResVsEt_[1][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2002 h_phoERes_[2][1]->Fill( photonE / (*mcPho).fourMomentum().e() );
2003 if ( ! isRunCentrally_ ) h2_eResVsEt_[1][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2004 p_eResVsEt_[1][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2007 if ( phoIsInEndcap ) {
2010 h_r9_[
type][2]->Fill( r9 );
2011 h_r1_[
type][2]->Fill( r1 );
2012 h_r2_[
type][2]->Fill( r2 );
2013 h_sigmaIetaIeta_[
type][2]->Fill( sigmaIetaIeta );
2014 h_hOverE_[
type][2]->Fill( hOverE );
2015 h_ecalRecHitSumEtConeDR04_[
type][2]->Fill( ecalIso );
2016 h2_ecalRecHitSumEtConeDR04VsEt_[2] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
2017 p_ecalRecHitSumEtConeDR04VsEt_[2] -> Fill ((*mcPho).fourMomentum().et(), ecalIso);
2018 h_hcalTowerSumEtConeDR04_[
type][2]->Fill( hcalIso );
2019 h2_hcalTowerSumEtConeDR04VsEt_[2] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
2020 p_hcalTowerSumEtConeDR04VsEt_[2] -> Fill ((*mcPho).fourMomentum().et(), hcalIso);
2021 h_isoTrkSolidConeDR04_[
type][2]->Fill( trkIso );
2022 h_nTrkSolidConeDR04_[
type][2]->Fill( nIsoTrk );
2023 h_phoE_[
type][2]->Fill( photonE );
2024 h_phoEt_[
type][2]->Fill( photonEt );
2026 h_phoERes_[0][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2027 h2_eResVsR9_[2]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2028 h2_sceResVsR9_[2]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2029 p_eResVsR9_[2]->Fill (r9, photonE/(*mcPho).fourMomentum().e() ) ;
2030 p_sceResVsR9_[2]->Fill (r9, matchingPho.
superCluster()->energy()/(*mcPho).fourMomentum().e() ) ;
2032 if ( ! isRunCentrally_ ) h2_eResVsEt_[2][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2033 p_eResVsEt_[2][0]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2037 h_phoERes_[1][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2038 if ( ! isRunCentrally_ ) h2_eResVsEt_[2][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2039 p_eResVsEt_[2][1]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2042 h_phoERes_[2][2]->Fill( photonE / (*mcPho).fourMomentum().e() );
2043 if ( ! isRunCentrally_ ) h2_eResVsEt_[2][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2044 p_eResVsEt_[2][2]->Fill ((*mcPho).fourMomentum().et(), photonE/(*mcPho).fourMomentum().e() ) ;
2051 if ( ! (visibleConversion && visibleConversionsWithTwoSimTracks ) )
continue;
2052 h_r9_[1][0]->Fill( r9 );
2053 if ( phoIsInBarrel ) h_r9_[1][1]->Fill( r9 );
2054 if ( phoIsInEndcap ) h_r9_[1][2]->Fill( r9 );
2056 if ( ! isRunCentrally_ ) {
2057 h_simConvVtxRvsZ_[0] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2058 if ( fabs(mcEta_) <=1.) {
2059 h_simConvVtxRvsZ_[1] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2060 h_simConvVtxYvsX_ ->Fill ( mcConvX_, mcConvY_ ) ;
2063 h_simConvVtxRvsZ_[2] ->Fill ( fabs (mcConvZ_), mcConvR_ ) ;
2071 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
2073 double like = aConv->MVAout();
2074 if ( like < likelihoodCut_ )
continue;
2076 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEta_[1]->Fill (mcEta_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2077 p_EoverEtrueVsEta_[1]->Fill (mcEta_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2081 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
2082 if (tracks.size() < 1 )
continue;
2085 h_mvaOut_[0]-> Fill(like);
2087 if ( tracks.size()==2 ) {
2088 if (
sqrt( aConv->tracksPin()[0].Perp2()) < convTrackMinPtCut_ ||
sqrt( aConv->tracksPin()[1].Perp2()) < convTrackMinPtCut_)
continue;
2090 if (
sqrt( aConv->tracksPin()[0].Perp2()) < convTrackMinPtCut_ )
continue;
2095 if ( (fabs(mcEta_) > 1.1 && fabs (mcEta_) < 1.4 ) &&
2096 fabs( aConv->pairCotThetaSeparation() ) > dCotHardCutValue_ )
continue;
2097 if ( fabs( aConv->pairCotThetaSeparation() ) > dCotCutValue_ )
continue;
2105 std::map<reco::TrackRef,TrackingParticleRef> myAss;
2106 std::map<reco::TrackRef,TrackingParticleRef>::const_iterator itAss;
2107 std::map<reco::TrackRef,TrackingParticleRef>::const_iterator itAssMin;
2108 std::map<reco::TrackRef,TrackingParticleRef>::const_iterator itAssMax;
2113 for (
unsigned int i=0;
i<tracks.size();
i++) {
2117 if ( ! isRunCentrally_ ) nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits())-0.0001 );
2118 if ( ! isRunCentrally_ ) nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits())-0.0001 );
2119 p_nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits()) );
2120 p_nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits()) );
2121 h_tkChi2_[
type] ->Fill (tracks[
i]->normalizedChi2() );
2125 for (
size_t j = 0;
j < RtoSCollPtrs.size();
j++) {
2130 if( q.
find(myTk ) != q.
end() ) {
2131 std::vector<std::pair<TrackingParticleRef, double> > tp = q[myTk];
2132 for (
unsigned int itp=0; itp<tp.size(); itp++) {
2135 myAss.insert( std::make_pair ( track , myTP) );
2147 float refP =-99999.;
2148 float refPt =-99999.;
2149 if ( aConv->conversionVertex().isValid() ) {
2150 refP=
sqrt(aConv->refittedPairMomentum().Mag2());
2151 refPt=
sqrt(aConv->refittedPairMomentum().perp2());
2153 float invM = aConv->pairInvariantMass();
2155 h_invMass_[
type][0] ->Fill( invM);
2156 if ( phoIsInBarrel ) h_invMass_[
type][1] ->Fill(invM);
2157 if ( phoIsInEndcap ) h_invMass_[
type][2] ->Fill(invM);
2161 if ( tracks.size() ==1 ) {
2162 h_SimConvOneTracks_[0]->Fill( mcEta_ ) ;
2163 h_SimConvOneTracks_[1]->Fill( mcPhi_ );
2164 h_SimConvOneTracks_[2]->Fill( mcConvR_ );
2165 h_SimConvOneTracks_[3]->Fill( mcConvZ_ );
2166 h_SimConvOneTracks_[4]->Fill( (*mcPho).fourMomentum().et());
2169 }
else if ( tracks.size() ==2 ) {
2171 h_SimConvTwoTracks_[0]->Fill( mcEta_ ) ;
2172 h_SimConvTwoTracks_[1]->Fill( mcPhi_ );
2173 h_SimConvTwoTracks_[2]->Fill( mcConvR_ );
2174 h_SimConvTwoTracks_[3]->Fill( mcConvZ_ );
2175 h_SimConvTwoTracks_[4]->Fill( (*mcPho).fourMomentum().et());
2177 h_convEta_[1]->Fill( aConv->caloCluster()[0]->eta() );
2179 float trkProvenance=3;
2180 if ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"outInEcalSeededConv" ) trkProvenance=0;
2181 if ( tracks[0]->algoName() ==
"inOutEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv" ) trkProvenance=1;
2182 if ( ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv") ||
2183 ( tracks[1]->algoName() ==
"outInEcalSeededConv" && tracks[0]->algoName() ==
"inOutEcalSeededConv") ) trkProvenance=2;
2184 if ( trkProvenance==3 ) {
2187 h_trkProv_[0]->Fill( trkProvenance );
2197 h_r9_[2][0]->Fill( r9 );
2198 if ( phoIsInBarrel ) h_r9_[2][1]->Fill( r9 );
2199 if ( phoIsInEndcap ) h_r9_[2][2]->Fill( r9 );
2201 h_convEta_[2]->Fill( aConv->caloCluster()[0]->eta() );
2206 h_SimConvTwoMTracks_[0]->Fill( mcEta_ ) ;
2207 h_SimConvTwoMTracks_[1]->Fill( mcPhi_ );
2208 h_SimConvTwoMTracks_[2]->Fill( mcConvR_ );
2209 h_SimConvTwoMTracks_[3]->Fill( mcConvZ_ );
2210 h_SimConvTwoMTracks_[4]->Fill( (*mcPho).fourMomentum().et());
2212 if ( aConv->conversionVertex().isValid() ) {
2213 if ( trkProvenance==3 )
std::cout <<
" PhotonValidator provenance of tracks is mixed and vertex is valid " << std::endl;
2214 float chi2Prob =
ChiSquaredProbability( aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof() );
2215 if ( chi2Prob > 0) {
2216 h_SimConvTwoMTracksAndVtxPGT0_[0]->Fill( mcEta_ ) ;
2217 h_SimConvTwoMTracksAndVtxPGT0_[1]->Fill( mcPhi_ );
2218 h_SimConvTwoMTracksAndVtxPGT0_[2]->Fill( mcConvR_ );
2219 h_SimConvTwoMTracksAndVtxPGT0_[3]->Fill( mcConvZ_ );
2220 h_SimConvTwoMTracksAndVtxPGT0_[4]->Fill( (*mcPho).fourMomentum().et());
2222 if ( chi2Prob > 0.0005) {
2223 h_SimConvTwoMTracksAndVtxPGT0005_[0]->Fill( mcEta_ ) ;
2224 h_SimConvTwoMTracksAndVtxPGT0005_[1]->Fill( mcPhi_ );
2225 h_SimConvTwoMTracksAndVtxPGT0005_[2]->Fill( mcConvR_ );
2226 h_SimConvTwoMTracksAndVtxPGT0005_[3]->Fill( mcConvZ_ );
2227 h_SimConvTwoMTracksAndVtxPGT0005_[4]->Fill( (*mcPho).fourMomentum().et());
2231 if ( chi2Prob > 0.0005 ) {
2232 h_convEta_[0]->Fill( aConv->caloCluster()[0]->eta() );
2233 h_convPhi_[0]->Fill( aConv->caloCluster()[0]->phi() );
2234 h_convERes_[0][0]->Fill( aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
2235 if ( ! isRunCentrally_ ) h_r9VsNofTracks_[0][0]->Fill( r9, aConv->nTracks() ) ;
2237 if ( phoIsInBarrel ) {
2238 h_convERes_[0][1]->Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
2239 if ( ! isRunCentrally_ ) h_r9VsNofTracks_[0][1]->Fill( r9, aConv->nTracks() ) ;
2240 h_mvaOut_[1]-> Fill(like);
2242 if ( phoIsInEndcap ) {
2243 h_convERes_[0][2]->Fill(aConv->caloCluster()[0]->energy() / (*mcPho).fourMomentum().e() );
2244 if ( ! isRunCentrally_ ) h_r9VsNofTracks_[0][2]->Fill( r9, aConv->nTracks() ) ;
2245 h_mvaOut_[2]-> Fill(like);
2258 h_trkProv_[1]->Fill( trkProvenance );
2259 h_invMass_[
type][0] ->Fill( invM);
2263 float eoverp= -99999.;
2265 if ( aConv->conversionVertex().isValid() ) {
2266 eoverp= aConv->EoverPrefittedTracks();
2267 h_convPtRes_[
type][0]->Fill( refPt / (*mcPho).fourMomentum().et() );
2268 h_EoverPTracks_[
type][0] ->Fill( eoverp ) ;
2269 h_PoverETracks_[
type][0] ->Fill( 1./eoverp ) ;
2270 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[0] ->Fill( eoverp,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2271 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[0] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
2272 if ( ! isRunCentrally_ ) h2_EoverPVsEta_[0]->Fill (mcEta_, eoverp);
2273 if ( ! isRunCentrally_ ) h2_EoverPVsR_[0]->Fill (mcConvR_, eoverp);
2274 p_EoverPVsEta_[0]->Fill (mcEta_, eoverp);
2275 p_EoverPVsR_[0]->Fill (mcConvR_, eoverp);
2276 p_eResVsR_ ->Fill ( mcConvR_, photonE / (*mcPho).fourMomentum().e() );
2277 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEta_[0]->Fill (mcEta_,refP/ (*mcPho).fourMomentum().e() ) ;
2278 p_PoverPtrueVsEta_[0]->Fill (mcEta_,refP/ (*mcPho).fourMomentum().e() ) ;
2284 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEta_[0]->Fill (mcEta_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2285 if ( ! isRunCentrally_ ) h2_EoverEtrueVsR_[0]->Fill (mcConvR_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2286 p_EoverEtrueVsEta_[0]->Fill (mcEta_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2287 p_EoverEtrueVsR_[0]->Fill (mcConvR_,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2290 if ( ! isRunCentrally_ ) h2_etaVsRsim_[0]->Fill (mcEta_,mcConvR_);
2301 h_distMinAppTracks_[1][0]->Fill ( md.
distance() );
2309 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
2310 h_DPhiTracksAtVtx_[
type][0]->Fill( dPhiTracksAtVtx);
2311 if ( ! isRunCentrally_ ) h2_DPhiTracksAtVtxVsEta_->Fill( mcEta_, dPhiTracksAtVtx);
2312 if ( ! isRunCentrally_ ) h2_DPhiTracksAtVtxVsR_->Fill( mcConvR_, dPhiTracksAtVtx);
2313 p_DPhiTracksAtVtxVsEta_->Fill( mcEta_, dPhiTracksAtVtx);
2314 p_DPhiTracksAtVtxVsR_->Fill( mcConvR_, dPhiTracksAtVtx);
2316 h_DCotTracks_[
type][0] ->Fill ( aConv->pairCotThetaSeparation() );
2317 if ( ! isRunCentrally_ ) h2_DCotTracksVsEta_->Fill( mcEta_, aConv->pairCotThetaSeparation() );
2318 if ( ! isRunCentrally_ ) h2_DCotTracksVsR_->Fill( mcConvR_, aConv->pairCotThetaSeparation() );
2319 p_DCotTracksVsEta_->Fill( mcEta_, aConv->pairCotThetaSeparation() );
2320 p_DCotTracksVsR_->Fill( mcConvR_, aConv->pairCotThetaSeparation() );
2323 if ( phoIsInBarrel ) {
2324 h_invMass_[
type][1] ->Fill(invM);
2325 if ( aConv->conversionVertex().isValid() ) {
2326 h_convPtRes_[
type][1]->Fill( refPt / (*mcPho).fourMomentum().et() );
2327 h_EoverPTracks_[
type][1] ->Fill( eoverp ) ;
2328 if ( mcConvR_ < 15 ) h_EoverPTracks_[0][0] ->Fill( eoverp ) ;
2329 if ( mcConvR_ > 15 && mcConvR_< 58 ) h_EoverPTracks_[0][1] ->Fill( eoverp ) ;
2330 if ( mcConvR_ > 58 ) h_EoverPTracks_[0][2] ->Fill( eoverp ) ;
2331 h_PoverETracks_[
type][1] ->Fill( 1./eoverp ) ;
2332 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[1] ->Fill( eoverp,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2333 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[1] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
2335 h_DPhiTracksAtVtx_[
type][1]->Fill( dPhiTracksAtVtx);
2336 h_DCotTracks_[
type][1] ->Fill ( aConv->pairCotThetaSeparation() );
2342 if ( phoIsInEndcap ) {
2343 h_invMass_[
type][2] ->Fill(invM);
2344 if ( aConv->conversionVertex().isValid() ) {
2345 h_convPtRes_[
type][2]->Fill( refPt / (*mcPho).fourMomentum().et() );
2346 h_EoverPTracks_[
type][2] ->Fill( eoverp ) ;
2347 h_PoverETracks_[
type][2] ->Fill( 1./eoverp ) ;
2348 if ( ! isRunCentrally_ ) h2_EoverEtrueVsEoverP_[2] ->Fill( eoverp,matchingPho.
superCluster()->energy()/ (*mcPho).fourMomentum().e() ) ;
2349 if ( ! isRunCentrally_ ) h2_PoverPtrueVsEoverP_[2] ->Fill( eoverp, refP/ (*mcPho).fourMomentum().e() ) ;
2351 h_DPhiTracksAtVtx_[
type][2]->Fill( dPhiTracksAtVtx);
2352 h_DCotTracks_[
type][2] ->Fill ( aConv->pairCotThetaSeparation() );
2357 if ( aConv->conversionVertex().isValid() ) {
2359 h_convVtxdX_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
2360 h_convVtxdY_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
2361 h_convVtxdZ_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
2362 h_convVtxdR_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
2364 if ( fabs( mcConvEta_ ) <= 1.2 ) {
2365 h_convVtxdX_barrel_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
2366 h_convVtxdY_barrel_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
2367 h_convVtxdZ_barrel_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
2368 h_convVtxdR_barrel_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
2370 h_convVtxdX_endcap_ ->Fill ( aConv->conversionVertex().position().x() - mcConvX_);
2371 h_convVtxdY_endcap_ ->Fill ( aConv->conversionVertex().position().y() - mcConvY_);
2372 h_convVtxdZ_endcap_ ->Fill ( aConv->conversionVertex().position().z() - mcConvZ_);
2373 h_convVtxdR_endcap_ ->Fill (
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_);
2377 h_convVtxdPhi_ ->Fill ( aConv->conversionVertex().position().phi() - mcConvPhi_);
2378 h_convVtxdEta_ ->Fill ( aConv->conversionVertex().position().eta() - mcConvEta_);
2379 if ( ! isRunCentrally_ ) h2_convVtxdRVsR_ ->Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
2380 if ( ! isRunCentrally_ ) h2_convVtxdRVsEta_ ->Fill (mcEta_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
2381 p_convVtxdRVsR_ ->Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
2382 p_convVtxdRVsEta_ ->Fill (mcEta_,
sqrt(aConv->conversionVertex().position().perp2()) - mcConvR_ );
2383 float signX= aConv->refittedPairMomentum().x()/fabs(aConv->refittedPairMomentum().x());
2384 float signY= aConv->refittedPairMomentum().y()/fabs(aConv->refittedPairMomentum().y());
2385 float signZ= aConv->refittedPairMomentum().z()/fabs(aConv->refittedPairMomentum().z());
2386 p_convVtxdXVsX_ ->Fill (mcConvX_, (aConv->conversionVertex().position().x() - mcConvX_)*signX );
2387 p_convVtxdYVsY_ ->Fill (mcConvY_, (aConv->conversionVertex().position().y() - mcConvY_)*signY );
2388 p_convVtxdZVsZ_ ->Fill (mcConvZ_, (aConv->conversionVertex().position().z() - mcConvZ_)*signZ );
2391 if ( ! isRunCentrally_ ) h2_convVtxRrecVsTrue_ -> Fill (mcConvR_,
sqrt(aConv->conversionVertex().position().perp2()) );
2399 h_zPVFromTracks_[
type]->Fill ( aConv->zOfPrimaryVertexFromTracks() );
2400 h_dzPVFromTracks_[
type]->Fill ( aConv->zOfPrimaryVertexFromTracks() - (*mcPho).primaryVertex().z() );
2401 p_dzPVVsR_ ->Fill(mcConvR_, aConv->zOfPrimaryVertexFromTracks() - (*mcPho).primaryVertex().z() );
2402 if ( ! isRunCentrally_ ) h2_dzPVVsR_ ->Fill(mcConvR_, aConv->zOfPrimaryVertexFromTracks() - (*mcPho).primaryVertex().z() );
2405 float dPhiTracksAtEcal=-99;
2406 float dEtaTracksAtEcal=-99;
2407 if (aConv->bcMatchingWithTracks()[0].
isNonnull() && aConv->bcMatchingWithTracks()[1].
isNonnull() ) {
2408 nRecConvAssWithEcal_++;
2409 float recoPhi1 = aConv->ecalImpactPosition()[0].phi();
2410 float recoPhi2 = aConv->ecalImpactPosition()[1].phi();
2411 float recoEta1 = aConv->ecalImpactPosition()[0].eta();
2412 float recoEta2 = aConv->ecalImpactPosition()[1].eta();
2413 float bcPhi1 = aConv->bcMatchingWithTracks()[0]->phi();
2414 float bcPhi2 = aConv->bcMatchingWithTracks()[1]->phi();
2417 recoPhi1 = phiNormalization(recoPhi1);
2418 recoPhi2 = phiNormalization(recoPhi2);
2419 bcPhi1 = phiNormalization(bcPhi1);
2420 bcPhi2 = phiNormalization(bcPhi2);
2421 dPhiTracksAtEcal = recoPhi1 -recoPhi2;
2422 dPhiTracksAtEcal = phiNormalization( dPhiTracksAtEcal );
2423 dEtaTracksAtEcal = recoEta1 -recoEta2;
2426 h_DPhiTracksAtEcal_[
type][0]->Fill( fabs(dPhiTracksAtEcal));
2427 if ( ! isRunCentrally_ ) h2_DPhiTracksAtEcalVsR_ ->Fill (mcConvR_, fabs(dPhiTracksAtEcal));
2428 if ( ! isRunCentrally_ ) h2_DPhiTracksAtEcalVsEta_ ->Fill (mcEta_, fabs(dPhiTracksAtEcal));
2429 p_DPhiTracksAtEcalVsR_ ->Fill (mcConvR_, fabs(dPhiTracksAtEcal));
2430 p_DPhiTracksAtEcalVsEta_ ->Fill (mcEta_, fabs(dPhiTracksAtEcal));
2432 h_DEtaTracksAtEcal_[
type][0]->Fill( dEtaTracksAtEcal);
2434 if ( phoIsInBarrel ) {
2435 h_DPhiTracksAtEcal_[
type][1]->Fill( fabs(dPhiTracksAtEcal));
2436 h_DEtaTracksAtEcal_[
type][1]->Fill( dEtaTracksAtEcal);
2438 if ( phoIsInEndcap ) {
2439 h_DPhiTracksAtEcal_[
type][2]->Fill( fabs(dPhiTracksAtEcal));
2440 h_DEtaTracksAtEcal_[
type][2]->Fill( dEtaTracksAtEcal);
2449 for (
unsigned int i=0;
i<tracks.size();
i++) {
2451 itAss= myAss.find( track );
2452 if ( itAss == myAss.end() )
continue;
2454 float trkProvenance=3;
2455 if ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"outInEcalSeededConv" ) trkProvenance=0;
2456 if ( tracks[0]->algoName() ==
"inOutEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv" ) trkProvenance=1;
2457 if ( ( tracks[0]->algoName() ==
"outInEcalSeededConv" && tracks[1]->algoName() ==
"inOutEcalSeededConv") ||
2458 ( tracks[1]->algoName() ==
"outInEcalSeededConv" && tracks[0]->algoName() ==
"inOutEcalSeededConv") ) trkProvenance=2;
2461 if ( ! isRunCentrally_ ) nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits()) );
2462 if ( ! isRunCentrally_ ) nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits()) );
2463 p_nHitsVsEta_[
type] ->Fill (mcEta_,
float(tracks[
i]->numberOfValidHits()) -0.0001);
2464 p_nHitsVsR_[
type] ->Fill (mcConvR_,
float(tracks[
i]->numberOfValidHits()) -0.0001);
2465 h_tkChi2_[
type] ->Fill (tracks[
i]->normalizedChi2() );
2466 h_tkChi2Large_[
type] ->Fill (tracks[
i]->normalizedChi2() );
2467 if ( ! isRunCentrally_ ) h2_Chi2VsEta_[0] ->Fill( mcEta_, tracks[
i]->normalizedChi2() );
2468 if ( ! isRunCentrally_ ) h2_Chi2VsR_[0] ->Fill( mcConvR_, tracks[
i]->normalizedChi2() );
2469 p_Chi2VsEta_[0] ->Fill( mcEta_, tracks[
i]->normalizedChi2() );
2470 p_Chi2VsR_[0] ->Fill( mcConvR_, tracks[
i]->normalizedChi2() );
2473 float simPt =
sqrt( ((*itAss).second)->momentum().perp2() );
2478 if ( aConv->conversionVertex().isValid() ) {
2479 reco::Track refTrack= aConv->conversionVertex().refittedTracks()[
i];
2482 refPt=
sqrt (px*px + py*py );
2484 float ptres= refPt - simPt ;
2486 float pterror = aConv->conversionVertex().refittedTracks()[
i].ptError();
2487 if ( ! isRunCentrally_ ) {
2488 h2_PtRecVsPtSim_[0]->Fill ( simPt, refPt);
2489 if ( trkProvenance ==3 ) h2_PtRecVsPtSimMixProv_->Fill ( simPt, refPt);
2492 h_TkPtPull_[0] ->Fill(ptres/pterror);
2493 if ( ! isRunCentrally_ ) h2_TkPtPull_[0] ->Fill(mcEta_, ptres/pterror);
2495 h_TkD0_[0]->Fill ( tracks[
i]->
d0()* tracks[
i]->
charge() );
2498 if ( aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[0]->Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
2500 if ( phoIsInBarrel ) {
2501 h_TkD0_[1]->Fill ( tracks[
i]->
d0()* tracks[
i]->
charge() );
2502 h_TkPtPull_[1] ->Fill(ptres/pterror);
2503 if ( ! isRunCentrally_ ) h2_PtRecVsPtSim_[1]->Fill ( simPt, refPt);
2504 if ( aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[1]->Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
2507 if ( phoIsInEndcap ) {
2508 h_TkD0_[2]->Fill ( tracks[
i]->
d0()* tracks[
i]->
charge() );
2509 h_TkPtPull_[2] ->Fill(ptres/pterror);
2510 if ( ! isRunCentrally_ ) h2_PtRecVsPtSim_[2]->Fill ( simPt, refPt);
2511 if ( aConv->bcMatchingWithTracks()[
i].
isNonnull() ) hBCEnergyOverTrackPout_[2]->Fill ( aConv->bcMatchingWithTracks()[
i]->energy()/
sqrt(aConv->tracks()[
i]->outerMomentum().Mag2()) );
2528 h_nSimPho_[0]->Fill(
float(nSimPho_[0]));
2529 h_nSimPho_[1]->Fill(
float(nSimPho_[1]));
2530 h_nSimConv_[0]->Fill(
float(nSimConv_[0]));
2531 h_nSimConv_[1]->Fill(
float(nSimConv_[1]));
2536 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
2540 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
2542 double like = aConv->MVAout();
2543 if ( like < likelihoodCut_ )
continue;
2545 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
2546 if (tracks.size() < 2 )
continue;
2548 bool phoIsInBarrel=
false;
2549 bool phoIsInEndcap=
false;
2550 if ( fabs(aConv->caloCluster()[0]->eta() ) < 1.479 ) {
2558 if ( ( fabs(mcEta_) > 1.1 && fabs (mcEta_) < 1.4 ) &&
2559 fabs( aConv->pairCotThetaSeparation() ) > dCotHardCutValue_ )
continue;
2560 if ( fabs( aConv->pairCotThetaSeparation() ) > dCotCutValue_ )
continue;
2564 h_RecoConvTwoTracks_[0]->Fill( aPho.
eta() ) ;
2565 h_RecoConvTwoTracks_[1]->Fill( aPho.
phi() );
2566 if ( aConv->conversionVertex().isValid() ) h_RecoConvTwoTracks_[2]->Fill( aConv->conversionVertex().position().perp2() );
2567 h_RecoConvTwoTracks_[3]->Fill( aConv->conversionVertex().position().z() );
2568 h_RecoConvTwoTracks_[4]->Fill( aPho.
et() ) ;
2574 std::map<reco::TrackRef,TrackingParticleRef> myAss;
2575 for (
unsigned int i=0;
i<tracks.size();
i++) {
2579 for (
size_t j = 0;
j < RtoSCollPtrs.size();
j++) {
2584 if( q.
find(myTk ) != q.
end() ) {
2585 std::vector<std::pair<TrackingParticleRef, double> > tp = q[myTk];
2586 for (
unsigned int itp=0; itp<tp.size(); itp++) {
2589 myAss.
insert( std::make_pair ( track , myTP) );
2598 h_RecoConvTwoMTracks_[0]->Fill( aPho.
eta() ) ;
2599 h_RecoConvTwoMTracks_[1]->Fill( aPho.
phi() );
2600 if ( aConv->conversionVertex().isValid() ) h_RecoConvTwoMTracks_[2]->Fill( aConv->conversionVertex().position().perp2() );
2601 h_RecoConvTwoMTracks_[3]->Fill( aConv->conversionVertex().position().z() );
2602 h_RecoConvTwoMTracks_[4]->Fill( aPho.
et() ) ;
2608 if ( aConv->conversionVertex().isValid() ) {
2609 float chi2Prob =
ChiSquaredProbability( aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof() );
2611 double convR=
sqrt(aConv->conversionVertex().position().perp2());
2612 double scalar = aConv->conversionVertex().position().x()*aConv->pairMomentum().x() +
2613 aConv->conversionVertex().position().y()*aConv->pairMomentum().y();
2614 if ( scalar < 0 ) convR= -
sqrt(aConv->conversionVertex().position().perp2());
2616 if ( ! isRunCentrally_ ) h2_etaVsRreco_[0]->Fill (aConv->caloCluster()[0]->eta(),
sqrt(aConv->conversionVertex().position().perp2()) );
2617 h_convVtxRvsZ_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ),
sqrt(aConv->conversionVertex().position().perp2()) ) ;
2618 if ( fabs(aConv->caloCluster()[0]->eta() ) <= 1.) {
2620 h_convVtxYvsX_ ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
2621 h_convVtxRvsZ_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
2623 if ( ! isRunCentrally_ ) {
2624 h_convVtxYvsX_zoom_[0] ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
2625 h_convVtxYvsX_zoom_[1] ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
2626 h_convVtxRvsZ_zoom_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
2627 h_convVtxRvsZ_zoom_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
2631 if ( fabs(aConv->caloCluster()[0]->eta() ) > 1.) h_convVtxRvsZ_[2] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
2636 h_vtxChi2Prob_[0]->Fill( chi2Prob );
2637 h_vtxChi2_[0]->Fill( aConv->conversionVertex().normalizedChi2() );
2638 if ( phoIsInBarrel ) {
2639 h_vtxChi2Prob_[1]->Fill( chi2Prob );
2640 h_vtxChi2_[1]->Fill( aConv->conversionVertex().normalizedChi2() );
2642 if ( phoIsInEndcap ) {
2643 h_vtxChi2Prob_[2]->Fill( chi2Prob );
2644 h_vtxChi2_[2]->Fill( aConv->conversionVertex().normalizedChi2() );
2656 for (reco::GenJetCollection::const_iterator genJetIter = genJetCollection.begin();
2657 genJetIter != genJetCollection.end(); ++genJetIter) {
2659 if ( genJetIter->pt() < minPhoEtCut_ )
continue;
2660 if ( fabs(genJetIter->eta()) > 2.5 )
continue;
2662 float mcJetPhi= genJetIter->phi();
2663 mcJetPhi_= phiNormalization(mcJetPhi);
2664 mcJetEta_= genJetIter->eta();
2665 float mcJetPt = genJetIter->pt() ;
2667 h_SimJet_[0]->Fill ( mcJetEta_);
2668 h_SimJet_[1]->Fill ( mcJetPhi_);
2669 h_SimJet_[2]->Fill ( mcJetPt );
2671 std::vector<reco::Photon> thePhotons;
2675 for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
2677 float phiPho=aPho.
phi();
2678 float etaPho=aPho.
eta();
2680 float deltaEta = etaPho-mcJetEta_;
2681 if ( deltaPhi >
pi ) deltaPhi -= twopi;
2682 if ( deltaPhi < -
pi) deltaPhi += twopi;
2683 deltaPhi=
pow(deltaPhi,2);
2684 deltaEta=
pow(deltaEta,2);
2687 matchingPho = * iPho;
2692 if (! matched )
continue;
2695 h_MatchedSimJet_[0]->Fill( mcJetEta_ ) ;
2696 h_MatchedSimJet_[1]->Fill( mcJetPhi_ );
2697 h_MatchedSimJet_[2]->Fill( mcJetPt );
2700 bool phoIsInBarrel=
false;
2701 bool phoIsInEndcap=
false;
2702 if ( fabs(matchingPho.
superCluster()->position().eta() ) < 1.479 ) {
2708 if ( phoIsInBarrel ) {
2710 e.
getByLabel(barrelEcalHits_, ecalRecHitHandle);
2711 if (!ecalRecHitHandle.
isValid()) {
2712 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product "<<barrelEcalHits_.label();
2716 }
else if ( phoIsInEndcap ) {
2719 e.
getByLabel(endcapEcalHits_, ecalRecHitHandle);
2720 if (!ecalRecHitHandle.
isValid()) {
2721 edm::LogError(
"PhotonProducer") <<
"Error! Can't get the product "<<endcapEcalHits_.label();
2730 float photonE = matchingPho.
energy();
2731 float photonEt= matchingPho.
et();
2732 float r9 = matchingPho.
r9();
2733 float r1 = matchingPho.
r1x5();
2734 float r2 = matchingPho.
r2x5();
2741 std::vector< std::pair<DetId, float> >::const_iterator rhIt;
2743 bool atLeastOneDeadChannel=
false;
2745 for(rhIt = (*bcIt)->hitsAndFractions().begin();rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) {
2748 if (rhIt->first == (*it).id() ) {
2749 if ( (*it).recoFlag() == 9 ) {
2750 atLeastOneDeadChannel=
true;
2758 if ( atLeastOneDeadChannel ) {
2759 h_MatchedSimJetBadCh_[0]->Fill( mcJetEta_ ) ;
2760 h_MatchedSimJetBadCh_[1]->Fill( mcJetPhi_ );
2761 h_MatchedSimJetBadCh_[2]->Fill( mcJetPt );
2765 h_scBkgEta_->Fill( matchingPho.
superCluster()->eta() );
2766 h_scBkgPhi_->Fill( matchingPho.
superCluster()->phi() );
2767 h_scBkgE_[0]->Fill( matchingPho.
superCluster()->energy() );
2770 h_phoBkgEta_->Fill( matchingPho.
eta() );
2771 h_phoBkgPhi_->Fill( matchingPho.
phi() );
2772 h_phoBkgE_[0]->Fill( photonE );
2773 h_phoBkgEt_[0]->Fill( photonEt);
2774 h_phoBkgDEta_->Fill ( matchingPho.
eta() - mcJetEta_ );
2775 h_phoBkgDPhi_->Fill ( matchingPho.
phi() - mcJetPhi_ );
2778 h_r9Bkg_[0]->Fill( r9 );
2779 h_r1Bkg_[0]->Fill( r1 );
2780 h_r2Bkg_[0]->Fill( r2 );
2781 h_sigmaIetaIetaBkg_[0]->Fill( sigmaIetaIeta );
2782 h_hOverEBkg_[0]->Fill( hOverE );
2783 h_ecalRecHitSumEtConeDR04Bkg_[0]->Fill( ecalIso );
2784 h_hcalTowerSumEtConeDR04Bkg_[0]->Fill( hcalIso );
2785 h_isoTrkSolidConeDR04Bkg_[0]->Fill( trkIso );
2786 h_nTrkSolidConeDR04Bkg_[0]->Fill( nIsoTrk );
2789 h2_r9VsEtaBkg_ -> Fill (mcJetEta_, r9);
2790 h2_r9VsEtBkg_ -> Fill (mcJetPt, r9);
2792 h2_r1VsEtaBkg_ -> Fill (mcJetEta_, r1);
2793 h2_r1VsEtBkg_ -> Fill (mcJetPt, r1);
2794 p_r1VsEtaBkg_ -> Fill (mcJetEta_, r1);
2795 p_r1VsEtBkg_ -> Fill (mcJetPt, r1);
2797 h2_r2VsEtaBkg_ -> Fill (mcJetEta_, r2);
2798 h2_r2VsEtBkg_ -> Fill (mcJetPt, r2);
2799 p_r2VsEtaBkg_ -> Fill (mcJetEta_, r2);
2800 p_r2VsEtBkg_ -> Fill (mcJetPt, r2);
2803 h2_sigmaIetaIetaVsEtaBkg_ -> Fill (mcJetEta_, sigmaIetaIeta );
2804 p_sigmaIetaIetaVsEtaBkg_ -> Fill (mcJetEta_, sigmaIetaIeta );
2805 h2_sigmaIetaIetaVsEtBkg_[0] -> Fill (mcJetPt, sigmaIetaIeta);
2806 p_sigmaIetaIetaVsEtBkg_[0] -> Fill (mcJetPt, sigmaIetaIeta);
2809 h2_hOverEVsEtaBkg_ -> Fill (mcJetEta_, hOverE );
2810 h2_hOverEVsEtBkg_ -> Fill (mcJetPt, hOverE);
2811 p_hOverEVsEtaBkg_ -> Fill (mcJetEta_, hOverE );
2812 p_hOverEVsEtBkg_ -> Fill (mcJetPt, hOverE);
2815 h2_ecalRecHitSumEtConeDR04VsEtaBkg_ -> Fill (mcJetEta_, ecalIso );
2816 p_ecalRecHitSumEtConeDR04VsEtaBkg_ -> Fill (mcJetEta_, ecalIso );
2817 h2_ecalRecHitSumEtConeDR04VsEtBkg_[0] -> Fill ( mcJetPt, ecalIso);
2818 p_ecalRecHitSumEtConeDR04VsEtBkg_[0] -> Fill ( mcJetPt, ecalIso);
2821 h2_hcalTowerSumEtConeDR04VsEtaBkg_ -> Fill (mcJetEta_, hcalIso );
2822 p_hcalTowerSumEtConeDR04VsEtaBkg_ -> Fill (mcJetEta_, hcalIso );
2823 h2_hcalTowerSumEtConeDR04VsEtBkg_[0] -> Fill ( mcJetPt, hcalIso);
2824 p_hcalTowerSumEtConeDR04VsEtBkg_[0] -> Fill ( mcJetPt, hcalIso);
2826 h2_isoTrkSolidConeDR04VsEtaBkg_ -> Fill (mcJetEta_, trkIso );
2827 p_isoTrkSolidConeDR04VsEtaBkg_ -> Fill (mcJetEta_, trkIso );
2828 h2_isoTrkSolidConeDR04VsEtBkg_[0] -> Fill (mcJetPt, trkIso);
2829 p_isoTrkSolidConeDR04VsEtBkg_[0] -> Fill (mcJetPt, trkIso);
2832 h2_nTrkSolidConeDR04VsEtaBkg_ -> Fill (mcJetEta_, nIsoTrk );
2833 p_nTrkSolidConeDR04VsEtaBkg_ -> Fill (mcJetEta_, nIsoTrk );
2834 h2_nTrkSolidConeDR04VsEtBkg_[0] -> Fill (mcJetPt, nIsoTrk);
2835 p_nTrkSolidConeDR04VsEtBkg_[0] -> Fill (mcJetPt, nIsoTrk);
2840 if ( phoIsInBarrel ) {
2842 h_r9Bkg_[1]->Fill( r9 );
2843 h_r1Bkg_[1]->Fill( r1 );
2844 h_r2Bkg_[1]->Fill( r2 );
2847 h_sigmaIetaIetaBkg_[1]->Fill( sigmaIetaIeta );
2848 h_hOverEBkg_[1]->Fill( hOverE );
2849 h_ecalRecHitSumEtConeDR04Bkg_[1]->Fill( ecalIso );
2850 h_hcalTowerSumEtConeDR04Bkg_[1]->Fill( hcalIso );
2851 h_isoTrkSolidConeDR04Bkg_[1]->Fill( trkIso );
2852 h_nTrkSolidConeDR04Bkg_[1]->Fill( nIsoTrk );
2854 h2_sigmaIetaIetaVsEtBkg_[1] -> Fill (mcJetPt, sigmaIetaIeta);
2855 p_sigmaIetaIetaVsEtBkg_[1] -> Fill (mcJetPt, sigmaIetaIeta);
2857 h2_ecalRecHitSumEtConeDR04VsEtBkg_[1] -> Fill ( mcJetPt, ecalIso);
2858 p_ecalRecHitSumEtConeDR04VsEtBkg_[1] -> Fill ( mcJetPt, ecalIso);
2860 h2_hcalTowerSumEtConeDR04VsEtBkg_[1] -> Fill ( mcJetPt, hcalIso);
2861 p_hcalTowerSumEtConeDR04VsEtBkg_[1] -> Fill ( mcJetPt, hcalIso);
2863 h2_isoTrkSolidConeDR04VsEtBkg_[1] -> Fill (mcJetPt, trkIso);
2864 p_isoTrkSolidConeDR04VsEtBkg_[1] -> Fill (mcJetPt, trkIso);
2866 h2_nTrkSolidConeDR04VsEtBkg_[1] -> Fill (mcJetPt, nIsoTrk);
2867 p_nTrkSolidConeDR04VsEtBkg_[1] -> Fill (mcJetPt, nIsoTrk);
2870 }
else if ( phoIsInEndcap ) {
2872 h_r9Bkg_[2]->Fill( r9 );
2873 h_r1Bkg_[2]->Fill( r1 );
2874 h_r2Bkg_[2]->Fill( r2 );
2876 h_sigmaIetaIetaBkg_[2]->Fill( sigmaIetaIeta );
2877 h_hOverEBkg_[2]->Fill( hOverE );
2878 h_ecalRecHitSumEtConeDR04Bkg_[2]->Fill( ecalIso );
2879 h_hcalTowerSumEtConeDR04Bkg_[2]->Fill( hcalIso );
2880 h_isoTrkSolidConeDR04Bkg_[2]->Fill( trkIso );
2881 h_nTrkSolidConeDR04Bkg_[2]->Fill( nIsoTrk );
2883 h2_sigmaIetaIetaVsEtBkg_[2] -> Fill (mcJetPt, sigmaIetaIeta);
2884 p_sigmaIetaIetaVsEtBkg_[2] -> Fill (mcJetPt, sigmaIetaIeta);
2886 h2_ecalRecHitSumEtConeDR04VsEtBkg_[2] -> Fill ( mcJetPt, ecalIso);
2887 p_ecalRecHitSumEtConeDR04VsEtBkg_[2] -> Fill ( mcJetPt, ecalIso);
2889 h2_hcalTowerSumEtConeDR04VsEtBkg_[2] -> Fill ( mcJetPt, hcalIso);
2890 p_hcalTowerSumEtConeDR04VsEtBkg_[2] -> Fill ( mcJetPt, hcalIso);
2892 h2_isoTrkSolidConeDR04VsEtBkg_[2] -> Fill (mcJetPt, trkIso);
2893 p_isoTrkSolidConeDR04VsEtBkg_[2] -> Fill (mcJetPt, trkIso);
2895 h2_nTrkSolidConeDR04VsEtBkg_[2] -> Fill (mcJetPt, nIsoTrk);
2896 p_nTrkSolidConeDR04VsEtBkg_[2] -> Fill (mcJetPt, nIsoTrk);
2904 for (
unsigned int iConv=0; iConv<conversions.
size(); iConv++) {
2907 const std::vector<edm::RefToBase<reco::Track> >
tracks = aConv->tracks();
2908 double like = aConv->MVAout();
2909 if ( like < likelihoodCut_ )
continue;
2910 if ( tracks.size() < 2 )
continue;
2911 h_convEtaBkg_->Fill( aConv->caloCluster()[0]->eta() );
2912 h_convPhiBkg_->Fill( aConv->caloCluster()[0]->phi() );
2913 h_mvaOutBkg_[0]-> Fill(like);
2914 float eoverp= aConv->EoverP();
2915 h_EoverPTracksBkg_[0] ->Fill( eoverp ) ;
2916 h_PoverETracksBkg_[0] ->Fill( 1./eoverp ) ;
2917 h_DCotTracksBkg_[0] ->Fill ( aConv->pairCotThetaSeparation() );
2918 float dPhiTracksAtVtx = aConv->dPhiTracksAtVtx();
2919 h_DPhiTracksAtVtxBkg_[0]->Fill( dPhiTracksAtVtx);
2921 if ( phoIsInBarrel ) {
2922 h_mvaOutBkg_[1]-> Fill(like);
2923 h_EoverPTracksBkg_[1] ->Fill( eoverp ) ;
2924 h_PoverETracksBkg_[1] ->Fill( 1./eoverp ) ;
2925 h_DCotTracksBkg_[1] ->Fill ( aConv->pairCotThetaSeparation() );
2926 h_DPhiTracksAtVtxBkg_[1]->Fill( dPhiTracksAtVtx);
2927 }
else if ( phoIsInEndcap ) {
2928 h_mvaOutBkg_[2]-> Fill(like);
2929 h_EoverPTracksBkg_[2] ->Fill( eoverp ) ;
2930 h_PoverETracksBkg_[2] ->Fill( 1./eoverp ) ;
2931 h_DCotTracksBkg_[2] ->Fill ( aConv->pairCotThetaSeparation() );
2932 h_DPhiTracksAtVtxBkg_[2]->Fill( dPhiTracksAtVtx);
2935 if ( aConv->conversionVertex().isValid() ) {
2937 double convR=
sqrt(aConv->conversionVertex().position().perp2());
2938 double scalar = aConv->conversionVertex().position().x()*aConv->pairMomentum().x() +
2939 aConv->conversionVertex().position().y()*aConv->pairMomentum().y();
2940 if ( scalar < 0 ) convR= -
sqrt(aConv->conversionVertex().position().perp2());
2942 if ( ! isRunCentrally_ ) {
2943 h_convVtxRvsZBkg_[0] ->Fill ( fabs (aConv->conversionVertex().position().z() ),
sqrt(aConv->conversionVertex().position().perp2()) ) ;
2944 if ( fabs(aConv->caloCluster()[0]->eta() ) <= 1.) {
2945 h_convVtxYvsXBkg_ ->Fill ( aConv->conversionVertex().position().y() , aConv->conversionVertex().position().x() ) ;
2946 h_convVtxRvsZBkg_[1] ->Fill ( fabs (aConv->conversionVertex().position().z() ), convR ) ;
2958 h_nPho_->Fill(
float(nPho));
2969 std::string
outputFileName = parameters_.getParameter<std::string>(
"OutputFileName");
2970 if ( ! isRunCentrally_ ) {
2974 edm::LogInfo(
"PhotonValidator") <<
"Analyzed " << nEvt_ <<
"\n";
2984 const float PI = 3.1415927;
2988 if(phi > PI) {phi = phi -
TWOPI;}
2989 if(phi < -PI) {phi = phi +
TWOPI;}
3000 const float PI = 3.1415927;
3003 const float R_ECAL = 136.5;
3010 float ZEcal = R_ECAL*sinh(EtaParticle)+Zvertex;
3012 if(ZEcal != 0.0) Theta = atan(R_ECAL/ZEcal);
3013 if(Theta<0.0) Theta = Theta+
PI ;
3016 if( fabs(ETA) > etaBarrelEndcap )
3019 if(EtaParticle<0.0 ) Zend = -Zend ;
3020 float Zlen = Zend - Zvertex ;
3021 float RR = Zlen/sinh(EtaParticle);
3022 Theta = atan(RR/Zend);
3023 if(Theta<0.0) Theta = Theta+
PI ;
3024 ETA = -
log(
tan(0.5*Theta));
virtual float distance() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
float hcalTowerSumEtConeDR04() const
Hcal isolation sum.
virtual bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const Vector & momentum() const
track momentum vector
virtual ~PhotonValidator()
reco::SuperClusterRef superCluster() const
Retrieve photonCore attributes.
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
virtual double et() const
transverse energy
const_iterator end() const
last iterator over the map (read only)
double deltaPhi(float phi1, float phi2)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
float trkSumPtSolidConeDR04() const
std::vector< GenJet > GenJetCollection
collection of GenJet objects
const_iterator find(const key_type &k) const
find element with specified reference key
std::vector< T >::const_iterator const_iterator
#define TWOPI
EgammaCoreTools.
float ecalRecHitSumEtConeDR04() const
virtual void beginRun(edm::Run const &r, edm::EventSetup const &theEventSetup)
virtual double eta() const
momentum pseudorapidity
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool isNonnull() const
Checks for non-null.
virtual double energy() const
energy
double dPhi(double phi1, double phi2)
reco::ConversionRefVector conversions() const
vector of references to Conversion's
float phiNormalization(float &a)
float sigmaIetaIeta() const
Tan< T >::type tan(const T &t)
float ChiSquaredProbability(double chiSquared, double nrDOF)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
float hadronicOverEm() const
the total hadronic over electromagnetic fraction
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
FreeTrajectoryState initialFreeState() const
virtual bool status() const
Log< T >::type log(const T &t)
void insert(const key_type &k, const data_type &v)
insert an association
T const * product() const
int nTrkSolidConeDR04() const
std::vector< Photon > PhotonCollection
collectin of Photon objects
static const float etaBarrelEndcap
T const * product() const
float etaTransformation(float a, float b)
static const float Z_Endcap
static const float R_ECAL
size_type size() const
Size of the RefVector.
std::vector< TrackingParticle > TrackingParticleCollection
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
virtual double phi() const
momentum azimuthal angle
tuple size
Write out results.
Power< A, B >::type pow(const A &a, const B &b)
void setCurrentFolder(const std::string &fullpath)
const_iterator begin() const
virtual void endRun(edm::Run &r, edm::EventSetup const &es)
PhotonValidator(const edm::ParameterSet &)