CMS 3D CMS Logo

GsfElectronFakeAnalyzer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RecoEgamma/Examples
4 // Class: GsfElectronFakeAnalyzer
5 //
13 //
14 // Original Author: Ursula Berthon, Claude Charlot
15 // Created: Mon Mar 27 13:22:06 CEST 2006
16 //
17 //
18 
39 
40 #include "CLHEP/Units/GlobalPhysicalConstants.h"
41 
42 #include "TMath.h"
43 #include "TFile.h"
44 #include "TH1F.h"
45 #include "TH1I.h"
46 #include "TH2F.h"
47 #include "TProfile.h"
48 #include "TTree.h"
49 
50 #include <iostream>
51 
53 public:
54  explicit GsfElectronFakeAnalyzer(const edm::ParameterSet &conf);
55 
56  ~GsfElectronFakeAnalyzer() override;
57 
58  void beginJob() override;
59  void endJob() override;
60  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
61 
62 private:
66  TFile *histfile_;
67  TTree *tree_;
68  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
70  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
71 
73 
80 
86 
121 
124 
145 
146  TH1F *histNum_;
147 
148  TH1F *histSclEn_;
151  TH1F *histSclEt_;
155  TH1F *histSclEta_;
156  TH1F *histSclPhi_;
172 
189  TH1F *h_ele_chi2;
195 
218 
227  TH1F *h_ele_EoP;
263 
318 
326 
328  TH1F *h_ele_eta;
333 
334  TH1F *h_ele_HoE;
344 
345  TH1F *h_ele_fbrem;
348 
361 
362  TH1F *h_ele_mva;
364 
373 
379  bool readAOD_;
380 
381  double maxPt_;
382  double maxAbsEta_;
383  double deltaR_;
384 
385  // histos limits and binning
386  double etamin;
387  double etamax;
388  double phimin;
389  double phimax;
390  double ptmax;
391  double pmax;
392  double eopmax;
393  double eopmaxsht;
394  double detamin;
395  double detamax;
396  double dphimin;
397  double dphimax;
398  double detamatchmin;
399  double detamatchmax;
400  double dphimatchmin;
401  double dphimatchmax;
402  double fhitsmax;
403  double lhitsmax;
404  double meemin;
405  double meemax;
406  double hoemin;
407  double hoemax;
408  int nbineta;
409  int nbinp;
410  int nbinpt;
412  int nbinphi;
413  int nbinp2D;
414  int nbinpt2D;
417  int nbineop;
421  int nbinxyz;
422  int nbindeta;
423  int nbindphi;
428  int nbinmee;
429  int nbinhoe;
430 };
431 
434 
435 using namespace reco;
436 
438  : beamSpot_(conf.getParameter<edm::InputTag>("beamSpot")) {
439  outputFile_ = conf.getParameter<std::string>("outputFile");
440  histfile_ = new TFile(outputFile_.c_str(), "RECREATE");
441  electronCollection_ = conf.getParameter<edm::InputTag>("electronCollection");
442  matchingObjectCollection_ = conf.getParameter<edm::InputTag>("matchingObjectCollection");
443  readAOD_ = conf.getParameter<bool>("readAOD");
444  maxPt_ = conf.getParameter<double>("MaxPt");
445  maxAbsEta_ = conf.getParameter<double>("MaxAbsEta");
446  deltaR_ = conf.getParameter<double>("DeltaR");
447 
448  edm::ParameterSet pset = conf.getParameter<edm::ParameterSet>("HistosConfigurationFake");
449 
450  etamin = pset.getParameter<double>("Etamin");
451  etamax = pset.getParameter<double>("Etamax");
452  phimin = pset.getParameter<double>("Phimin");
453  phimax = pset.getParameter<double>("Phimax");
454  ptmax = pset.getParameter<double>("Ptmax");
455  pmax = pset.getParameter<double>("Pmax");
456  eopmax = pset.getParameter<double>("Eopmax");
457  eopmaxsht = pset.getParameter<double>("Eopmaxsht");
458  detamin = pset.getParameter<double>("Detamin");
459  detamax = pset.getParameter<double>("Detamax");
460  dphimin = pset.getParameter<double>("Dphimin");
461  dphimax = pset.getParameter<double>("Dphimax");
462  detamatchmin = pset.getParameter<double>("Detamatchmin");
463  detamatchmax = pset.getParameter<double>("Detamatchmax");
464  dphimatchmin = pset.getParameter<double>("Dphimatchmin");
465  dphimatchmax = pset.getParameter<double>("Dphimatchmax");
466  fhitsmax = pset.getParameter<double>("Fhitsmax");
467  lhitsmax = pset.getParameter<double>("Lhitsmax");
468  nbineta = pset.getParameter<int>("Nbineta");
469  nbineta2D = pset.getParameter<int>("Nbineta2D");
470  nbinp = pset.getParameter<int>("Nbinp");
471  nbinpt = pset.getParameter<int>("Nbinpt");
472  nbinp2D = pset.getParameter<int>("Nbinp2D");
473  nbinpt2D = pset.getParameter<int>("Nbinpt2D");
474  nbinpteff = pset.getParameter<int>("Nbinpteff");
475  nbinphi = pset.getParameter<int>("Nbinphi");
476  nbinphi2D = pset.getParameter<int>("Nbinphi2D");
477  nbineop = pset.getParameter<int>("Nbineop");
478  nbineop2D = pset.getParameter<int>("Nbineop2D");
479  nbinfhits = pset.getParameter<int>("Nbinfhits");
480  nbinlhits = pset.getParameter<int>("Nbinlhits");
481  nbinxyz = pset.getParameter<int>("Nbinxyz");
482  nbindeta = pset.getParameter<int>("Nbindeta");
483  nbindphi = pset.getParameter<int>("Nbindphi");
484  nbindetamatch = pset.getParameter<int>("Nbindetamatch");
485  nbindphimatch = pset.getParameter<int>("Nbindphimatch");
486  nbindetamatch2D = pset.getParameter<int>("Nbindetamatch2D");
487  nbindphimatch2D = pset.getParameter<int>("Nbindphimatch2D");
488  nbinmee = pset.getParameter<int>("Nbinmee");
489  meemin = pset.getParameter<double>("Meemin");
490  meemax = pset.getParameter<double>("Meemax");
491  nbinhoe = pset.getParameter<int>("Nbinhoe");
492  hoemin = pset.getParameter<double>("Hoemin");
493  hoemax = pset.getParameter<double>("Hoemax");
494 }
495 
497  // do anything here that needs to be done at desctruction time
498  // (e.g. close files, deallocate resources etc.)
499  histfile_->Write();
500  histfile_->Close();
501 }
502 
504  histfile_->cd();
505 
506  // matching object
507  std::string::size_type locJet = matchingObjectCollection_.label().find("iterativeCone5CaloJets", 0);
509  if (locJet != std::string::npos) {
510  std::cout << "Matching objects are CaloJets " << std::endl;
511  type_ = "CaloJet";
512  } else {
513  std::cout << "Didn't recognize input matching objects!! " << std::endl;
514  }
515 
516  std::string htitle, hlabel;
517  hlabel = "h_" + type_ + "Num";
518  htitle = "# " + type_ + "s";
519  h_matchingObjectNum = new TH1F(hlabel.c_str(), htitle.c_str(), nbinfhits, 0., fhitsmax);
520 
521  // rec event
522 
523  histNum_ = new TH1F("h_recEleNum", "# rec electrons", 20, 0., 20.);
524 
525  // matching object distributions
526  hlabel = "h_" + type_ + "_eta";
527  htitle = type_ + " #eta";
528  h_matchingObjectEta = new TH1F(hlabel.c_str(), htitle.c_str(), nbineta, etamin, etamax);
529  hlabel = "h_" + type_ + "_abseta";
530  htitle = type_ + " |#eta|";
531  h_matchingObjectAbsEta = new TH1F(hlabel.c_str(), htitle.c_str(), nbineta / 2, 0., etamax);
532  hlabel = "h_" + type_ + "_P";
533  htitle = type_ + " p";
534  h_matchingObjectP = new TH1F(hlabel.c_str(), htitle.c_str(), nbinp, 0., pmax);
535  hlabel = "h_" + type_ + "_Pt";
536  htitle = type_ + " pt";
537  h_matchingObjectPt = new TH1F(hlabel.c_str(), htitle.c_str(), nbinpteff, 5., ptmax);
538  hlabel = "h_" + type_ + "_phi";
539  htitle = type_ + " phi";
540  h_matchingObjectPhi = new TH1F(hlabel.c_str(), htitle.c_str(), nbinphi, phimin, phimax);
541  hlabel = "h_" + type_ + "_z";
542  htitle = type_ + " z";
543  h_matchingObjectZ = new TH1F(hlabel.c_str(), htitle.c_str(), nbinxyz, -25, 25);
544 
545  // all electrons
546  h_ele_EoverP_all = new TH1F("h_ele_EoverP_all", "ele E/P_{vertex}, all reco electrons", nbineop, 0., eopmax);
547  h_ele_EseedOP_all = new TH1F("h_ele_EseedOP_all", "ele E_{seed}/P_{vertex}, all reco electrons", nbineop, 0., eopmax);
548  h_ele_EoPout_all = new TH1F("h_ele_EoPout_all", "ele E_{seed}/P_{out}, all reco electrons", nbineop, 0., eopmax);
549  h_ele_EeleOPout_all = new TH1F("h_ele_EeleOPout_all", "ele E_{ele}/P_{out}, all reco electrons", nbineop, 0., eopmax);
550  h_ele_dEtaSc_propVtx_all = new TH1F("h_ele_dEtaSc_propVtx_all",
551  "ele #eta_{sc} - #eta_{tr}, prop from vertex, all reco electrons",
553  detamatchmin,
554  detamatchmax);
555  h_ele_dPhiSc_propVtx_all = new TH1F("h_ele_dPhiSc_propVtx_all",
556  "ele #phi_{sc} - #phi_{tr}, prop from vertex, all reco electrons",
558  dphimatchmin,
559  dphimatchmax);
560  h_ele_dEtaCl_propOut_all = new TH1F("h_ele_dEtaCl_propOut_all",
561  "ele #eta_{cl} - #eta_{tr}, prop from outermost, all reco electrons",
563  detamatchmin,
564  detamatchmax);
565  h_ele_dPhiCl_propOut_all = new TH1F("h_ele_dPhiCl_propOut_all",
566  "ele #phi_{cl} - #phi_{tr}, prop from outermost, all reco electrons",
568  dphimatchmin,
569  dphimatchmax);
570  h_ele_HoE_all =
571  new TH1F("h_ele_HoE_all", "ele hadronic energy / em energy, all reco electrons", nbinhoe, hoemin, hoemax);
572  h_ele_vertexPt_all = new TH1F("h_ele_vertexPt_all", "ele p_{T}, all reco electrons", nbinpteff, 5., ptmax);
573  h_ele_vertexPt_all->Sumw2();
574  h_ele_vertexEta_all = new TH1F("h_ele_vertexEta_all", "ele eta, all reco electrons", nbineta, etamin, etamax);
575  h_ele_vertexEta_all->Sumw2();
576  h_ele_TIP_all = new TH1F("h_ele_TIP_all", "ele vertex transverse radius, all reco electrons", 100, 0., 0.2);
577  h_ele_mee_all = new TH1F("h_ele_mee_all", "ele pairs invariant mass, all reco electrons", nbinmee, meemin, meemax);
578  h_ele_mee_os = new TH1F("h_ele_mee_os", "ele pairs invariant mass, opp. sign", nbinmee, meemin, meemax);
579 
580  // duplicates
581  h_ele_E2mnE1vsMee_all = new TH2F("h_ele_E2mnE1vsMee_all",
582  "E2 - E1 vs ele pairs invariant mass, all electrons",
583  nbinmee,
584  meemin,
585  meemax,
586  100,
587  -50.,
588  50.);
589  h_ele_E2mnE1vsMee_egeg_all = new TH2F("h_ele_E2mnE1vsMee_egeg_all",
590  "E2 - E1 vs ele pairs invariant mass, ecal driven pairs, all electrons",
591  nbinmee,
592  meemin,
593  meemax,
594  100,
595  -50.,
596  50.);
597 
598  // matched electrons
599  h_ele_charge = new TH1F("h_ele_charge", "ele charge", 5, -2., 2.);
600  h_ele_chargeVsEta = new TH2F("h_ele_chargeVsEta", "ele charge vs eta", nbineta2D, etamin, etamax, 5, -2., 2.);
601  h_ele_chargeVsPhi = new TH2F("h_ele_chargeVsPhi", "ele charge vs phi", nbinphi2D, phimin, phimax, 5, -2., 2.);
602  h_ele_chargeVsPt = new TH2F("h_ele_chargeVsPt", "ele charge vs pt", nbinpt, 0., 100., 5, -2., 2.);
603  h_ele_vertexP = new TH1F("h_ele_vertexP", "ele momentum", nbinp, 0., pmax);
604  h_ele_vertexPt = new TH1F("h_ele_vertexPt", "ele transverse momentum", nbinpt, 0., ptmax);
606  new TH2F("h_ele_vertexPtVsEta", "ele transverse momentum vs eta", nbineta2D, etamin, etamax, nbinpt2D, 0., ptmax);
608  new TH2F("h_ele_vertexPtVsPhi", "ele transverse momentum vs phi", nbinphi2D, phimin, phimax, nbinpt2D, 0., ptmax);
610  new TH1F("h_ele_matchingObjectPt_matched", "Efficiency vs matching jet p_{T}", nbinpteff, 5., ptmax);
612  h_ele_vertexEta = new TH1F("h_ele_vertexEta", "ele momentum eta", nbineta, etamin, etamax);
614  new TH2F("h_ele_vertexEtaVsPhi", "ele momentum eta vs phi", nbineta2D, etamin, etamax, nbinphi2D, phimin, phimax);
616  new TH1F("h_ele_matchingObjectAbsEta_matched", "Efficiency vs matching jet |#eta|", nbineta / 2, 0., 2.5);
619  new TH1F("h_ele_matchingObjectEta_matched", "Efficiency vs matching jet #eta", nbineta, etamin, etamax);
622  new TH1F("h_ele_matchingObjectPhi_matched", "Efficiency vs matching jet phi", nbinphi, phimin, phimax);
624  h_ele_vertexPhi = new TH1F("h_ele_vertexPhi", "ele momentum #phi", nbinphi, phimin, phimax);
625  h_ele_vertexX = new TH1F("h_ele_vertexX", "ele vertex x", nbinxyz, -0.1, 0.1);
626  h_ele_vertexY = new TH1F("h_ele_vertexY", "ele vertex y", nbinxyz, -0.1, 0.1);
627  h_ele_vertexZ = new TH1F("h_ele_vertexZ", "ele vertex z", nbinxyz, -25, 25);
629  new TH1F("h_ele_matchingObjectZ_matched", "Efficiency vs matching jet z", nbinxyz, -25, 25);
631  h_ele_vertexTIP = new TH1F("h_ele_vertexTIP", "ele transverse impact parameter (wrt bs)", 90, 0., 0.15);
632  h_ele_vertexTIPVsEta = new TH2F("h_ele_vertexTIPVsEta",
633  "ele transverse impact parameter (wrt bs) vs eta",
634  nbineta2D,
635  etamin,
636  etamax,
637  45,
638  0.,
639  0.15);
640  h_ele_vertexTIPVsPhi = new TH2F("h_ele_vertexTIPVsPhi",
641  "ele transverse impact parameter (wrt bs) vs phi",
642  nbinphi2D,
643  phimin,
644  phimax,
645  45,
646  0.,
647  0.15);
648  h_ele_vertexTIPVsPt = new TH2F(
649  "h_ele_vertexTIPVsPt", "ele transverse impact parameter (wrt bs) vs Pt", nbinpt2D, 0., ptmax, 45, 0., 0.15);
650  h_ele_PoPmatchingObject = new TH1F("h_ele_PoPmatchingObject", "ele momentum / matching jet momentum", 75, 0., 1.5);
651  h_ele_PoPmatchingObjectVsEta = new TH2F("h_ele_PoPmatchingObjectVsEta",
652  "ele momentum / matching jet momentum vs eta",
653  nbineta2D,
654  etamin,
655  etamax,
656  50,
657  0.,
658  1.5);
659  h_ele_PoPmatchingObjectVsPhi = new TH2F("h_ele_PoPmatchingObjectVsPhi",
660  "ele momentum / matching jet momentum vs phi",
661  nbinphi2D,
662  phimin,
663  phimax,
664  50,
665  0.,
666  1.5);
667  h_ele_PoPmatchingObjectVsPt = new TH2F(
668  "h_ele_PoPmatchingObjectVsPt", "ele momentum / matching jet momentum vs eta", nbinpt2D, 0., ptmax, 50, 0., 1.5);
670  new TH1F("h_ele_PoPmatchingObject_barrel", "ele momentum / matching jet momentum, barrel", 75, 0., 1.5);
672  new TH1F("h_ele_PoPmatchingObject_endcaps", "ele momentum / matching jet momentum, endcaps", 75, 0., 1.5);
674  new TH1F("h_ele_EtaMnEtamatchingObject", "ele momentum eta - matching jet eta", nbindeta, detamin, detamax);
675  h_ele_EtaMnEtamatchingObjectVsEta = new TH2F("h_ele_EtaMnEtamatchingObjectVsEta",
676  "ele momentum eta - matching jet eta vs eta",
677  nbineta2D,
678  etamin,
679  etamax,
680  nbindeta / 2,
681  detamin,
682  detamax);
683  h_ele_EtaMnEtamatchingObjectVsPhi = new TH2F("h_ele_EtaMnEtamatchingObjectVsPhi",
684  "ele momentum eta - matching jet eta vs phi",
685  nbinphi2D,
686  phimin,
687  phimax,
688  nbindeta / 2,
689  detamin,
690  detamax);
691  h_ele_EtaMnEtamatchingObjectVsPt = new TH2F("h_ele_EtaMnEtamatchingObjectVsPt",
692  "ele momentum eta - matching jet eta vs pt",
693  nbinpt,
694  0.,
695  ptmax,
696  nbindeta / 2,
697  detamin,
698  detamax);
700  new TH1F("h_ele_PhiMnPhimatchingObject", "ele momentum phi - matching jet phi", nbindphi, dphimin, dphimax);
701  h_ele_PhiMnPhimatchingObject2 = new TH1F("h_ele_PhiMnPhimatchingObject2",
702  "ele momentum phi - matching jet phi",
704  dphimatchmin,
705  dphimatchmax);
706  h_ele_PhiMnPhimatchingObjectVsEta = new TH2F("h_ele_PhiMnPhimatchingObjectVsEta",
707  "ele momentum phi - matching SC phi vs eta",
708  nbineta2D,
709  etamin,
710  etamax,
711  nbindphi / 2,
712  dphimin,
713  dphimax);
714  h_ele_PhiMnPhimatchingObjectVsPhi = new TH2F("h_ele_PhiMnPhimatchingObjectVsPhi",
715  "ele momentum phi - matching SC phi vs phi",
716  nbinphi2D,
717  phimin,
718  phimax,
719  nbindphi / 2,
720  dphimin,
721  dphimax);
722  h_ele_PhiMnPhimatchingObjectVsPt = new TH2F("h_ele_PhiMnPhimatchingObjectVsPt",
723  "ele momentum phi - matching SC phi vs pt",
724  nbinpt2D,
725  0.,
726  ptmax,
727  nbindphi / 2,
728  dphimin,
729  dphimax);
730 
731  // matched electron, superclusters
732  histSclEn_ = new TH1F("h_scl_energy", "ele supercluster energy", nbinp, 0., pmax);
734  new TH1F("h_scl_EoEmatchingObject_barrel", "ele supercluster energy / matching jet energy, barrel", 50, 0.2, 1.2);
736  "h_scl_EoEmatchingObject_endcaps", "ele supercluster energy / matching jet energy, endcaps", 50, 0.2, 1.2);
737  histSclEt_ = new TH1F("h_scl_et", "ele supercluster transverse energy", nbinpt, 0., ptmax);
738  histSclEtVsEta_ = new TH2F(
739  "h_scl_etVsEta", "ele supercluster transverse energy vs eta", nbineta2D, etamin, etamax, nbinpt, 0., ptmax);
740  histSclEtVsPhi_ = new TH2F(
741  "h_scl_etVsPhi", "ele supercluster transverse energy vs phi", nbinphi2D, phimin, phimax, nbinpt, 0., ptmax);
743  new TH2F("h_scl_etaVsPhi", "ele supercluster eta vs phi", nbinphi2D, phimin, phimax, nbineta2D, etamin, etamax);
744  histSclEta_ = new TH1F("h_scl_eta", "ele supercluster eta", nbineta, etamin, etamax);
745  histSclPhi_ = new TH1F("h_scl_phi", "ele supercluster phi", nbinphi, phimin, phimax);
746 
747  histSclSigIEtaIEta_ = new TH1F("h_scl_sigietaieta", "ele supercluster sigma ieta ieta", 100, 0., 0.05);
749  new TH1F("h_scl_sigietaieta_barrel", "ele supercluster sigma ieta ieta, barrel", 100, 0., 0.05);
751  new TH1F("h_scl_sigietaieta_endcaps", "ele supercluster sigma ieta ieta, endcaps", 100, 0., 0.05);
752  histSclE1x5_ = new TH1F("h_scl_E1x5", "ele supercluster energy in 1x5", nbinp, 0., pmax);
753  histSclE1x5_barrel_ = new TH1F("h_scl_E1x5_barrel", "ele supercluster energy in 1x5 barrel", nbinp, 0., pmax);
754  histSclE1x5_endcaps_ = new TH1F("h_scl_E1x5_endcaps", "ele supercluster energy in 1x5 endcaps", nbinp, 0., pmax);
755  histSclE2x5max_ = new TH1F("h_scl_E2x5max", "ele supercluster energy in 2x5 max", nbinp, 0., pmax);
757  new TH1F("h_scl_E2x5max_barrel", "ele supercluster energy in 2x5 max barrel", nbinp, 0., pmax);
759  new TH1F("h_scl_E2x5max_endcaps", "ele supercluster energy in 2x5 max endcaps", nbinp, 0., pmax);
760  histSclE5x5_ = new TH1F("h_scl_E5x5", "ele supercluster energy in 5x5", nbinp, 0., pmax);
761  histSclE5x5_barrel_ = new TH1F("h_scl_E5x5_barrel", "ele supercluster energy in 5x5 barrel", nbinp, 0., pmax);
762  histSclE5x5_endcaps_ = new TH1F("h_scl_E5x5_endcaps", "ele supercluster energy in 5x5 endcaps", nbinp, 0., pmax);
763 
764  // matched electron, gsf tracks
765  h_ele_ambiguousTracks = new TH1F("h_ele_ambiguousTracks", "ele # ambiguous tracks", 5, 0., 5.);
767  new TH2F("h_ele_ambiguousTracksVsEta", "ele # ambiguous tracks vs eta", nbineta2D, etamin, etamax, 5, 0., 5.);
769  new TH2F("h_ele_ambiguousTracksVsPhi", "ele # ambiguous tracks vs phi", nbinphi2D, phimin, phimax, 5, 0., 5.);
771  new TH2F("h_ele_ambiguousTracksVsPt", "ele # ambiguous tracks vs pt", nbinpt2D, 0., ptmax, 5, 0., 5.);
772  h_ele_foundHits = new TH1F("h_ele_foundHits", "ele track # found hits", nbinfhits, 0., fhitsmax);
773  h_ele_foundHitsVsEta = new TH2F(
774  "h_ele_foundHitsVsEta", "ele track # found hits vs eta", nbineta2D, etamin, etamax, nbinfhits, 0., fhitsmax);
775  h_ele_foundHitsVsPhi = new TH2F(
776  "h_ele_foundHitsVsPhi", "ele track # found hits vs phi", nbinphi2D, phimin, phimax, nbinfhits, 0., fhitsmax);
778  new TH2F("h_ele_foundHitsVsPt", "ele track # found hits vs pt", nbinpt2D, 0., ptmax, nbinfhits, 0., fhitsmax);
779  h_ele_lostHits = new TH1F("h_ele_lostHits", "ele track # lost hits", 5, 0., 5.);
780  h_ele_lostHitsVsEta = new TH2F(
781  "h_ele_lostHitsVsEta", "ele track # lost hits vs eta", nbineta2D, etamin, etamax, nbinlhits, 0., lhitsmax);
782  h_ele_lostHitsVsPhi = new TH2F(
783  "h_ele_lostHitsVsPhi", "ele track # lost hits vs eta", nbinphi2D, phimin, phimax, nbinlhits, 0., lhitsmax);
785  new TH2F("h_ele_lostHitsVsPt", "ele track # lost hits vs eta", nbinpt2D, 0., ptmax, nbinlhits, 0., lhitsmax);
786  h_ele_chi2 = new TH1F("h_ele_chi2", "ele track #chi^{2}", 100, 0., 15.);
787  h_ele_chi2VsEta = new TH2F("h_ele_chi2VsEta", "ele track #chi^{2} vs eta", nbineta2D, etamin, etamax, 50, 0., 15.);
788  h_ele_chi2VsPhi = new TH2F("h_ele_chi2VsPhi", "ele track #chi^{2} vs phi", nbinphi2D, phimin, phimax, 50, 0., 15.);
789  h_ele_chi2VsPt = new TH2F("h_ele_chi2VsPt", "ele track #chi^{2} vs pt", nbinpt2D, 0., ptmax, 50, 0., 15.);
790  h_ele_PinMnPout = new TH1F("h_ele_PinMnPout", "ele track inner p - outer p, mean", nbinp, 0., 200.);
791  h_ele_PinMnPout_mode = new TH1F("h_ele_PinMnPout_mode", "ele track inner p - outer p, mode", nbinp, 0., 100.);
792  h_ele_PinMnPoutVsEta_mode = new TH2F("h_ele_PinMnPoutVsEta_mode",
793  "ele track inner p - outer p vs eta, mode",
794  nbineta2D,
795  etamin,
796  etamax,
797  nbinp2D,
798  0.,
799  100.);
800  h_ele_PinMnPoutVsPhi_mode = new TH2F("h_ele_PinMnPoutVsPhi_mode",
801  "ele track inner p - outer p vs phi, mode",
802  nbinphi2D,
803  phimin,
804  phimax,
805  nbinp2D,
806  0.,
807  100.);
808  h_ele_PinMnPoutVsPt_mode = new TH2F(
809  "h_ele_PinMnPoutVsPt_mode", "ele track inner p - outer p vs pt, mode", nbinpt2D, 0., ptmax, nbinp2D, 0., 100.);
810  h_ele_PinMnPoutVsE_mode = new TH2F(
811  "h_ele_PinMnPoutVsE_mode", "ele track inner p - outer p vs E, mode", nbinp2D, 0., 200., nbinp2D, 0., 100.);
812  h_ele_PinMnPoutVsChi2_mode = new TH2F(
813  "h_ele_PinMnPoutVsChi2_mode", "ele track inner p - outer p vs track chi2, mode", 50, 0., 20., nbinp2D, 0., 100.);
814  h_ele_outerP = new TH1F("h_ele_outerP", "ele track outer p, mean", nbinp, 0., pmax);
815  h_ele_outerP_mode = new TH1F("h_ele_outerP_mode", "ele track outer p, mode", nbinp, 0., pmax);
817  new TH2F("h_ele_outerPVsEta_mode", "ele track outer p vs eta mode", nbineta2D, etamin, etamax, 50, 0., pmax);
818  h_ele_outerPt = new TH1F("h_ele_outerPt", "ele track outer p_{T}, mean", nbinpt, 0., ptmax);
819  h_ele_outerPt_mode = new TH1F("h_ele_outerPt_mode", "ele track outer p_{T}, mode", nbinpt, 0., ptmax);
820  h_ele_outerPtVsEta_mode = new TH2F(
821  "h_ele_outerPtVsEta_mode", "ele track outer p_{T} vs eta, mode", nbineta2D, etamin, etamax, nbinpt2D, 0., ptmax);
822  h_ele_outerPtVsPhi_mode = new TH2F(
823  "h_ele_outerPtVsPhi_mode", "ele track outer p_{T} vs phi, mode", nbinphi2D, phimin, phimax, nbinpt2D, 0., ptmax);
825  new TH2F("h_ele_outerPtVsPt_mode", "ele track outer p_{T} vs pt, mode", nbinpt2D, 0., 100., nbinpt2D, 0., ptmax);
826 
827  // matched electrons,cluster-track matching
828  h_ele_EoP = new TH1F("h_ele_EoP", "ele E/P_{vertex}", nbineop, 0., eopmax);
829  h_ele_EoP->Sumw2();
830  h_ele_EoP_eg = new TH1F("h_ele_EoP_eg", "ele E/P_{vertex}, ecal driven", nbineop, 0., eopmax);
831  h_ele_EoP_eg->Sumw2();
832  h_ele_EoP_barrel = new TH1F("h_ele_EoP_barrel", "ele E/P_{vertex} barrel", nbineop, 0., eopmax);
833  h_ele_EoP_barrel->Sumw2();
834  h_ele_EoP_eg_barrel = new TH1F("h_ele_EoP_eg_barrel", "ele E/P_{vertex}, ecal driven barrel", nbineop, 0., eopmax);
835  h_ele_EoP_eg_barrel->Sumw2();
836  h_ele_EoP_endcaps = new TH1F("h_ele_EoP_endcaps", "ele E/P_{vertex} endcaps", nbineop, 0., eopmax);
837  h_ele_EoP_endcaps->Sumw2();
838  h_ele_EoP_eg_endcaps = new TH1F("h_ele_EoP_eg_endcaps", "ele E/P_{vertex}, ecal driven endcaps", nbineop, 0., eopmax);
839  h_ele_EoP_eg_endcaps->Sumw2();
841  new TH2F("h_ele_EoPVsEta", "ele E/P_{vertex} vs eta", nbineta2D, etamin, etamax, nbineop2D, 0., eopmaxsht);
843  new TH2F("h_ele_EoPVsPhi", "ele E/P_{vertex} vs phi", nbinphi2D, phimin, phimax, nbineop2D, 0., eopmaxsht);
844  h_ele_EoPVsE = new TH2F("h_ele_EoPVsE", "ele E/P_{vertex} vs E", 50, 0., pmax, 50, 0., 5.);
845  h_ele_EseedOP = new TH1F("h_ele_EseedOP", "ele E_{seed}/P_{vertex}", nbineop, 0., eopmax);
846  h_ele_EseedOP->Sumw2();
847  h_ele_EseedOP_eg = new TH1F("h_ele_EseedOP_eg", "ele E_{seed}/P_{vertex}, ecal driven", nbineop, 0., eopmax);
848  h_ele_EseedOP_eg->Sumw2();
849  h_ele_EseedOP_barrel = new TH1F("h_ele_EseedOP_barrel", "ele E_{seed}/P_{vertex} barrel", nbineop, 0., eopmax);
850  h_ele_EseedOP_barrel->Sumw2();
852  new TH1F("h_ele_EseedOP_eg_barrel", "ele E_{seed}/P_{vertex}, ecal driven barrel", nbineop, 0., eopmax);
853  h_ele_EseedOP_eg_barrel->Sumw2();
854  h_ele_EseedOP_endcaps = new TH1F("h_ele_EseedOP_endcaps", "ele E_{seed}/P_{vertex} endcaps", nbineop, 0., eopmax);
855  h_ele_EseedOP_endcaps->Sumw2();
857  new TH1F("h_ele_EseedOP_eg_endcaps", "ele E_{seed}/P_{vertex}, ecal driven, endcaps", nbineop, 0., eopmax);
858  h_ele_EseedOP_eg_endcaps->Sumw2();
859  h_ele_EseedOPVsEta = new TH2F(
860  "h_ele_EseedOPVsEta", "ele E_{seed}/P_{vertex} vs eta", nbineta2D, etamin, etamax, nbineop2D, 0., eopmaxsht);
861  h_ele_EseedOPVsPhi = new TH2F(
862  "h_ele_EseedOPVsPhi", "ele E_{seed}/P_{vertex} vs phi", nbinphi2D, phimin, phimax, nbineop2D, 0., eopmaxsht);
863  h_ele_EseedOPVsE = new TH2F("h_ele_EseedOPVsE", "ele E_{seed}/P_{vertex} vs E", 50, 0., pmax, 50, 0., 5.);
864  h_ele_EoPout = new TH1F("h_ele_EoPout", "ele E_{seed}/P_{out}", nbineop, 0., eopmax);
865  h_ele_EoPout->Sumw2();
866  h_ele_EoPout_eg = new TH1F("h_ele_EoPout_eg", "ele E_{seed}/P_{out}, ecal driven", nbineop, 0., eopmax);
867  h_ele_EoPout_eg->Sumw2();
868  h_ele_EoPout_barrel = new TH1F("h_ele_EoPout_barrel", "ele E_{seed}/P_{out} barrel", nbineop, 0., eopmax);
869  h_ele_EoPout_barrel->Sumw2();
871  new TH1F("h_ele_EoPout_eg_barrel", "ele E_{seed}/P_{out}, ecal driven, barrel", nbineop, 0., eopmax);
872  h_ele_EoPout_eg_barrel->Sumw2();
873  h_ele_EoPout_endcaps = new TH1F("h_ele_EoPout_endcaps", "ele E_{seed}/P_{out} endcaps", nbineop, 0., eopmax);
874  h_ele_EoPout_endcaps->Sumw2();
876  new TH1F("h_ele_EoPout_eg_endcaps", "ele E_{seed}/P_{out}, ecal driven, endcaps", nbineop, 0., eopmax);
877  h_ele_EoPout_eg_endcaps->Sumw2();
879  new TH2F("h_ele_EoPoutVsEta", "ele E/P_{out} vs eta", nbineta2D, etamin, etamax, nbineop2D, 0., eopmaxsht);
881  new TH2F("h_ele_EoPoutVsPhi", "ele E/P_{out} vs phi", nbinphi2D, phimin, phimax, nbineop2D, 0., eopmaxsht);
882  h_ele_EoPoutVsE = new TH2F("h_ele_EoPoutVsE", "ele E/P_{out} vs E", nbinp2D, 0., pmax, nbineop2D, 0., eopmaxsht);
883  h_ele_EeleOPout = new TH1F("h_ele_EeleOPout", "ele E_{ele}/P_{out}", nbineop, 0., eopmax);
884  h_ele_EeleOPout->Sumw2();
885  h_ele_EeleOPout_eg = new TH1F("h_ele_EeleOPout_eg", "ele E_{ele}/P_{out}, ecal driven", nbineop, 0., eopmax);
886  h_ele_EeleOPout_eg->Sumw2();
887  h_ele_EeleOPout_barrel = new TH1F("h_ele_EeleOPout_barrel", "ele E_{ele}/P_{out} barrel", nbineop, 0., eopmax);
888  h_ele_EeleOPout_barrel->Sumw2();
890  new TH1F("h_ele_EeleOPout_eg_barrel", "ele E_{ele}/P_{out}, ecal driven, barrel", nbineop, 0., eopmax);
891  h_ele_EeleOPout_eg_barrel->Sumw2();
892  h_ele_EeleOPout_endcaps = new TH1F("h_ele_EeleOPout_endcaps", "ele E_{ele}/P_{out} endcaps", nbineop, 0., eopmax);
893  h_ele_EeleOPout_endcaps->Sumw2();
895  new TH1F("h_ele_EeleOPout_eg_endcaps", "ele E_{ele}/P_{out}, ecal driven, endcaps", nbineop, 0., eopmax);
897  h_ele_EeleOPoutVsEta = new TH2F(
898  "h_ele_EeleOPoutVsEta", "ele E_{ele}/P_{out} vs eta", nbineta2D, etamin, etamax, nbineop2D, 0., eopmaxsht);
899  h_ele_EeleOPoutVsPhi = new TH2F(
900  "h_ele_EeleOPoutVsPhi", "ele E_{ele}/P_{out} vs phi", nbinphi2D, phimin, phimax, nbineop2D, 0., eopmaxsht);
902  new TH2F("h_ele_EeleOPoutVsE", "ele E_{ele}/P_{out} vs E", nbinp2D, 0., pmax, nbineop2D, 0., eopmaxsht);
903  h_ele_dEtaSc_propVtx = new TH1F(
904  "h_ele_dEtaSc_propVtx", "ele #eta_{sc} - #eta_{tr}, prop from vertex", nbindetamatch, detamatchmin, detamatchmax);
905  h_ele_dEtaSc_propVtx->Sumw2();
906  h_ele_dEtaSc_propVtx_eg = new TH1F("h_ele_dEtaSc_propVtx_eg",
907  "ele #eta_{sc} - #eta_{tr}, prop from vertex, ecal driven",
909  detamatchmin,
910  detamatchmax);
911  h_ele_dEtaSc_propVtx_eg->Sumw2();
912  h_ele_dEtaSc_propVtx_barrel = new TH1F("h_ele_dEtaSc_propVtx_barrel",
913  "ele #eta_{sc} - #eta_{tr}, prop from vertex, barrel",
915  detamatchmin,
916  detamatchmax);
918  h_ele_dEtaSc_propVtx_eg_barrel = new TH1F("h_ele_dEtaSc_propVtx_eg_barrel",
919  "ele #eta_{sc} - #eta_{tr}, prop from vertex, ecal driven, barrel",
921  detamatchmin,
922  detamatchmax);
924  h_ele_dEtaSc_propVtx_endcaps = new TH1F("h_ele_dEtaSc_propVtx_endcaps",
925  "ele #eta_{sc} - #eta_{tr}, prop from vertex, endcaps",
927  detamatchmin,
928  detamatchmax);
930  h_ele_dEtaSc_propVtx_eg_endcaps = new TH1F("h_ele_dEtaSc_propVtx_eg_endcaps",
931  "ele #eta_{sc} - #eta_{tr}, prop from vertex, ecal driven, endcaps",
933  detamatchmin,
934  detamatchmax);
936  h_ele_dEtaScVsEta_propVtx = new TH2F("h_ele_dEtaScVsEta_propVtx",
937  "ele #eta_{sc} - #eta_{tr} vs eta, prop from vertex",
938  nbineta2D,
939  etamin,
940  etamax,
942  detamatchmin,
943  detamatchmax);
944  h_ele_dEtaScVsPhi_propVtx = new TH2F("h_ele_dEtaScVsPhi_propVtx",
945  "ele #eta_{sc} - #eta_{tr} vs phi, prop from vertex",
946  nbinphi2D,
947  phimin,
948  phimax,
950  detamatchmin,
951  detamatchmax);
952  h_ele_dEtaScVsPt_propVtx = new TH2F("h_ele_dEtaScVsPt_propVtx",
953  "ele #eta_{sc} - #eta_{tr} vs pt, prop from vertex",
954  nbinpt2D,
955  0.,
956  ptmax,
958  detamatchmin,
959  detamatchmax);
960  h_ele_dPhiSc_propVtx = new TH1F(
961  "h_ele_dPhiSc_propVtx", "ele #phi_{sc} - #phi_{tr}, prop from vertex", nbindphimatch, dphimatchmin, dphimatchmax);
962  h_ele_dPhiSc_propVtx->Sumw2();
963  h_ele_dPhiSc_propVtx_eg = new TH1F("h_ele_dPhiSc_propVtx_eg",
964  "ele #phi_{sc} - #phi_{tr}, prop from vertex, ecal driven",
966  dphimatchmin,
967  dphimatchmax);
968  h_ele_dPhiSc_propVtx_eg->Sumw2();
969  h_ele_dPhiSc_propVtx_barrel = new TH1F("h_ele_dPhiSc_propVtx_barrel",
970  "ele #phi_{sc} - #phi_{tr}, prop from vertex, barrel",
972  dphimatchmin,
973  dphimatchmax);
975  h_ele_dPhiSc_propVtx_eg_barrel = new TH1F("h_ele_dPhiSc_propVtx_eg_barrel",
976  "ele #phi_{sc} - #phi_{tr}, prop from vertex, ecal driven, barrel",
978  dphimatchmin,
979  dphimatchmax);
981  h_ele_dPhiSc_propVtx_endcaps = new TH1F("h_ele_dPhiSc_propVtx_endcaps",
982  "ele #phi_{sc} - #phi_{tr}, prop from vertex, endcaps",
984  dphimatchmin,
985  dphimatchmax);
987  h_ele_dPhiSc_propVtx_eg_endcaps = new TH1F("h_ele_dPhiSc_propVtx_eg_endcaps",
988  "ele #phi_{sc} - #phi_{tr}, prop from vertex, ecal driven, endcaps",
990  dphimatchmin,
991  dphimatchmax);
993  h_ele_dPhiScVsEta_propVtx = new TH2F("h_ele_dPhiScVsEta_propVtx",
994  "ele #phi_{sc} - #phi_{tr} vs eta, prop from vertex",
995  nbineta2D,
996  etamin,
997  etamax,
999  dphimatchmin,
1000  dphimatchmax);
1001  h_ele_dPhiScVsPhi_propVtx = new TH2F("h_ele_dPhiScVsPhi_propVtx",
1002  "ele #phi_{sc} - #phi_{tr} vs phi, prop from vertex",
1003  nbinphi2D,
1004  phimin,
1005  phimax,
1007  dphimatchmin,
1008  dphimatchmax);
1009  h_ele_dPhiScVsPt_propVtx = new TH2F("h_ele_dPhiScVsPt_propVtx",
1010  "ele #phi_{sc} - #phi_{tr} vs pt, prop from vertex",
1011  nbinpt2D,
1012  0.,
1013  ptmax,
1015  dphimatchmin,
1016  dphimatchmax);
1017  h_ele_dEtaCl_propOut = new TH1F("h_ele_dEtaCl_propOut",
1018  "ele #eta_{cl} - #eta_{tr}, prop from outermost",
1019  nbindetamatch,
1020  detamatchmin,
1021  detamatchmax);
1022  h_ele_dEtaCl_propOut->Sumw2();
1023  h_ele_dEtaCl_propOut_eg = new TH1F("h_ele_dEtaCl_propOut_eg",
1024  "ele #eta_{cl} - #eta_{tr}, prop from outermost, ecal driven",
1025  nbindetamatch,
1026  detamatchmin,
1027  detamatchmax);
1028  h_ele_dEtaCl_propOut_eg->Sumw2();
1029  h_ele_dEtaCl_propOut_barrel = new TH1F("h_ele_dEtaCl_propOut_barrel",
1030  "ele #eta_{cl} - #eta_{tr}, prop from outermost, barrel",
1031  nbindetamatch,
1032  detamatchmin,
1033  detamatchmax);
1034  h_ele_dEtaCl_propOut_barrel->Sumw2();
1035  h_ele_dEtaCl_propOut_eg_barrel = new TH1F("h_ele_dEtaCl_propOut_eg_barrel",
1036  "ele #eta_{cl} - #eta_{tr}, prop from outermost, ecal driven, barrel",
1037  nbindetamatch,
1038  detamatchmin,
1039  detamatchmax);
1041  h_ele_dEtaCl_propOut_endcaps = new TH1F("h_ele_dEtaCl_propOut_endcaps",
1042  "ele #eta_{cl} - #eta_{tr}, prop from outermost, endcaps",
1043  nbindetamatch,
1044  detamatchmin,
1045  detamatchmax);
1047  h_ele_dEtaCl_propOut_eg_endcaps = new TH1F("h_ele_dEtaCl_propOut_eg_endcaps",
1048  "ele #eta_{cl} - #eta_{tr}, prop from outermost, ecal driven, endcaps",
1049  nbindetamatch,
1050  detamatchmin,
1051  detamatchmax);
1053  h_ele_dEtaClVsEta_propOut = new TH2F("h_ele_dEtaClVsEta_propOut",
1054  "ele #eta_{cl} - #eta_{tr} vs eta, prop from out",
1055  nbineta2D,
1056  etamin,
1057  etamax,
1059  detamatchmin,
1060  detamatchmax);
1061  h_ele_dEtaClVsPhi_propOut = new TH2F("h_ele_dEtaClVsPhi_propOut",
1062  "ele #eta_{cl} - #eta_{tr} vs phi, prop from out",
1063  nbinphi2D,
1064  phimin,
1065  phimax,
1067  detamatchmin,
1068  detamatchmax);
1069  h_ele_dEtaClVsPt_propOut = new TH2F("h_ele_dEtaScVsPt_propOut",
1070  "ele #eta_{cl} - #eta_{tr} vs pt, prop from out",
1071  nbinpt2D,
1072  0.,
1073  ptmax,
1075  detamatchmin,
1076  detamatchmax);
1077  h_ele_dPhiCl_propOut = new TH1F("h_ele_dPhiCl_propOut",
1078  "ele #phi_{cl} - #phi_{tr}, prop from outermost",
1079  nbindphimatch,
1080  dphimatchmin,
1081  dphimatchmax);
1082  h_ele_dPhiCl_propOut->Sumw2();
1083  h_ele_dPhiCl_propOut_eg = new TH1F("h_ele_dPhiCl_propOut_eg",
1084  "ele #phi_{cl} - #phi_{tr}, prop from outermost, ecal driven",
1085  nbindphimatch,
1086  dphimatchmin,
1087  dphimatchmax);
1088  h_ele_dPhiCl_propOut_eg->Sumw2();
1089  h_ele_dPhiCl_propOut_barrel = new TH1F("h_ele_dPhiCl_propOut_barrel",
1090  "ele #phi_{cl} - #phi_{tr}, prop from outermost, barrel",
1091  nbindphimatch,
1092  dphimatchmin,
1093  dphimatchmax);
1094  h_ele_dPhiCl_propOut_barrel->Sumw2();
1095  h_ele_dPhiCl_propOut_eg_barrel = new TH1F("h_ele_dPhiCl_propOut_eg_barrel",
1096  "ele #phi_{cl} - #phi_{tr}, prop from outermost, ecal driven, barrel",
1097  nbindphimatch,
1098  dphimatchmin,
1099  dphimatchmax);
1101  h_ele_dPhiCl_propOut_endcaps = new TH1F("h_ele_dPhiCl_propOut_endcaps",
1102  "ele #phi_{cl} - #phi_{tr}, prop from outermost, endcaps",
1103  nbindphimatch,
1104  dphimatchmin,
1105  dphimatchmax);
1107  h_ele_dPhiCl_propOut_eg_endcaps = new TH1F("h_ele_dPhiCl_propOut_eg_endcaps",
1108  "ele #phi_{cl} - #phi_{tr}, prop from outermost, ecal driven, endcaps",
1109  nbindphimatch,
1110  dphimatchmin,
1111  dphimatchmax);
1113  h_ele_dPhiClVsEta_propOut = new TH2F("h_ele_dPhiClVsEta_propOut",
1114  "ele #phi_{cl} - #phi_{tr} vs eta, prop from out",
1115  nbineta2D,
1116  etamin,
1117  etamax,
1119  dphimatchmin,
1120  dphimatchmax);
1121  h_ele_dPhiClVsPhi_propOut = new TH2F("h_ele_dPhiClVsPhi_propOut",
1122  "ele #phi_{cl} - #phi_{tr} vs phi, prop from out",
1123  nbinphi2D,
1124  phimin,
1125  phimax,
1127  dphimatchmin,
1128  dphimatchmax);
1129  h_ele_dPhiClVsPt_propOut = new TH2F("h_ele_dPhiSClsPt_propOut",
1130  "ele #phi_{cl} - #phi_{tr} vs pt, prop from out",
1131  nbinpt2D,
1132  0.,
1133  ptmax,
1135  dphimatchmin,
1136  dphimatchmax);
1137  h_ele_dEtaEleCl_propOut = new TH1F("h_ele_dEtaEleCl_propOut",
1138  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost",
1139  nbindetamatch,
1140  detamatchmin,
1141  detamatchmax);
1142  h_ele_dEtaEleCl_propOut->Sumw2();
1143  h_ele_dEtaEleCl_propOut_eg = new TH1F("h_ele_dEtaEleCl_propOut_eg",
1144  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost, ecal driven",
1145  nbindetamatch,
1146  detamatchmin,
1147  detamatchmax);
1148  h_ele_dEtaEleCl_propOut_eg->Sumw2();
1149  h_ele_dEtaEleCl_propOut_barrel = new TH1F("h_ele_dEtaEleCl_propOut_barrel",
1150  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost, barrel",
1151  nbindetamatch,
1152  detamatchmin,
1153  detamatchmax);
1155  h_ele_dEtaEleCl_propOut_eg_barrel = new TH1F("h_ele_dEtaEleCl_propOut_eg_barrel",
1156  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost, ecal driven, barrel",
1157  nbindetamatch,
1158  detamatchmin,
1159  detamatchmax);
1161  h_ele_dEtaEleCl_propOut_endcaps = new TH1F("h_ele_dEtaEleCl_propOut_endcaps",
1162  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost, endcaps",
1163  nbindetamatch,
1164  detamatchmin,
1165  detamatchmax);
1168  new TH1F("h_ele_dEtaEleCl_propOut_eg_endcaps",
1169  "ele #eta_{EleCl} - #eta_{tr}, prop from outermost, ecal driven, endcaps",
1170  nbindetamatch,
1171  detamatchmin,
1172  detamatchmax);
1174  h_ele_dEtaEleClVsEta_propOut = new TH2F("h_ele_dEtaEleClVsEta_propOut",
1175  "ele #eta_{EleCl} - #eta_{tr} vs eta, prop from out",
1176  nbineta2D,
1177  etamin,
1178  etamax,
1180  detamatchmin,
1181  detamatchmax);
1182  h_ele_dEtaEleClVsPhi_propOut = new TH2F("h_ele_dEtaEleClVsPhi_propOut",
1183  "ele #eta_{EleCl} - #eta_{tr} vs phi, prop from out",
1184  nbinphi2D,
1185  phimin,
1186  phimax,
1188  detamatchmin,
1189  detamatchmax);
1190  h_ele_dEtaEleClVsPt_propOut = new TH2F("h_ele_dEtaScVsPt_propOut",
1191  "ele #eta_{EleCl} - #eta_{tr} vs pt, prop from out",
1192  nbinpt2D,
1193  0.,
1194  ptmax,
1196  detamatchmin,
1197  detamatchmax);
1198  h_ele_dPhiEleCl_propOut = new TH1F("h_ele_dPhiEleCl_propOut",
1199  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost",
1200  nbindphimatch,
1201  dphimatchmin,
1202  dphimatchmax);
1203  h_ele_dPhiEleCl_propOut->Sumw2();
1204  h_ele_dPhiEleCl_propOut_eg = new TH1F("h_ele_dPhiEleCl_propOut_eg",
1205  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost, ecal driven",
1206  nbindphimatch,
1207  dphimatchmin,
1208  dphimatchmax);
1209  h_ele_dPhiEleCl_propOut_eg->Sumw2();
1210  h_ele_dPhiEleCl_propOut_barrel = new TH1F("h_ele_dPhiEleCl_propOut_barrel",
1211  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost, barrel",
1212  nbindphimatch,
1213  dphimatchmin,
1214  dphimatchmax);
1216  h_ele_dPhiEleCl_propOut_eg_barrel = new TH1F("h_ele_dPhiEleCl_propOut_eg_barrel",
1217  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost, ecal driven, barrel",
1218  nbindphimatch,
1219  dphimatchmin,
1220  dphimatchmax);
1222  h_ele_dPhiEleCl_propOut_endcaps = new TH1F("h_ele_dPhiEleCl_propOut_endcaps",
1223  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost, endcaps",
1224  nbindphimatch,
1225  dphimatchmin,
1226  dphimatchmax);
1229  new TH1F("h_ele_dPhiEleCl_propOut_eg_endcaps",
1230  "ele #phi_{EleCl} - #phi_{tr}, prop from outermost, ecal driven, endcaps",
1231  nbindphimatch,
1232  dphimatchmin,
1233  dphimatchmax);
1235  h_ele_dPhiEleClVsEta_propOut = new TH2F("h_ele_dPhiEleClVsEta_propOut",
1236  "ele #phi_{EleCl} - #phi_{tr} vs eta, prop from out",
1237  nbineta2D,
1238  etamin,
1239  etamax,
1241  dphimatchmin,
1242  dphimatchmax);
1243  h_ele_dPhiEleClVsPhi_propOut = new TH2F("h_ele_dPhiEleClVsPhi_propOut",
1244  "ele #phi_{EleCl} - #phi_{tr} vs phi, prop from out",
1245  nbinphi2D,
1246  phimin,
1247  phimax,
1249  dphimatchmin,
1250  dphimatchmax);
1251  h_ele_dPhiEleClVsPt_propOut = new TH2F("h_ele_dPhiSEleClsPt_propOut",
1252  "ele #phi_{EleCl} - #phi_{tr} vs pt, prop from out",
1253  nbinpt2D,
1254  0.,
1255  ptmax,
1257  dphimatchmin,
1258  dphimatchmax);
1259 
1260  h_ele_HoE = new TH1F("h_ele_HoE", "ele hadronic energy / em energy", nbinhoe, hoemin, hoemax);
1261  h_ele_HoE->Sumw2();
1262  h_ele_HoE_eg = new TH1F("h_ele_HoE_eg", "ele hadronic energy / em energy, ecal driven", nbinhoe, hoemin, hoemax);
1263  h_ele_HoE_eg->Sumw2();
1264  h_ele_HoE_barrel = new TH1F("h_ele_HoE_barrel", "ele hadronic energy / em energy, barrel", nbinhoe, hoemin, hoemax);
1265  h_ele_HoE_barrel->Sumw2();
1267  new TH1F("h_ele_HoE_eg_barrel", "ele hadronic energy / em energy, ecal driven, barrel", nbinhoe, hoemin, hoemax);
1268  h_ele_HoE_eg_barrel->Sumw2();
1270  new TH1F("h_ele_HoE_endcaps", "ele hadronic energy / em energy, endcaps", nbinhoe, hoemin, hoemax);
1271  h_ele_HoE_endcaps->Sumw2();
1272  h_ele_HoE_eg_endcaps = new TH1F(
1273  "h_ele_HoE_eg_endcaps", "ele hadronic energy / em energy, ecal driven, endcaps", nbinhoe, hoemin, hoemax);
1274  h_ele_HoE_eg_endcaps->Sumw2();
1275  h_ele_HoE_fiducial = new TH1F("h_ele_HoE_fiducial", "ele hadronic energy / em energy", nbinhoe, hoemin, hoemax);
1276  h_ele_HoEVsEta = new TH2F(
1277  "h_ele_HoEVsEta", "ele hadronic energy / em energy vs eta", nbineta, etamin, etamax, nbinhoe, hoemin, hoemax);
1278  h_ele_HoEVsPhi = new TH2F(
1279  "h_ele_HoEVsPhi", "ele hadronic energy / em energy vs phi", nbinphi2D, phimin, phimax, nbinhoe, hoemin, hoemax);
1280  h_ele_HoEVsE =
1281  new TH2F("h_ele_HoEVsE", "ele hadronic energy / em energy vs E", nbinp, 0., 300., nbinhoe, hoemin, hoemax);
1282 
1283  h_ele_seed_dphi2_ = new TH1F("h_ele_seedDphi2", "ele seed dphi 2nd layer", 50, -0.003, +0.003);
1285  new TH2F("h_ele_seedDphi2VsEta", "ele seed dphi 2nd layer vs eta", nbineta2D, etamin, etamax, 50, -0.003, +0.003);
1287  new TH2F("h_ele_seedDphi2VsPt", "ele seed dphi 2nd layer vs pt", nbinpt2D, 0., ptmax, 50, -0.003, +0.003);
1288  h_ele_seed_drz2_ = new TH1F("h_ele_seedDrz2", "ele seed dr/dz 2nd layer", 50, -0.03, +0.03);
1290  new TH2F("h_ele_seedDrz2VsEta", "ele seed dr/dz 2nd layer vs eta", nbineta2D, etamin, etamax, 50, -0.03, +0.03);
1292  new TH2F("h_ele_seedDrz2VsPt", "ele seed dr/dz 2nd layer vs pt", nbinpt2D, 0., ptmax, 50, -0.03, +0.03);
1293  h_ele_seed_subdet2_ = new TH1F("h_ele_seedSubdet2", "ele seed subdet 2nd layer", 10, 0., 10.);
1294 
1295  // classes
1296  h_ele_classes = new TH1F("h_ele_classes", "electron classes", 20, 0.0, 20.);
1297  h_ele_eta = new TH1F("h_ele_eta", "ele electron eta", nbineta / 2, 0.0, etamax);
1298  h_ele_eta_golden = new TH1F("h_ele_eta_golden", "ele electron eta golden", nbineta / 2, 0.0, etamax);
1299  h_ele_eta_bbrem = new TH1F("h_ele_eta_bbrem", "ele electron eta bbrem", nbineta / 2, 0.0, etamax);
1300  h_ele_eta_narrow = new TH1F("h_ele_eta_narrow", "ele electron eta narrow", nbineta / 2, 0.0, etamax);
1301  h_ele_eta_shower = new TH1F("h_ele_eta_show", "el, electron eta showering", nbineta / 2, 0.0, etamax);
1302  h_ele_PinVsPoutGolden_mode = new TH2F(
1303  "h_ele_PinVsPoutGolden_mode", "ele track inner p vs outer p, golden, mode", nbinp2D, 0., pmax, 50, 0., pmax);
1304  h_ele_PinVsPoutShowering_mode = new TH2F("h_ele_PinVsPoutShowering_mode",
1305  "ele track inner p vs outer p vs eta, showering, mode",
1306  nbinp2D,
1307  0.,
1308  pmax,
1309  50,
1310  0.,
1311  pmax);
1312  h_ele_PinVsPoutGolden_mean = new TH2F(
1313  "h_ele_PinVsPoutGolden_mean", "ele track inner p vs outer p, golden, mean", nbinp2D, 0., pmax, 50, 0., pmax);
1314  h_ele_PinVsPoutShowering_mean = new TH2F(
1315  "h_ele_PinVsPoutShowering_mean", "ele track inner p vs outer p, showering, mean", nbinp2D, 0., pmax, 50, 0., pmax);
1316  h_ele_PtinVsPtoutGolden_mode = new TH2F("h_ele_PtinVsPtoutGolden_mode",
1317  "ele track inner pt vs outer pt, golden, mode",
1318  nbinpt2D,
1319  0.,
1320  ptmax,
1321  50,
1322  0.,
1323  ptmax);
1324  h_ele_PtinVsPtoutShowering_mode = new TH2F("h_ele_PtinVsPtoutShowering_mode",
1325  "ele track inner pt vs outer pt, showering, mode",
1326  nbinpt2D,
1327  0.,
1328  ptmax,
1329  50,
1330  0.,
1331  ptmax);
1332  h_ele_PtinVsPtoutGolden_mean = new TH2F("h_ele_PtinVsPtoutGolden_mean",
1333  "ele track inner pt vs outer pt, golden, mean",
1334  nbinpt2D,
1335  0.,
1336  ptmax,
1337  50,
1338  0.,
1339  ptmax);
1340  h_ele_PtinVsPtoutShowering_mean = new TH2F("h_ele_PtinVsPtoutShowering_mean",
1341  "ele track inner pt vs outer pt, showering, mean",
1342  nbinpt2D,
1343  0.,
1344  ptmax,
1345  50,
1346  0.,
1347  ptmax);
1349  "h_scl_EoEmatchingObject golden, barrel", "ele SC energy over matching jet energy, golden, barrel", 100, 0.2, 1.2);
1350  histSclEoEmatchingObjectGolden_endcaps = new TH1F("h_scl_EoEmatchingObject golden, endcaps",
1351  "ele SC energy over matching jet energy, golden, endcaps",
1352  100,
1353  0.2,
1354  1.2);
1355  histSclEoEmatchingObjectShowering_barrel = new TH1F("h_scl_EoEmatchingObject showering, barrel",
1356  "ele SC energy over matching jet energy, showering, barrel",
1357  100,
1358  0.2,
1359  1.2);
1360  histSclEoEmatchingObjectShowering_endcaps = new TH1F("h_scl_EoEmatchingObject showering, endcaps",
1361  "ele SC energy over matching jet energy, showering, endcaps",
1362  100,
1363  0.2,
1364  1.2);
1365 
1366  // isolation
1367  h_ele_tkSumPt_dr03 = new TH1F("h_ele_tkSumPt_dr03", "tk isolation sum, dR=0.3", 100, 0.0, 20.);
1368  h_ele_ecalRecHitSumEt_dr03 = new TH1F("h_ele_ecalRecHitSumEt_dr03", "ecal isolation sum, dR=0.3", 100, 0.0, 20.);
1370  new TH1F("h_ele_hcalDepth1TowerSumEt_dr03", "hcal depth1 isolation sum, dR=0.3", 100, 0.0, 20.);
1372  new TH1F("h_ele_hcalDepth2TowerSumEt_dr03", "hcal depth2 isolation sum, dR=0.3", 100, 0.0, 20.);
1373  h_ele_tkSumPt_dr04 = new TH1F("h_ele_tkSumPt_dr04", "hcal isolation sum", 100, 0.0, 20.);
1374  h_ele_ecalRecHitSumEt_dr04 = new TH1F("h_ele_ecalRecHitSumEt_dr04", "ecal isolation sum, dR=0.4", 100, 0.0, 20.);
1376  new TH1F("h_ele_hcalDepth1TowerSumEt_dr04", "hcal depth1 isolation sum, dR=0.4", 100, 0.0, 20.);
1378  new TH1F("h_ele_hcalDepth2TowerSumEt_dr04", "hcal depth2 isolation sum, dR=0.4", 100, 0.0, 20.);
1379 
1380  // fbrem
1381  h_ele_fbrem = new TH1F("h_ele_fbrem", "ele brem fraction, mode", 100, 0., 1.);
1383  new TProfile("h_ele_fbremvsEtamode", "mean ele brem fraction vs eta, mode", nbineta2D, etamin, etamax, 0., 1.);
1385  new TProfile("h_ele_fbremvsEtamean", "mean ele brem fraction vs eta, mean", nbineta2D, etamin, etamax, 0., 1.);
1386 
1387  // e/g et pflow electrons
1388  h_ele_mva = new TH1F("h_ele_mva", "ele mva", 100, -1., 1.);
1389  h_ele_provenance = new TH1F("h_ele_provenance", "ele provenance", 5, -2., 3.);
1390 
1391  // histos titles
1392  h_matchingObjectNum->GetXaxis()->SetTitle("N_{SC}");
1393  h_matchingObjectNum->GetYaxis()->SetTitle("Events");
1394  h_matchingObjectEta->GetXaxis()->SetTitle("#eta_{SC}");
1395  h_matchingObjectEta->GetYaxis()->SetTitle("Events");
1396  h_matchingObjectP->GetXaxis()->SetTitle("E_{SC} (GeV)");
1397  h_matchingObjectP->GetYaxis()->SetTitle("Events");
1398  h_ele_foundHits->GetXaxis()->SetTitle("N_{hits}");
1399  h_ele_foundHits->GetYaxis()->SetTitle("Events");
1400  h_ele_ambiguousTracks->GetXaxis()->SetTitle("N_{ambiguous tracks}");
1401  h_ele_ambiguousTracks->GetYaxis()->SetTitle("Events");
1402  h_ele_lostHits->GetXaxis()->SetTitle("N_{lost hits}");
1403  h_ele_lostHits->GetYaxis()->SetTitle("Events");
1404  h_ele_chi2->GetXaxis()->SetTitle("#Chi^{2}");
1405  h_ele_chi2->GetYaxis()->SetTitle("Events");
1406  h_ele_charge->GetXaxis()->SetTitle("charge");
1407  h_ele_charge->GetYaxis()->SetTitle("Events");
1408  h_ele_vertexP->GetXaxis()->SetTitle("p_{vertex} (GeV/c)");
1409  h_ele_vertexP->GetYaxis()->SetTitle("Events");
1410  h_ele_vertexPt->GetXaxis()->SetTitle("p_{T vertex} (GeV/c)");
1411  h_ele_vertexPt->GetYaxis()->SetTitle("Events");
1412  h_ele_vertexEta->GetXaxis()->SetTitle("#eta");
1413  h_ele_vertexEta->GetYaxis()->SetTitle("Events");
1414  h_ele_vertexPhi->GetXaxis()->SetTitle("#phi (rad)");
1415  h_ele_vertexPhi->GetYaxis()->SetTitle("Events");
1416  h_ele_PoPmatchingObject->GetXaxis()->SetTitle("P/P_{jet}");
1417  h_ele_PoPmatchingObject->GetYaxis()->SetTitle("Events");
1418  h_ele_PoPmatchingObject_barrel->GetXaxis()->SetTitle("P/P_{jet}");
1419  h_ele_PoPmatchingObject_barrel->GetYaxis()->SetTitle("Events");
1420  h_ele_PoPmatchingObject_endcaps->GetXaxis()->SetTitle("P/P_{jet}");
1421  h_ele_PoPmatchingObject_endcaps->GetYaxis()->SetTitle("Events");
1422  histSclSigIEtaIEta_->GetXaxis()->SetTitle("#sigma_{#eta #eta}");
1423  histSclSigIEtaIEta_->GetYaxis()->SetTitle("Events");
1424  histSclSigIEtaIEta_barrel_->GetXaxis()->SetTitle("#sigma_{i#eta i#eta}");
1425  histSclSigIEtaIEta_barrel_->GetYaxis()->SetTitle("Events");
1426  histSclSigIEtaIEta_endcaps_->GetXaxis()->SetTitle("#sigma_{i#eta i#eta}");
1427  histSclSigIEtaIEta_endcaps_->GetYaxis()->SetTitle("Events");
1428  histSclE1x5_->GetXaxis()->SetTitle("E1x5 (GeV)");
1429  histSclE1x5_->GetYaxis()->SetTitle("Events");
1430  histSclE1x5_barrel_->GetXaxis()->SetTitle("E1x5 (GeV)");
1431  histSclE1x5_barrel_->GetYaxis()->SetTitle("Events");
1432  histSclE1x5_endcaps_->GetXaxis()->SetTitle("E1x5 (GeV)");
1433  histSclE1x5_endcaps_->GetYaxis()->SetTitle("Events");
1434  histSclE2x5max_->GetXaxis()->SetTitle("E2x5 (GeV)");
1435  histSclE2x5max_->GetYaxis()->SetTitle("Events");
1436  histSclE2x5max_barrel_->GetXaxis()->SetTitle("E2x5 (GeV)");
1437  histSclE2x5max_barrel_->GetYaxis()->SetTitle("Events");
1438  histSclE2x5max_endcaps_->GetXaxis()->SetTitle("E2x5 (GeV)");
1439  histSclE2x5max_endcaps_->GetYaxis()->SetTitle("Events");
1440  histSclE5x5_->GetXaxis()->SetTitle("E5x5 (GeV)");
1441  histSclE5x5_->GetYaxis()->SetTitle("Events");
1442  histSclE5x5_barrel_->GetXaxis()->SetTitle("E5x5 (GeV)");
1443  histSclE5x5_barrel_->GetYaxis()->SetTitle("Events");
1444  histSclE5x5_endcaps_->GetXaxis()->SetTitle("E5x5 (GeV)");
1445  histSclE5x5_endcaps_->GetYaxis()->SetTitle("Events");
1446  h_ele_EtaMnEtamatchingObject->GetXaxis()->SetTitle("#eta_{rec} - #eta_{jet}");
1447  h_ele_EtaMnEtamatchingObject->GetYaxis()->SetTitle("Events");
1448  h_ele_PhiMnPhimatchingObject->GetXaxis()->SetTitle("#phi_{rec} - #phi_{jet} (rad)");
1449  h_ele_PhiMnPhimatchingObject->GetYaxis()->SetTitle("Events");
1450  h_ele_PinMnPout->GetXaxis()->SetTitle("P_{vertex} - P_{out} (GeV/c)");
1451  h_ele_PinMnPout->GetYaxis()->SetTitle("Events");
1452  h_ele_PinMnPout_mode->GetXaxis()->SetTitle("P_{vertex} - P_{out}, mode (GeV/c)");
1453  h_ele_PinMnPout_mode->GetYaxis()->SetTitle("Events");
1454  h_ele_outerP->GetXaxis()->SetTitle("P_{out} (GeV/c)");
1455  h_ele_outerP->GetYaxis()->SetTitle("Events");
1456  h_ele_outerP_mode->GetXaxis()->SetTitle("P_{out} (GeV/c)");
1457  h_ele_outerP_mode->GetYaxis()->SetTitle("Events");
1458  h_ele_outerPt->GetXaxis()->SetTitle("P_{T out} (GeV/c)");
1459  h_ele_outerPt->GetYaxis()->SetTitle("Events");
1460  h_ele_outerPt_mode->GetXaxis()->SetTitle("P_{T out} (GeV/c)");
1461  h_ele_outerPt_mode->GetYaxis()->SetTitle("Events");
1462  h_ele_EoP->GetXaxis()->SetTitle("E/P_{vertex}");
1463  h_ele_EoP->GetYaxis()->SetTitle("Events");
1464  h_ele_EseedOP->GetXaxis()->SetTitle("E_{seed}/P_{vertex}");
1465  h_ele_EseedOP->GetYaxis()->SetTitle("Events");
1466  h_ele_EoPout->GetXaxis()->SetTitle("E_{seed}/P_{out}");
1467  h_ele_EoPout->GetYaxis()->SetTitle("Events");
1468  h_ele_EeleOPout->GetXaxis()->SetTitle("E_{ele}/P_{out}");
1469  h_ele_EeleOPout->GetYaxis()->SetTitle("Events");
1470  h_ele_EoP_barrel->GetXaxis()->SetTitle("E/P_{vertex}");
1471  h_ele_EoP_barrel->GetYaxis()->SetTitle("Events");
1472  h_ele_EseedOP_barrel->GetXaxis()->SetTitle("E_{seed}/P_{vertex}");
1473  h_ele_EseedOP_barrel->GetYaxis()->SetTitle("Events");
1474  h_ele_EoPout_barrel->GetXaxis()->SetTitle("E_{seed}/P_{out}");
1475  h_ele_EoPout_barrel->GetYaxis()->SetTitle("Events");
1476  h_ele_EeleOPout_barrel->GetXaxis()->SetTitle("E_{ele}/P_{out}");
1477  h_ele_EeleOPout_barrel->GetYaxis()->SetTitle("Events");
1478  h_ele_EoP_endcaps->GetXaxis()->SetTitle("E/P_{vertex}");
1479  h_ele_EoP_endcaps->GetYaxis()->SetTitle("Events");
1480  h_ele_EseedOP_endcaps->GetXaxis()->SetTitle("E_{seed}/P_{vertex}");
1481  h_ele_EseedOP_endcaps->GetYaxis()->SetTitle("Events");
1482  h_ele_EoPout_endcaps->GetXaxis()->SetTitle("E_{seed}/P_{out}");
1483  h_ele_EoPout_endcaps->GetYaxis()->SetTitle("Events");
1484  h_ele_EeleOPout_endcaps->GetXaxis()->SetTitle("E_{ele}/P_{out}");
1485  h_ele_EeleOPout_endcaps->GetYaxis()->SetTitle("Events");
1486  h_ele_vertexX->GetXaxis()->SetTitle("x (cm)");
1487  h_ele_vertexX->GetYaxis()->SetTitle("Events");
1488  h_ele_vertexY->GetXaxis()->SetTitle("y (cm)");
1489  h_ele_vertexY->GetYaxis()->SetTitle("Events");
1490  h_ele_vertexZ->GetXaxis()->SetTitle("z (cm)");
1491  h_ele_vertexZ->GetYaxis()->SetTitle("Events");
1492  h_ele_vertexTIP->GetXaxis()->SetTitle("TIP (cm)");
1493  h_ele_vertexTIP->GetYaxis()->SetTitle("Events");
1494  h_ele_TIP_all->GetXaxis()->SetTitle("r_{T} (cm)");
1495  h_ele_TIP_all->GetYaxis()->SetTitle("Events");
1496  h_ele_vertexTIPVsEta->GetYaxis()->SetTitle("TIP (cm)");
1497  h_ele_vertexTIPVsEta->GetXaxis()->SetTitle("#eta");
1498  h_ele_vertexTIPVsPhi->GetYaxis()->SetTitle("TIP (cm)");
1499  h_ele_vertexTIPVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1500  h_ele_vertexTIPVsPt->GetYaxis()->SetTitle("TIP (cm)");
1501  h_ele_vertexTIPVsPt->GetXaxis()->SetTitle("p_{T} (GeV/c)");
1502  h_ele_dEtaSc_propVtx->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1503  h_ele_dEtaSc_propVtx->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1504  h_ele_dEtaSc_propVtx->GetYaxis()->SetTitle("Events");
1505  h_ele_dEtaCl_propOut->GetXaxis()->SetTitle("#eta_{seedcl} - #eta_{tr}");
1506  h_ele_dEtaCl_propOut->GetYaxis()->SetTitle("Events");
1507  h_ele_dEtaEleCl_propOut->GetXaxis()->SetTitle("#eta_{elecl} - #eta_{tr}");
1508  h_ele_dEtaEleCl_propOut->GetYaxis()->SetTitle("Events");
1509  h_ele_dPhiSc_propVtx->GetXaxis()->SetTitle("#phi_{sc} - #phi_{tr} (rad)");
1510  h_ele_dPhiSc_propVtx->GetYaxis()->SetTitle("Events");
1511  h_ele_dPhiCl_propOut->GetXaxis()->SetTitle("#phi_{seedcl} - #phi_{tr} (rad)");
1512  h_ele_dPhiCl_propOut->GetYaxis()->SetTitle("Events");
1513  h_ele_dPhiEleCl_propOut->GetXaxis()->SetTitle("#phi_{elecl} - #phi_{tr} (rad)");
1514  h_ele_dPhiEleCl_propOut->GetYaxis()->SetTitle("Events");
1515  h_ele_dEtaSc_propVtx_barrel->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1516  h_ele_dEtaSc_propVtx_barrel->GetYaxis()->SetTitle("Events");
1517  h_ele_dEtaCl_propOut_barrel->GetXaxis()->SetTitle("#eta_{seedcl} - #eta_{tr}");
1518  h_ele_dEtaCl_propOut_barrel->GetYaxis()->SetTitle("Events");
1519  h_ele_dEtaEleCl_propOut_barrel->GetXaxis()->SetTitle("#eta_{elecl} - #eta_{tr}");
1520  h_ele_dEtaEleCl_propOut_barrel->GetYaxis()->SetTitle("Events");
1521  h_ele_dPhiSc_propVtx_barrel->GetXaxis()->SetTitle("#phi_{sc} - #phi_{tr} (rad)");
1522  h_ele_dPhiSc_propVtx_barrel->GetYaxis()->SetTitle("Events");
1523  h_ele_dPhiCl_propOut_barrel->GetXaxis()->SetTitle("#phi_{seedcl} - #phi_{tr} (rad)");
1524  h_ele_dPhiCl_propOut_barrel->GetYaxis()->SetTitle("Events");
1525  h_ele_dPhiEleCl_propOut_barrel->GetXaxis()->SetTitle("#phi_{elecl} - #phi_{tr} (rad)");
1526  h_ele_dPhiEleCl_propOut_barrel->GetYaxis()->SetTitle("Events");
1527  h_ele_dEtaSc_propVtx_endcaps->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1528  h_ele_dEtaSc_propVtx_endcaps->GetYaxis()->SetTitle("Events");
1529  h_ele_dEtaCl_propOut_endcaps->GetXaxis()->SetTitle("#eta_{seedcl} - #eta_{tr}");
1530  h_ele_dEtaCl_propOut_endcaps->GetYaxis()->SetTitle("Events");
1531  h_ele_dEtaEleCl_propOut_endcaps->GetXaxis()->SetTitle("#eta_{elecl} - #eta_{tr}");
1532  h_ele_dEtaEleCl_propOut_endcaps->GetYaxis()->SetTitle("Events");
1533  h_ele_dPhiSc_propVtx_endcaps->GetXaxis()->SetTitle("#phi_{sc} - #phi_{tr} (rad)");
1534  h_ele_dPhiSc_propVtx_endcaps->GetYaxis()->SetTitle("Events");
1535  h_ele_dPhiCl_propOut_endcaps->GetXaxis()->SetTitle("#phi_{seedcl} - #phi_{tr} (rad)");
1536  h_ele_dPhiCl_propOut_endcaps->GetYaxis()->SetTitle("Events");
1537  h_ele_dPhiEleCl_propOut_endcaps->GetXaxis()->SetTitle("#phi_{elecl} - #phi_{tr} (rad)");
1538  h_ele_dPhiEleCl_propOut_endcaps->GetYaxis()->SetTitle("Events");
1539  h_ele_HoE->GetXaxis()->SetTitle("H/E");
1540  h_ele_HoE->GetYaxis()->SetTitle("Events");
1541  h_ele_HoE_barrel->GetXaxis()->SetTitle("H/E");
1542  h_ele_HoE_barrel->GetYaxis()->SetTitle("Events");
1543  h_ele_HoE_endcaps->GetXaxis()->SetTitle("H/E");
1544  h_ele_HoE_endcaps->GetYaxis()->SetTitle("Events");
1545  h_ele_HoE_fiducial->GetXaxis()->SetTitle("H/E");
1546  h_ele_HoE_fiducial->GetYaxis()->SetTitle("Events");
1547  h_ele_fbrem->GetXaxis()->SetTitle("P_{in} - P_{out} / P_{in}");
1548  h_ele_fbrem->GetYaxis()->SetTitle("Events");
1549  h_ele_seed_dphi2_->GetXaxis()->SetTitle("#phi_{hit}-#phi_{pred} (rad)");
1550  h_ele_seed_dphi2_->GetYaxis()->SetTitle("Events");
1551  h_ele_seed_drz2_->GetXaxis()->SetTitle("r(z)_{hit}-r(z)_{pred} (cm)");
1552  h_ele_seed_drz2_->GetYaxis()->SetTitle("Events");
1553  h_ele_seed_subdet2_->GetXaxis()->SetTitle("2nd hit subdet Id");
1554  h_ele_seed_subdet2_->GetYaxis()->SetTitle("Events");
1555  h_ele_classes->GetXaxis()->SetTitle("class Id");
1556  h_ele_classes->GetYaxis()->SetTitle("Events");
1557  h_ele_EoverP_all->GetXaxis()->SetTitle("E/P_{vertex}");
1558  h_ele_EoverP_all->GetYaxis()->SetTitle("Events");
1559  h_ele_EseedOP_all->GetXaxis()->SetTitle("E_{seed}/P_{vertex}");
1560  h_ele_EseedOP_all->GetYaxis()->SetTitle("Events");
1561  h_ele_EoPout_all->GetXaxis()->SetTitle("E_{seed}/P_{out}");
1562  h_ele_EoPout_all->GetYaxis()->SetTitle("Events");
1563  h_ele_EeleOPout_all->GetXaxis()->SetTitle("E_{ele}/P_{out}");
1564  h_ele_EeleOPout_all->GetYaxis()->SetTitle("Events");
1565  h_ele_dEtaSc_propVtx_all->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1566  h_ele_dEtaSc_propVtx_all->GetYaxis()->SetTitle("Events");
1567  h_ele_dPhiSc_propVtx_all->GetXaxis()->SetTitle("#phi_{sc} - #phi_{tr} (rad)");
1568  h_ele_dPhiSc_propVtx_all->GetYaxis()->SetTitle("Events");
1569  h_ele_dEtaCl_propOut_all->GetXaxis()->SetTitle("#eta_{sc} - #eta_{tr}");
1570  h_ele_dEtaCl_propOut_all->GetYaxis()->SetTitle("Events");
1571  h_ele_dPhiCl_propOut_all->GetXaxis()->SetTitle("#phi_{sc} - #phi_{tr} (rad)");
1572  h_ele_dPhiCl_propOut_all->GetYaxis()->SetTitle("Events");
1573  h_ele_HoE_all->GetXaxis()->SetTitle("H/E");
1574  h_ele_HoE_all->GetYaxis()->SetTitle("Events");
1575  h_ele_mee_all->GetXaxis()->SetTitle("m_{ee} (GeV/c^{2})");
1576  h_ele_mee_all->GetYaxis()->SetTitle("Events");
1577  h_ele_mee_os->GetXaxis()->SetTitle("m_{e^{+}e^{-}} (GeV/c^{2})");
1578  h_ele_mee_os->GetYaxis()->SetTitle("Events");
1579  h_ele_E2mnE1vsMee_all->GetXaxis()->SetTitle("m_{e^{+}e^{-}} (GeV/c^{2})");
1580  h_ele_E2mnE1vsMee_all->GetYaxis()->SetTitle("E2 - E1 (GeV)");
1581  h_ele_E2mnE1vsMee_egeg_all->GetXaxis()->SetTitle("m_{e^{+}e^{-}} (GeV/c^{2})");
1582  h_ele_E2mnE1vsMee_egeg_all->GetYaxis()->SetTitle("E2 - E1 (GeV)");
1583  histNum_->GetXaxis()->SetTitle("N_{ele}");
1584  histNum_->GetYaxis()->SetTitle("Events");
1585  h_ele_fbremVsEta_mode->GetXaxis()->SetTitle("#eta");
1586  h_ele_fbremVsEta_mean->GetXaxis()->SetTitle("#eta");
1587 }
1588 
1590  histfile_->cd();
1591  std::cout << "efficiency calculation " << std::endl;
1592  // efficiency vs eta
1593  TH1F *h_ele_etaEff = (TH1F *)h_ele_matchingObjectEta_matched->Clone("h_ele_etaEff");
1594  h_ele_etaEff->Reset();
1595  h_ele_etaEff->Divide(h_ele_matchingObjectEta_matched, h_matchingObjectEta, 1, 1, "b");
1596  h_ele_etaEff->Print();
1597  h_ele_etaEff->GetXaxis()->SetTitle("#eta");
1598  h_ele_etaEff->GetYaxis()->SetTitle("Efficiency");
1599 
1600  // efficiency vs z
1601  TH1F *h_ele_zEff = (TH1F *)h_ele_matchingObjectZ_matched->Clone("h_ele_zEff");
1602  h_ele_zEff->Reset();
1603  h_ele_zEff->Divide(h_ele_matchingObjectZ_matched, h_matchingObjectZ, 1, 1, "b");
1604  h_ele_zEff->Print();
1605  h_ele_zEff->GetXaxis()->SetTitle("z (cm)");
1606  h_ele_zEff->GetYaxis()->SetTitle("Efficiency");
1607 
1608  // efficiency vs |eta|
1609  TH1F *h_ele_absetaEff = (TH1F *)h_ele_matchingObjectAbsEta_matched->Clone("h_ele_absetaEff");
1610  h_ele_absetaEff->Reset();
1611  h_ele_absetaEff->Divide(h_ele_matchingObjectAbsEta_matched, h_matchingObjectAbsEta, 1, 1, "b");
1612  h_ele_absetaEff->GetXaxis()->SetTitle("|#eta|");
1613  h_ele_absetaEff->GetYaxis()->SetTitle("Efficiency");
1614 
1615  // efficiency vs pt
1616  TH1F *h_ele_ptEff = (TH1F *)h_ele_matchingObjectPt_matched->Clone("h_ele_ptEff");
1617  h_ele_ptEff->Reset();
1618  h_ele_ptEff->Divide(h_ele_matchingObjectPt_matched, h_matchingObjectPt, 1, 1, "b");
1619  h_ele_ptEff->GetXaxis()->SetTitle("p_{T} (GeV/c)");
1620  h_ele_ptEff->GetYaxis()->SetTitle("Efficiency");
1621 
1622  // efficiency vs phi
1623  TH1F *h_ele_phiEff = (TH1F *)h_ele_matchingObjectPhi_matched->Clone("h_ele_phiEff");
1624  h_ele_phiEff->Reset();
1625  h_ele_phiEff->Divide(h_ele_matchingObjectPhi_matched, h_matchingObjectPhi, 1, 1, "b");
1626  h_ele_phiEff->GetXaxis()->SetTitle("#phi (rad)");
1627  h_ele_phiEff->GetYaxis()->SetTitle("Efficiency");
1628 
1629  // rec/matching objects all electrons
1630  TH1F *h_ele_etaEff_all = (TH1F *)h_ele_vertexEta_all->Clone("h_ele_etaEff_all");
1631  h_ele_etaEff_all->Reset();
1632  h_ele_etaEff_all->Divide(h_ele_vertexEta_all, h_matchingObjectEta, 1, 1, "b");
1633  h_ele_etaEff_all->Print();
1634  h_ele_etaEff_all->GetXaxis()->SetTitle("#eta");
1635  h_ele_etaEff_all->GetYaxis()->SetTitle("N_{rec}/N_{matching jet}");
1636  TH1F *h_ele_ptEff_all = (TH1F *)h_ele_vertexPt_all->Clone("h_ele_ptEff_all");
1637  h_ele_ptEff_all->Reset();
1638  h_ele_ptEff_all->Divide(h_ele_vertexPt_all, h_matchingObjectPt, 1, 1, "b");
1639  h_ele_ptEff_all->Print();
1640  h_ele_ptEff_all->GetXaxis()->SetTitle("p_{T} (GeV/c)");
1641  h_ele_ptEff_all->GetYaxis()->SetTitle("N_{rec}/N_{matching jet}");
1642 
1643  // classes
1644  TH1F *h_ele_eta_goldenFrac = (TH1F *)h_ele_eta_golden->Clone("h_ele_eta_goldenFrac");
1645  h_ele_eta_goldenFrac->Reset();
1646  h_ele_eta_goldenFrac->GetXaxis()->SetTitle("|#eta|");
1647  h_ele_eta_goldenFrac->GetYaxis()->SetTitle("Fraction of electrons");
1648  h_ele_eta_goldenFrac->Divide(h_ele_eta_golden, h_ele_eta, 1, 1);
1649  h_ele_eta_goldenFrac->SetTitle("fraction of golden electrons vs eta");
1650  TH1F *h_ele_eta_bbremFrac = (TH1F *)h_ele_eta_bbrem->Clone("h_ele_eta_bbremFrac");
1651  h_ele_eta_bbremFrac->Reset();
1652  h_ele_eta_bbremFrac->Divide(h_ele_eta_bbrem, h_ele_eta, 1, 1);
1653  h_ele_eta_bbremFrac->GetXaxis()->SetTitle("|#eta|");
1654  h_ele_eta_bbremFrac->GetYaxis()->SetTitle("Fraction of electrons");
1655  h_ele_eta_bbremFrac->SetTitle("fraction of big brem electrons vs eta");
1656  TH1F *h_ele_eta_narrowFrac = (TH1F *)h_ele_eta_narrow->Clone("h_ele_eta_narrowFrac");
1657  h_ele_eta_narrowFrac->Reset();
1658  h_ele_eta_narrowFrac->Divide(h_ele_eta_narrow, h_ele_eta, 1, 1);
1659  h_ele_eta_narrowFrac->GetXaxis()->SetTitle("|#eta|");
1660  h_ele_eta_narrowFrac->GetYaxis()->SetTitle("Fraction of electrons");
1661  h_ele_eta_narrowFrac->SetTitle("fraction of narrow electrons vs eta");
1662  TH1F *h_ele_eta_showerFrac = (TH1F *)h_ele_eta_shower->Clone("h_ele_eta_showerFrac");
1663  h_ele_eta_showerFrac->Reset();
1664  h_ele_eta_showerFrac->Divide(h_ele_eta_shower, h_ele_eta, 1, 1);
1665  h_ele_eta_showerFrac->GetXaxis()->SetTitle("|#eta|");
1666  h_ele_eta_showerFrac->GetYaxis()->SetTitle("Fraction of electrons");
1667  h_ele_eta_showerFrac->SetTitle("fraction of showering electrons vs eta");
1668 
1669  // fbrem
1670  TH1F *h_ele_xOverX0VsEta = new TH1F("h_ele_xOverx0VsEta", "mean X/X_0 vs eta", nbineta / 2, 0.0, 2.5);
1671  for (int ibin = 1; ibin < h_ele_fbremVsEta_mean->GetNbinsX() + 1; ibin++) {
1672  double xOverX0 = 0.;
1673  if (h_ele_fbremVsEta_mean->GetBinContent(ibin) > 0.)
1674  xOverX0 = -log(h_ele_fbremVsEta_mean->GetBinContent(ibin));
1675  h_ele_xOverX0VsEta->SetBinContent(ibin, xOverX0);
1676  }
1677 
1678  //profiles from 2D histos
1679  TProfile *p_ele_PoPmatchingObjectVsEta = h_ele_PoPmatchingObjectVsEta->ProfileX();
1680  p_ele_PoPmatchingObjectVsEta->SetTitle("mean ele momentum / matching SC energy vs eta");
1681  p_ele_PoPmatchingObjectVsEta->GetXaxis()->SetTitle("#eta");
1682  p_ele_PoPmatchingObjectVsEta->GetYaxis()->SetTitle("<P/E_{matching jet}>");
1683  p_ele_PoPmatchingObjectVsEta->Write();
1684  TProfile *p_ele_PoPmatchingObjectVsPhi = h_ele_PoPmatchingObjectVsPhi->ProfileX();
1685  p_ele_PoPmatchingObjectVsPhi->SetTitle("mean ele momentum / gen momentum vs phi");
1686  p_ele_PoPmatchingObjectVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1687  p_ele_PoPmatchingObjectVsPhi->GetYaxis()->SetTitle("<P/E_{matching jet}>");
1688  p_ele_PoPmatchingObjectVsPhi->Write();
1689  TProfile *p_ele_EtaMnEtamatchingObjectVsEta = h_ele_EtaMnEtamatchingObjectVsEta->ProfileX();
1690  p_ele_EtaMnEtamatchingObjectVsEta->GetXaxis()->SetTitle("#eta");
1691  p_ele_EtaMnEtamatchingObjectVsEta->GetYaxis()->SetTitle("<#eta_{rec} - #eta_{matching jet}>");
1692  p_ele_EtaMnEtamatchingObjectVsEta->Write();
1693  TProfile *p_ele_EtaMnEtamatchingObjectVsPhi = h_ele_EtaMnEtamatchingObjectVsPhi->ProfileX();
1694  p_ele_EtaMnEtamatchingObjectVsPhi->GetXaxis()->SetTitle("#phi");
1695  p_ele_EtaMnEtamatchingObjectVsPhi->GetYaxis()->SetTitle("<#eta_{rec} - #eta_{matching jet}>");
1696  p_ele_EtaMnEtamatchingObjectVsPhi->Write();
1697  TProfile *p_ele_PhiMnPhimatchingObjectVsEta = h_ele_PhiMnPhimatchingObjectVsEta->ProfileX();
1698  p_ele_PhiMnPhimatchingObjectVsEta->GetXaxis()->SetTitle("#eta");
1699  p_ele_PhiMnPhimatchingObjectVsEta->GetYaxis()->SetTitle("<#phi_{rec} - #phi_{matching jet}> (rad)");
1700  p_ele_PhiMnPhimatchingObjectVsEta->Write();
1701  TProfile *p_ele_PhiMnPhimatchingObjectVsPhi = h_ele_PhiMnPhimatchingObjectVsPhi->ProfileX();
1702  p_ele_PhiMnPhimatchingObjectVsPhi->GetXaxis()->SetTitle("#phi");
1703  p_ele_PhiMnPhimatchingObjectVsPhi->GetYaxis()->SetTitle("<#phi_{rec} - #phi_{matching jet}> (rad)");
1704  p_ele_PhiMnPhimatchingObjectVsPhi->Write();
1705  TProfile *p_ele_vertexPtVsEta = h_ele_vertexPtVsEta->ProfileX();
1706  p_ele_vertexPtVsEta->GetXaxis()->SetTitle("#eta");
1707  p_ele_vertexPtVsEta->GetYaxis()->SetTitle("<p_{T}> (GeV/c)");
1708  p_ele_vertexPtVsEta->Write();
1709  TProfile *p_ele_vertexPtVsPhi = h_ele_vertexPtVsPhi->ProfileX();
1710  p_ele_vertexPtVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1711  p_ele_vertexPtVsPhi->GetYaxis()->SetTitle("<p_{T}> (GeV/c)");
1712  p_ele_vertexPtVsPhi->Write();
1713  TProfile *p_ele_EoPVsEta = h_ele_EoPVsEta->ProfileX();
1714  p_ele_EoPVsEta->GetXaxis()->SetTitle("#eta");
1715  p_ele_EoPVsEta->GetYaxis()->SetTitle("<E/P_{vertex}>");
1716  p_ele_EoPVsEta->Write();
1717  TProfile *p_ele_EoPVsPhi = h_ele_EoPVsPhi->ProfileX();
1718  p_ele_EoPVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1719  p_ele_EoPVsPhi->GetYaxis()->SetTitle("<E/P_{vertex}>");
1720  p_ele_EoPVsPhi->Write();
1721  TProfile *p_ele_EoPoutVsEta = h_ele_EoPoutVsEta->ProfileX();
1722  p_ele_EoPoutVsEta->GetXaxis()->SetTitle("#eta");
1723  p_ele_EoPoutVsEta->GetYaxis()->SetTitle("<E_{seed}/P_{out}>");
1724  p_ele_EoPoutVsEta->Write();
1725  TProfile *p_ele_EoPoutVsPhi = h_ele_EoPoutVsPhi->ProfileX();
1726  p_ele_EoPoutVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1727  p_ele_EoPoutVsPhi->GetYaxis()->SetTitle("<E_{seed}/P_{out}>");
1728  p_ele_EoPoutVsPhi->Write();
1729  TProfile *p_ele_EeleOPoutVsEta = h_ele_EeleOPoutVsEta->ProfileX();
1730  p_ele_EeleOPoutVsEta->SetTitle("mean ele Eele/pout vs eta");
1731  p_ele_EeleOPoutVsEta->GetXaxis()->SetTitle("#eta");
1732  p_ele_EeleOPoutVsEta->GetYaxis()->SetTitle("<E_{ele}/P_{out}>");
1733  p_ele_EeleOPoutVsEta->Write();
1734  TProfile *p_ele_EeleOPoutVsPhi = h_ele_EeleOPoutVsPhi->ProfileX();
1735  p_ele_EeleOPoutVsPhi->SetTitle("mean ele Eele/pout vs phi");
1736  p_ele_EeleOPoutVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1737  p_ele_EeleOPoutVsPhi->GetYaxis()->SetTitle("<E_{ele}/P_{out}>");
1738  p_ele_EeleOPoutVsPhi->Write();
1739  TProfile *p_ele_HoEVsEta = h_ele_HoEVsEta->ProfileX();
1740  p_ele_HoEVsEta->GetXaxis()->SetTitle("#eta");
1741  p_ele_HoEVsEta->GetYaxis()->SetTitle("<H/E>");
1742  p_ele_HoEVsEta->Write();
1743  TProfile *p_ele_HoEVsPhi = h_ele_HoEVsPhi->ProfileX();
1744  p_ele_HoEVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1745  p_ele_HoEVsPhi->GetYaxis()->SetTitle("<H/E>");
1746  p_ele_HoEVsPhi->Write();
1747  TProfile *p_ele_chi2VsEta = h_ele_chi2VsEta->ProfileX();
1748  p_ele_chi2VsEta->GetXaxis()->SetTitle("#eta");
1749  p_ele_chi2VsEta->GetYaxis()->SetTitle("<#Chi^{2}>");
1750  p_ele_chi2VsEta->Write();
1751  TProfile *p_ele_chi2VsPhi = h_ele_chi2VsPhi->ProfileX();
1752  p_ele_chi2VsPhi->GetXaxis()->SetTitle("#phi (rad)");
1753  p_ele_chi2VsPhi->GetYaxis()->SetTitle("<#Chi^{2}>");
1754  p_ele_chi2VsPhi->Write();
1755  TProfile *p_ele_foundHitsVsEta = h_ele_foundHitsVsEta->ProfileX();
1756  p_ele_foundHitsVsEta->GetXaxis()->SetTitle("#eta");
1757  p_ele_foundHitsVsEta->GetYaxis()->SetTitle("<N_{hits}>");
1758  p_ele_foundHitsVsEta->Write();
1759  TProfile *p_ele_foundHitsVsPhi = h_ele_foundHitsVsPhi->ProfileX();
1760  p_ele_foundHitsVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1761  p_ele_foundHitsVsPhi->GetYaxis()->SetTitle("<N_{hits}>");
1762  p_ele_foundHitsVsPhi->Write();
1763  TProfile *p_ele_lostHitsVsEta = h_ele_lostHitsVsEta->ProfileX();
1764  p_ele_lostHitsVsEta->GetXaxis()->SetTitle("#eta");
1765  p_ele_lostHitsVsEta->GetYaxis()->SetTitle("<N_{hits}>");
1766  p_ele_lostHitsVsEta->Write();
1767  TProfile *p_ele_lostHitsVsPhi = h_ele_lostHitsVsPhi->ProfileX();
1768  p_ele_lostHitsVsPhi->GetXaxis()->SetTitle("#phi (rad)");
1769  p_ele_lostHitsVsPhi->GetYaxis()->SetTitle("<N_{hits}>");
1770  p_ele_lostHitsVsPhi->Write();
1771  TProfile *p_ele_vertexTIPVsEta = h_ele_vertexTIPVsEta->ProfileX();
1772  p_ele_vertexTIPVsEta->SetTitle("mean tip (wrt gen vtx) vs eta");
1773  p_ele_vertexTIPVsEta->GetXaxis()->SetTitle("#eta");
1774  p_ele_vertexTIPVsEta->GetYaxis()->SetTitle("<TIP> (cm)");
1775  p_ele_vertexTIPVsEta->Write();
1776  TProfile *p_ele_vertexTIPVsPhi = h_ele_vertexTIPVsPhi->ProfileX();
1777  p_ele_vertexTIPVsPhi->SetTitle("mean tip (wrt gen vtx) vs phi");
1778  p_ele_vertexTIPVsPhi->GetXaxis()->SetTitle("#phi");
1779  p_ele_vertexTIPVsPhi->GetYaxis()->SetTitle("<TIP> (cm)");
1780  p_ele_vertexTIPVsPhi->Write();
1781  TProfile *p_ele_vertexTIPVsPt = h_ele_vertexTIPVsPt->ProfileX();
1782  p_ele_vertexTIPVsPt->SetTitle("mean tip (wrt gen vtx) vs phi");
1783  p_ele_vertexTIPVsPt->GetXaxis()->SetTitle("p_{T} (GeV/c)");
1784  p_ele_vertexTIPVsPt->GetYaxis()->SetTitle("<TIP> (cm)");
1785  p_ele_vertexTIPVsPt->Write();
1786 
1787  // mc truth
1788 
1789  h_matchingObjectNum->Write();
1790 
1791  // rec event
1792 
1793  histNum_->Write();
1794 
1795  // mc
1796  h_matchingObjectEta->Write();
1797  h_matchingObjectAbsEta->Write();
1798  h_matchingObjectP->Write();
1799  h_matchingObjectPt->Write();
1800  h_matchingObjectPhi->Write();
1801  h_matchingObjectZ->Write();
1802 
1803  // all electrons
1804  h_ele_EoverP_all->Write();
1805  h_ele_EseedOP_all->Write();
1806  h_ele_EoPout_all->Write();
1807  h_ele_EeleOPout_all->Write();
1808  h_ele_dEtaSc_propVtx_all->Write();
1809  h_ele_dPhiSc_propVtx_all->Write();
1810  h_ele_dEtaCl_propOut_all->Write();
1811  h_ele_dPhiCl_propOut_all->Write();
1812  h_ele_HoE_all->Write();
1813  h_ele_TIP_all->Write();
1814  h_ele_vertexPt_all->Write();
1815  h_ele_vertexEta_all->Write();
1816  h_ele_mee_all->Write();
1817  h_ele_mee_os->Write();
1818  h_ele_E2mnE1vsMee_all->Write();
1819  h_ele_E2mnE1vsMee_egeg_all->Write();
1820 
1821  // matched electrons
1822  h_ele_charge->Write();
1823  h_ele_chargeVsEta->Write();
1824  h_ele_chargeVsPhi->Write();
1825  h_ele_chargeVsPt->Write();
1826  h_ele_vertexP->Write();
1827  h_ele_vertexPt->Write();
1828  h_ele_vertexPtVsEta->Write();
1829  h_ele_vertexPtVsPhi->Write();
1831  h_ele_vertexEta->Write();
1832  h_ele_vertexEtaVsPhi->Write();
1835  h_ele_vertexPhi->Write();
1837  h_ele_vertexX->Write();
1838  h_ele_vertexY->Write();
1839  h_ele_vertexZ->Write();
1840  h_ele_vertexTIP->Write();
1842  h_ele_vertexTIPVsEta->Write();
1843  h_ele_vertexTIPVsPhi->Write();
1844  h_ele_vertexTIPVsPt->Write();
1845  h_ele_PoPmatchingObject->Write();
1848  h_ele_PoPmatchingObjectVsPt->Write();
1860 
1861  // matched electron, superclusters
1862  histSclEn_->Write();
1865  histSclEt_->Write();
1866  histSclEtVsEta_->Write();
1867  histSclEtVsPhi_->Write();
1868  histSclEtaVsPhi_->Write();
1869  histSclEta_->Write();
1870  histSclPhi_->Write();
1871  histSclSigIEtaIEta_->Write();
1872  histSclSigIEtaIEta_barrel_->Write();
1873  histSclSigIEtaIEta_endcaps_->Write();
1874  histSclE1x5_->Write();
1875  histSclE1x5_barrel_->Write();
1876  histSclE1x5_endcaps_->Write();
1877  histSclE2x5max_->Write();
1878  histSclE2x5max_barrel_->Write();
1879  histSclE2x5max_endcaps_->Write();
1880  histSclE5x5_->Write();
1881  histSclE5x5_barrel_->Write();
1882  histSclE5x5_endcaps_->Write();
1883 
1884  // matched electron, gsf tracks
1885  h_ele_ambiguousTracks->Write();
1886  h_ele_ambiguousTracksVsEta->Write();
1887  h_ele_ambiguousTracksVsPhi->Write();
1888  h_ele_ambiguousTracksVsPt->Write();
1889  h_ele_foundHits->Write();
1890  h_ele_foundHitsVsEta->Write();
1891  h_ele_foundHitsVsPhi->Write();
1892  h_ele_foundHitsVsPt->Write();
1893  h_ele_lostHits->Write();
1894  h_ele_lostHitsVsEta->Write();
1895  h_ele_lostHitsVsPhi->Write();
1896  h_ele_lostHitsVsPt->Write();
1897  h_ele_chi2->Write();
1898  h_ele_chi2VsEta->Write();
1899  h_ele_chi2VsPhi->Write();
1900  h_ele_chi2VsPt->Write();
1901  h_ele_PinMnPout->Write();
1902  h_ele_PinMnPout_mode->Write();
1903  h_ele_PinMnPoutVsEta_mode->Write();
1904  h_ele_PinMnPoutVsPhi_mode->Write();
1905  h_ele_PinMnPoutVsPt_mode->Write();
1906  h_ele_PinMnPoutVsE_mode->Write();
1907  h_ele_PinMnPoutVsChi2_mode->Write();
1908  h_ele_outerP->Write();
1909  h_ele_outerP_mode->Write();
1910  h_ele_outerPVsEta_mode->Write();
1911  h_ele_outerPt->Write();
1912  h_ele_outerPt_mode->Write();
1913  h_ele_outerPtVsEta_mode->Write();
1914  h_ele_outerPtVsPhi_mode->Write();
1915  h_ele_outerPtVsPt_mode->Write();
1916 
1917  // matched electrons, matching
1918  h_ele_EoP->Write();
1919  h_ele_EoP_eg->Write();
1920  h_ele_EoP_barrel->Write();
1921  h_ele_EoP_eg_barrel->Write();
1922  h_ele_EoP_endcaps->Write();
1923  h_ele_EoP_eg_endcaps->Write();
1924  h_ele_EoPVsEta->Write();
1925  h_ele_EoPVsPhi->Write();
1926  h_ele_EoPVsE->Write();
1927  h_ele_EseedOP->Write();
1928  h_ele_EseedOP_eg->Write();
1929  h_ele_EseedOP_barrel->Write();
1930  h_ele_EseedOP_eg_barrel->Write();
1931  h_ele_EseedOP_endcaps->Write();
1932  h_ele_EseedOP_eg_endcaps->Write();
1933  h_ele_EseedOPVsEta->Write();
1934  h_ele_EseedOPVsPhi->Write();
1935  h_ele_EseedOPVsE->Write();
1936  h_ele_EoPout->Write();
1937  h_ele_EoPout_eg->Write();
1938  h_ele_EoPout_barrel->Write();
1939  h_ele_EoPout_eg_barrel->Write();
1940  h_ele_EoPout_endcaps->Write();
1941  h_ele_EoPout_eg_endcaps->Write();
1942  h_ele_EoPoutVsEta->Write();
1943  h_ele_EoPoutVsPhi->Write();
1944  h_ele_EoPoutVsE->Write();
1945  h_ele_EeleOPout->Write();
1946  h_ele_EeleOPout_eg->Write();
1947  h_ele_EeleOPout_barrel->Write();
1948  h_ele_EeleOPout_eg_barrel->Write();
1949  h_ele_EeleOPout_endcaps->Write();
1950  h_ele_EeleOPout_eg_endcaps->Write();
1951  h_ele_EeleOPoutVsEta->Write();
1952  h_ele_EeleOPoutVsPhi->Write();
1953  h_ele_EeleOPoutVsE->Write();
1954  h_ele_dEtaSc_propVtx->Write();
1955  h_ele_dEtaSc_propVtx_eg->Write();
1956  h_ele_dEtaSc_propVtx_barrel->Write();
1960  h_ele_dEtaScVsEta_propVtx->Write();
1961  h_ele_dEtaScVsPhi_propVtx->Write();
1962  h_ele_dEtaScVsPt_propVtx->Write();
1963  h_ele_dPhiSc_propVtx->Write();
1964  h_ele_dPhiSc_propVtx_eg->Write();
1965  h_ele_dPhiSc_propVtx_barrel->Write();
1969  h_ele_dPhiScVsEta_propVtx->Write();
1970  h_ele_dPhiScVsPhi_propVtx->Write();
1971  h_ele_dPhiScVsPt_propVtx->Write();
1972  h_ele_dEtaCl_propOut->Write();
1973  h_ele_dEtaCl_propOut_eg->Write();
1974  h_ele_dEtaCl_propOut_barrel->Write();
1978  h_ele_dEtaClVsEta_propOut->Write();
1979  h_ele_dEtaClVsPhi_propOut->Write();
1980  h_ele_dEtaClVsPt_propOut->Write();
1981  h_ele_dPhiCl_propOut->Write();
1982  h_ele_dPhiCl_propOut_eg->Write();
1983  h_ele_dPhiCl_propOut_barrel->Write();
1987  h_ele_dPhiClVsEta_propOut->Write();
1988  h_ele_dPhiClVsPhi_propOut->Write();
1989  h_ele_dPhiClVsPt_propOut->Write();
1990  h_ele_dEtaEleCl_propOut->Write();
1991  h_ele_dEtaEleCl_propOut_eg->Write();
1998  h_ele_dEtaEleClVsPt_propOut->Write();
1999  h_ele_dPhiEleCl_propOut->Write();
2000  h_ele_dPhiEleCl_propOut_eg->Write();
2007  h_ele_dPhiEleClVsPt_propOut->Write();
2008  h_ele_HoE->Write();
2009  h_ele_HoE_eg->Write();
2010  h_ele_HoE_barrel->Write();
2011  h_ele_HoE_eg_barrel->Write();
2012  h_ele_HoE_endcaps->Write();
2013  h_ele_HoE_eg_endcaps->Write();
2014  h_ele_HoE_fiducial->Write();
2015  h_ele_HoEVsEta->Write();
2016  h_ele_HoEVsPhi->Write();
2017  h_ele_HoEVsE->Write();
2018 
2019  h_ele_seed_dphi2_->Write();
2020  h_ele_seed_subdet2_->Write();
2021  TProfile *p_ele_seed_dphi2VsEta_ = h_ele_seed_dphi2VsEta_->ProfileX();
2022  p_ele_seed_dphi2VsEta_->SetTitle("mean ele seed dphi 2nd layer vs eta");
2023  p_ele_seed_dphi2VsEta_->GetXaxis()->SetTitle("#eta");
2024  p_ele_seed_dphi2VsEta_->GetYaxis()->SetTitle("<#phi_{pred} - #phi_{hit}, 2nd layer> (rad)");
2025  p_ele_seed_dphi2VsEta_->SetMinimum(-0.004);
2026  p_ele_seed_dphi2VsEta_->SetMaximum(0.004);
2027  p_ele_seed_dphi2VsEta_->Write();
2028  TProfile *p_ele_seed_dphi2VsPt_ = h_ele_seed_dphi2VsPt_->ProfileX();
2029  p_ele_seed_dphi2VsPt_->SetTitle("mean ele seed dphi 2nd layer vs pt");
2030  p_ele_seed_dphi2VsPt_->GetXaxis()->SetTitle("p_{T} (GeV/c)");
2031  p_ele_seed_dphi2VsPt_->GetYaxis()->SetTitle("<#phi_{pred} - #phi_{hit}, 2nd layer> (rad)");
2032  p_ele_seed_dphi2VsPt_->SetMinimum(-0.004);
2033  p_ele_seed_dphi2VsPt_->SetMaximum(0.004);
2034  p_ele_seed_dphi2VsPt_->Write();
2035  h_ele_seed_drz2_->Write();
2036  TProfile *p_ele_seed_drz2VsEta_ = h_ele_seed_drz2VsEta_->ProfileX();
2037  p_ele_seed_drz2VsEta_->SetTitle("mean ele seed dr(dz) 2nd layer vs eta");
2038  p_ele_seed_drz2VsEta_->GetXaxis()->SetTitle("#eta");
2039  p_ele_seed_drz2VsEta_->GetYaxis()->SetTitle("<r(z)_{pred} - r(z)_{hit}, 2nd layer> (cm)");
2040  p_ele_seed_drz2VsEta_->SetMinimum(-0.15);
2041  p_ele_seed_drz2VsEta_->SetMaximum(0.15);
2042  p_ele_seed_drz2VsEta_->Write();
2043  TProfile *p_ele_seed_drz2VsPt_ = h_ele_seed_drz2VsPt_->ProfileX();
2044  p_ele_seed_drz2VsPt_->SetTitle("mean ele seed dr(dz) 2nd layer vs pt");
2045  p_ele_seed_drz2VsPt_->GetXaxis()->SetTitle("p_{T} (GeV/c)");
2046  p_ele_seed_drz2VsPt_->GetYaxis()->SetTitle("<r(z)_{pred} - r(z)_{hit}, 2nd layer> (cm)");
2047  p_ele_seed_drz2VsPt_->SetMinimum(-0.15);
2048  p_ele_seed_drz2VsPt_->SetMaximum(0.15);
2049  p_ele_seed_drz2VsPt_->Write();
2050 
2051  // classes
2052  h_ele_classes->Write();
2053  h_ele_eta->Write();
2054  h_ele_eta_golden->Write();
2055  h_ele_eta_bbrem->Write();
2056  h_ele_eta_narrow->Write();
2057  h_ele_eta_shower->Write();
2058  h_ele_PinVsPoutGolden_mode->Write();
2060  h_ele_PinVsPoutGolden_mean->Write();
2070 
2071  // fbrem
2072  h_ele_fbrem->Write();
2073  h_ele_fbremVsEta_mode->Write();
2074  h_ele_fbremVsEta_mean->Write();
2075  h_ele_etaEff->Write();
2076  h_ele_zEff->Write();
2077  h_ele_phiEff->Write();
2078  h_ele_absetaEff->Write();
2079  h_ele_ptEff->Write();
2080  h_ele_etaEff_all->Write();
2081  h_ele_ptEff_all->Write();
2082  h_ele_eta_goldenFrac->Write();
2083  h_ele_eta_bbremFrac->Write();
2084  h_ele_eta_narrowFrac->Write();
2085  h_ele_eta_showerFrac->Write();
2086  h_ele_xOverX0VsEta->Write();
2087 
2088  // e/g et pflow electrons
2089  h_ele_mva->Write();
2090  h_ele_provenance->Write();
2091 
2092  // isolation
2093  h_ele_tkSumPt_dr03->GetXaxis()->SetTitle("TkIsoSum, cone 0.3 (GeV/c)");
2094  h_ele_tkSumPt_dr03->GetYaxis()->SetTitle("Events");
2095  h_ele_tkSumPt_dr03->Write();
2096  h_ele_ecalRecHitSumEt_dr03->GetXaxis()->SetTitle("EcalIsoSum, cone 0.3 (GeV)");
2097  h_ele_ecalRecHitSumEt_dr03->GetYaxis()->SetTitle("Events");
2098  h_ele_ecalRecHitSumEt_dr03->Write();
2099  h_ele_hcalDepth1TowerSumEt_dr03->GetXaxis()->SetTitle("Hcal1IsoSum, cone 0.3 (GeV)");
2100  h_ele_hcalDepth1TowerSumEt_dr03->GetYaxis()->SetTitle("Events");
2102  h_ele_hcalDepth2TowerSumEt_dr03->GetXaxis()->SetTitle("Hcal2IsoSum, cone 0.3 (GeV)");
2103  h_ele_hcalDepth2TowerSumEt_dr03->GetYaxis()->SetTitle("Events");
2105  h_ele_tkSumPt_dr04->GetXaxis()->SetTitle("TkIsoSum, cone 0.4 (GeV/c)");
2106  h_ele_tkSumPt_dr04->GetYaxis()->SetTitle("Events");
2107  h_ele_tkSumPt_dr04->Write();
2108  h_ele_ecalRecHitSumEt_dr04->GetXaxis()->SetTitle("EcalIsoSum, cone 0.4 (GeV)");
2109  h_ele_ecalRecHitSumEt_dr04->GetYaxis()->SetTitle("Events");
2110  h_ele_ecalRecHitSumEt_dr04->Write();
2111  h_ele_hcalDepth1TowerSumEt_dr04->GetXaxis()->SetTitle("Hcal1IsoSum, cone 0.4 (GeV)");
2112  h_ele_hcalDepth1TowerSumEt_dr04->GetYaxis()->SetTitle("Events");
2114  h_ele_hcalDepth2TowerSumEt_dr04->GetXaxis()->SetTitle("Hcal2IsoSum, cone 0.4 (GeV)");
2115  h_ele_hcalDepth2TowerSumEt_dr04->GetYaxis()->SetTitle("Events");
2117 }
2118 
2120  std::cout << "analyzing new event " << std::endl;
2121 
2122  // get reco electrons
2125  edm::LogInfo("") << "\n\n =================> Treating event " << iEvent.id() << " Number of electrons "
2126  << gsfElectrons.product()->size();
2127 
2128  // get reco calojet collection
2130  iEvent.getByLabel(matchingObjectCollection_, recoCaloJets);
2131 
2132  // get the beamspot from the Event:
2133  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
2134  iEvent.getByLabel(beamSpot_, recoBeamSpotHandle);
2135  const BeamSpot bs = *recoBeamSpotHandle;
2136 
2137  histNum_->Fill((*gsfElectrons).size());
2138 
2139  // all rec electrons
2140  for (reco::GsfElectronCollection::const_iterator gsfIter = gsfElectrons->begin(); gsfIter != gsfElectrons->end();
2141  gsfIter++) {
2142  // preselect electrons
2143  if (gsfIter->pt() > maxPt_ || std::abs(gsfIter->eta()) > maxAbsEta_)
2144  continue;
2145  h_ele_EoverP_all->Fill(gsfIter->eSuperClusterOverP());
2146  h_ele_EseedOP_all->Fill(gsfIter->eSeedClusterOverP());
2147  h_ele_EoPout_all->Fill(gsfIter->eSeedClusterOverPout());
2148  h_ele_EeleOPout_all->Fill(gsfIter->eEleClusterOverPout());
2149  h_ele_dEtaSc_propVtx_all->Fill(gsfIter->deltaEtaSuperClusterTrackAtVtx());
2150  h_ele_dPhiSc_propVtx_all->Fill(gsfIter->deltaPhiSuperClusterTrackAtVtx());
2151  h_ele_dEtaCl_propOut_all->Fill(gsfIter->deltaEtaSeedClusterTrackAtCalo());
2152  h_ele_dPhiCl_propOut_all->Fill(gsfIter->deltaPhiSeedClusterTrackAtCalo());
2153  h_ele_HoE_all->Fill(gsfIter->hadronicOverEm());
2154  double d = gsfIter->vertex().x() * gsfIter->vertex().x() + gsfIter->vertex().y() * gsfIter->vertex().y();
2155  h_ele_TIP_all->Fill(sqrt(d));
2156  h_ele_vertexEta_all->Fill(gsfIter->eta());
2157  h_ele_vertexPt_all->Fill(gsfIter->pt());
2158  float enrj1 = gsfIter->superCluster()->energy();
2159  // mee
2160  for (reco::GsfElectronCollection::const_iterator gsfIter2 = gsfIter + 1; gsfIter2 != gsfElectrons->end();
2161  gsfIter2++) {
2162  math::XYZTLorentzVector p12 = (*gsfIter).p4() + (*gsfIter2).p4();
2163  float mee2 = p12.Dot(p12);
2164  h_ele_mee_all->Fill(sqrt(mee2));
2165  float enrj2 = gsfIter2->superCluster()->energy();
2166  h_ele_E2mnE1vsMee_all->Fill(sqrt(mee2), enrj2 - enrj1);
2167  if (gsfIter->ecalDrivenSeed() && gsfIter2->ecalDrivenSeed())
2168  h_ele_E2mnE1vsMee_egeg_all->Fill(sqrt(mee2), enrj2 - enrj1);
2169  if (gsfIter->charge() * gsfIter2->charge() < 0.)
2170  h_ele_mee_os->Fill(sqrt(mee2));
2171  }
2172  }
2173 
2174  // association matching object-reco electrons
2175  int matchingObjectNum = 0;
2176 
2177  for (reco::CaloJetCollection::const_iterator moIter = recoCaloJets->begin(); moIter != recoCaloJets->end();
2178  moIter++) {
2179  // number of matching objects
2180  matchingObjectNum++;
2181 
2182  if (moIter->energy() / cosh(moIter->eta()) > maxPt_ || std::abs(moIter->eta()) > maxAbsEta_)
2183  continue;
2184 
2185  // suppress the endcaps
2186  //if (std::abs(moIter->eta()) > 1.5) continue;
2187  // select central z
2188  //if ( std::abs((*mcIter)->production_vertex()->position().z())>50.) continue;
2189 
2190  h_matchingObjectEta->Fill(moIter->eta());
2191  h_matchingObjectAbsEta->Fill(std::abs(moIter->eta()));
2192  h_matchingObjectP->Fill(moIter->energy());
2193  h_matchingObjectPt->Fill(moIter->energy() / cosh(moIter->eta()));
2194  h_matchingObjectPhi->Fill(moIter->phi());
2195  h_matchingObjectZ->Fill(moIter->vz());
2196 
2197  // looking for the best matching gsf electron
2198  bool okGsfFound = false;
2199  double gsfOkRatio = 999999.;
2200 
2201  // find best matched electron
2202  reco::GsfElectron bestGsfElectron;
2203  for (reco::GsfElectronCollection::const_iterator gsfIter = gsfElectrons->begin(); gsfIter != gsfElectrons->end();
2204  gsfIter++) {
2205  double dphi = gsfIter->phi() - moIter->phi();
2206  if (std::abs(dphi) > CLHEP::pi)
2207  dphi = dphi < 0 ? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi;
2208  double deltaR = sqrt(std::pow((gsfIter->eta() - moIter->eta()), 2) + std::pow(dphi, 2));
2209  if (deltaR < deltaR_) {
2210  //if ( (genPc->pdg_id() == 11) && (gsfIter->charge() < 0.) || (genPc->pdg_id() == -11) &&
2211  //(gsfIter->charge() > 0.) ){
2212  double tmpGsfRatio = gsfIter->p() / moIter->energy();
2213  if (std::abs(tmpGsfRatio - 1) < std::abs(gsfOkRatio - 1)) {
2214  gsfOkRatio = tmpGsfRatio;
2215  bestGsfElectron = *gsfIter;
2216  okGsfFound = true;
2217  }
2218  //}
2219  }
2220  } // loop over rec ele to look for the best one
2221 
2222  // analysis when the matching object is matched by a rec electron
2223  if (okGsfFound) {
2224  // electron related distributions
2225  h_ele_charge->Fill(bestGsfElectron.charge());
2226  h_ele_chargeVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.charge());
2227  h_ele_chargeVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.charge());
2228  h_ele_chargeVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.charge());
2229  h_ele_vertexP->Fill(bestGsfElectron.p());
2230  h_ele_vertexPt->Fill(bestGsfElectron.pt());
2231  h_ele_vertexPtVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.pt());
2232  h_ele_vertexPtVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.pt());
2233  h_ele_vertexEta->Fill(bestGsfElectron.eta());
2234  // generated distributions for matched electrons
2235  h_ele_matchingObjectPt_matched->Fill(moIter->energy() / cosh(moIter->eta()));
2236  h_ele_matchingObjectPhi_matched->Fill(moIter->phi());
2237  h_ele_matchingObjectAbsEta_matched->Fill(std::abs(moIter->eta()));
2238  h_ele_matchingObjectEta_matched->Fill(moIter->eta());
2239  h_ele_vertexEtaVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eta());
2240  h_ele_vertexPhi->Fill(bestGsfElectron.phi());
2241  h_ele_vertexX->Fill(bestGsfElectron.vertex().x());
2242  h_ele_vertexY->Fill(bestGsfElectron.vertex().y());
2243  h_ele_vertexZ->Fill(bestGsfElectron.vertex().z());
2244  h_ele_matchingObjectZ_matched->Fill(moIter->vz());
2245  double d =
2246  (bestGsfElectron.vertex().x() - bs.position().x()) * (bestGsfElectron.vertex().x() - bs.position().x()) +
2247  (bestGsfElectron.vertex().y() - bs.position().y()) * (bestGsfElectron.vertex().y() - bs.position().y());
2248  d = sqrt(d);
2249  h_ele_vertexTIP->Fill(d);
2250  h_ele_vertexTIPVsEta->Fill(bestGsfElectron.eta(), d);
2251  h_ele_vertexTIPVsPhi->Fill(bestGsfElectron.phi(), d);
2252  h_ele_vertexTIPVsPt->Fill(bestGsfElectron.pt(), d);
2253  h_ele_EtaMnEtamatchingObject->Fill(bestGsfElectron.eta() - moIter->eta());
2254  h_ele_EtaMnEtamatchingObjectVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.eta() - moIter->eta());
2255  h_ele_EtaMnEtamatchingObjectVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eta() - moIter->eta());
2256  h_ele_EtaMnEtamatchingObjectVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.eta() - moIter->eta());
2257  h_ele_PhiMnPhimatchingObject->Fill(bestGsfElectron.phi() - moIter->phi());
2258  h_ele_PhiMnPhimatchingObject2->Fill(bestGsfElectron.phi() - moIter->phi());
2259  h_ele_PhiMnPhimatchingObjectVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.phi() - moIter->phi());
2260  h_ele_PhiMnPhimatchingObjectVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.phi() - moIter->phi());
2261  h_ele_PhiMnPhimatchingObjectVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.phi() - moIter->phi());
2262  h_ele_PoPmatchingObject->Fill(bestGsfElectron.p() / moIter->energy());
2263  h_ele_PoPmatchingObjectVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.p() / moIter->energy());
2264  h_ele_PoPmatchingObjectVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.p() / moIter->energy());
2265  h_ele_PoPmatchingObjectVsPt->Fill(bestGsfElectron.py(), bestGsfElectron.p() / moIter->energy());
2266  if (bestGsfElectron.isEB())
2267  h_ele_PoPmatchingObject_barrel->Fill(bestGsfElectron.p() / moIter->energy());
2268  if (bestGsfElectron.isEE())
2269  h_ele_PoPmatchingObject_endcaps->Fill(bestGsfElectron.p() / moIter->energy());
2270 
2271  // supercluster related distributions
2272  reco::SuperClusterRef sclRef = bestGsfElectron.superCluster();
2273  if (!bestGsfElectron.ecalDrivenSeed() && bestGsfElectron.trackerDrivenSeed())
2274  sclRef = bestGsfElectron.parentSuperCluster();
2275  histSclEn_->Fill(sclRef->energy());
2276  double R = TMath::Sqrt(sclRef->x() * sclRef->x() + sclRef->y() * sclRef->y() + sclRef->z() * sclRef->z());
2277  double Rt = TMath::Sqrt(sclRef->x() * sclRef->x() + sclRef->y() * sclRef->y());
2278  histSclEt_->Fill(sclRef->energy() * (Rt / R));
2279  histSclEtVsEta_->Fill(sclRef->eta(), sclRef->energy() * (Rt / R));
2280  histSclEtVsPhi_->Fill(sclRef->phi(), sclRef->energy() * (Rt / R));
2281  if (bestGsfElectron.isEB())
2282  histSclEoEmatchingObject_barrel->Fill(sclRef->energy() / moIter->energy());
2283  if (bestGsfElectron.isEE())
2284  histSclEoEmatchingObject_endcaps->Fill(sclRef->energy() / moIter->energy());
2285  histSclEta_->Fill(sclRef->eta());
2286  histSclEtaVsPhi_->Fill(sclRef->phi(), sclRef->eta());
2287  histSclPhi_->Fill(sclRef->phi());
2288  histSclSigIEtaIEta_->Fill(bestGsfElectron.scSigmaIEtaIEta());
2289  if (bestGsfElectron.isEB())
2290  histSclSigIEtaIEta_barrel_->Fill(bestGsfElectron.scSigmaIEtaIEta());
2291  if (bestGsfElectron.isEE())
2292  histSclSigIEtaIEta_endcaps_->Fill(bestGsfElectron.scSigmaIEtaIEta());
2293  histSclE1x5_->Fill(bestGsfElectron.scE1x5());
2294  if (bestGsfElectron.isEB())
2295  histSclE1x5_barrel_->Fill(bestGsfElectron.scE1x5());
2296  if (bestGsfElectron.isEE())
2297  histSclE1x5_endcaps_->Fill(bestGsfElectron.scE1x5());
2298  histSclE2x5max_->Fill(bestGsfElectron.scE2x5Max());
2299  if (bestGsfElectron.isEB())
2300  histSclE2x5max_barrel_->Fill(bestGsfElectron.scE2x5Max());
2301  if (bestGsfElectron.isEE())
2302  histSclE2x5max_endcaps_->Fill(bestGsfElectron.scE2x5Max());
2303  histSclE5x5_->Fill(bestGsfElectron.scE5x5());
2304  if (bestGsfElectron.isEB())
2305  histSclE5x5_barrel_->Fill(bestGsfElectron.scE5x5());
2306  if (bestGsfElectron.isEE())
2307  histSclE5x5_endcaps_->Fill(bestGsfElectron.scE5x5());
2308 
2309  // track related distributions
2310  h_ele_ambiguousTracks->Fill(bestGsfElectron.ambiguousGsfTracksSize());
2311  h_ele_ambiguousTracksVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.ambiguousGsfTracksSize());
2312  h_ele_ambiguousTracksVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.ambiguousGsfTracksSize());
2313  h_ele_ambiguousTracksVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.ambiguousGsfTracksSize());
2314  if (!readAOD_) { // track extra does not exist in AOD
2315  h_ele_foundHits->Fill(bestGsfElectron.gsfTrack()->numberOfValidHits());
2316  h_ele_foundHitsVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.gsfTrack()->numberOfValidHits());
2317  h_ele_foundHitsVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.gsfTrack()->numberOfValidHits());
2318  h_ele_foundHitsVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.gsfTrack()->numberOfValidHits());
2319  h_ele_lostHits->Fill(bestGsfElectron.gsfTrack()->numberOfLostHits());
2320  h_ele_lostHitsVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.gsfTrack()->numberOfLostHits());
2321  h_ele_lostHitsVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.gsfTrack()->numberOfLostHits());
2322  h_ele_lostHitsVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.gsfTrack()->numberOfLostHits());
2323  h_ele_chi2->Fill(bestGsfElectron.gsfTrack()->normalizedChi2());
2324  h_ele_chi2VsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.gsfTrack()->normalizedChi2());
2325  h_ele_chi2VsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.gsfTrack()->normalizedChi2());
2326  h_ele_chi2VsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.gsfTrack()->normalizedChi2());
2327  }
2328  // from gsf track interface, hence using mean
2329  if (!readAOD_) { // track extra does not exist in AOD
2330  h_ele_PinMnPout->Fill(bestGsfElectron.gsfTrack()->innerMomentum().R() -
2331  bestGsfElectron.gsfTrack()->outerMomentum().R());
2332  h_ele_outerP->Fill(bestGsfElectron.gsfTrack()->outerMomentum().R());
2333  h_ele_outerPt->Fill(bestGsfElectron.gsfTrack()->outerMomentum().Rho());
2334  }
2335  // from electron interface, hence using mode
2336  h_ele_PinMnPout_mode->Fill(bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2338  bestGsfElectron.eta(), bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2340  bestGsfElectron.phi(), bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2341  h_ele_PinMnPoutVsPt_mode->Fill(bestGsfElectron.pt(),
2342  bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2343  h_ele_PinMnPoutVsE_mode->Fill(bestGsfElectron.caloEnergy(),
2344  bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2345  if (!readAOD_) // track extra does not exist in AOD
2347  bestGsfElectron.gsfTrack()->normalizedChi2(),
2348  bestGsfElectron.trackMomentumAtVtx().R() - bestGsfElectron.trackMomentumOut().R());
2349  h_ele_outerP_mode->Fill(bestGsfElectron.trackMomentumOut().R());
2350  h_ele_outerPVsEta_mode->Fill(bestGsfElectron.eta(), bestGsfElectron.trackMomentumOut().R());
2351  h_ele_outerPt_mode->Fill(bestGsfElectron.trackMomentumOut().Rho());
2352  h_ele_outerPtVsEta_mode->Fill(bestGsfElectron.eta(), bestGsfElectron.trackMomentumOut().Rho());
2353  h_ele_outerPtVsPhi_mode->Fill(bestGsfElectron.phi(), bestGsfElectron.trackMomentumOut().Rho());
2354  h_ele_outerPtVsPt_mode->Fill(bestGsfElectron.pt(), bestGsfElectron.trackMomentumOut().Rho());
2355 
2356  if (!readAOD_) { // track extra does not exist in AOD
2357  edm::RefToBase<TrajectorySeed> seed = bestGsfElectron.gsfTrack()->extra()->seedRef();
2358  ElectronSeedRef elseed = seed.castTo<ElectronSeedRef>();
2359  h_ele_seed_dphi2_->Fill(elseed->dPhiNeg(1));
2360  h_ele_seed_dphi2VsEta_->Fill(bestGsfElectron.eta(), elseed->dPhiNeg(1));
2361  h_ele_seed_dphi2VsPt_->Fill(bestGsfElectron.pt(), elseed->dPhiNeg(1));
2362  h_ele_seed_drz2_->Fill(elseed->dRZNeg(1));
2363  h_ele_seed_drz2VsEta_->Fill(bestGsfElectron.eta(), elseed->dRZNeg(1));
2364  h_ele_seed_drz2VsPt_->Fill(bestGsfElectron.pt(), elseed->dRZNeg(1));
2365  h_ele_seed_subdet2_->Fill(elseed->subDet(1));
2366  }
2367  // match distributions
2368  h_ele_EoP->Fill(bestGsfElectron.eSuperClusterOverP());
2369  if (bestGsfElectron.ecalDrivenSeed())
2370  h_ele_EoP_eg->Fill(bestGsfElectron.eSuperClusterOverP());
2371  if (bestGsfElectron.isEB())
2372  h_ele_EoP_barrel->Fill(bestGsfElectron.eSuperClusterOverP());
2373  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2374  h_ele_EoP_eg_barrel->Fill(bestGsfElectron.eSuperClusterOverP());
2375  if (bestGsfElectron.isEE())
2376  h_ele_EoP_endcaps->Fill(bestGsfElectron.eSuperClusterOverP());
2377  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2378  h_ele_EoP_eg_endcaps->Fill(bestGsfElectron.eSuperClusterOverP());
2379  h_ele_EoPVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.eSuperClusterOverP());
2380  h_ele_EoPVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eSuperClusterOverP());
2381  h_ele_EoPVsE->Fill(bestGsfElectron.caloEnergy(), bestGsfElectron.eSuperClusterOverP());
2382  h_ele_EseedOP->Fill(bestGsfElectron.eSeedClusterOverP());
2383  if (bestGsfElectron.ecalDrivenSeed())
2384  h_ele_EseedOP_eg->Fill(bestGsfElectron.eSeedClusterOverP());
2385  if (bestGsfElectron.isEB())
2386  h_ele_EseedOP_barrel->Fill(bestGsfElectron.eSeedClusterOverP());
2387  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2388  h_ele_EseedOP_eg_barrel->Fill(bestGsfElectron.eSeedClusterOverP());
2389  if (bestGsfElectron.isEE())
2390  h_ele_EseedOP_endcaps->Fill(bestGsfElectron.eSeedClusterOverP());
2391  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2392  h_ele_EseedOP_eg_endcaps->Fill(bestGsfElectron.eSeedClusterOverP());
2393  h_ele_EseedOPVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.eSeedClusterOverP());
2394  h_ele_EseedOPVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eSeedClusterOverP());
2395  h_ele_EseedOPVsE->Fill(bestGsfElectron.caloEnergy(), bestGsfElectron.eSeedClusterOverP());
2396  h_ele_EoPout->Fill(bestGsfElectron.eSeedClusterOverPout());
2397  if (bestGsfElectron.ecalDrivenSeed())
2398  h_ele_EoPout_eg->Fill(bestGsfElectron.eSeedClusterOverPout());
2399  if (bestGsfElectron.isEB())
2400  h_ele_EoPout_barrel->Fill(bestGsfElectron.eSeedClusterOverPout());
2401  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2402  h_ele_EoPout_eg_barrel->Fill(bestGsfElectron.eSeedClusterOverPout());
2403  if (bestGsfElectron.isEE())
2404  h_ele_EoPout_endcaps->Fill(bestGsfElectron.eSeedClusterOverPout());
2405  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2406  h_ele_EoPout_eg_endcaps->Fill(bestGsfElectron.eSeedClusterOverPout());
2407  h_ele_EoPoutVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.eSeedClusterOverPout());
2408  h_ele_EoPoutVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eSeedClusterOverPout());
2409  h_ele_EoPoutVsE->Fill(bestGsfElectron.caloEnergy(), bestGsfElectron.eSeedClusterOverPout());
2410  h_ele_EeleOPout->Fill(bestGsfElectron.eEleClusterOverPout());
2411  if (bestGsfElectron.ecalDrivenSeed())
2412  h_ele_EeleOPout_eg->Fill(bestGsfElectron.eEleClusterOverPout());
2413  if (bestGsfElectron.isEB())
2414  h_ele_EeleOPout_barrel->Fill(bestGsfElectron.eEleClusterOverPout());
2415  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2416  h_ele_EeleOPout_eg_barrel->Fill(bestGsfElectron.eEleClusterOverPout());
2417  if (bestGsfElectron.isEE())
2418  h_ele_EeleOPout_endcaps->Fill(bestGsfElectron.eEleClusterOverPout());
2419  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2420  h_ele_EeleOPout_eg_endcaps->Fill(bestGsfElectron.eEleClusterOverPout());
2421  h_ele_EeleOPoutVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.eEleClusterOverPout());
2422  h_ele_EeleOPoutVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.eEleClusterOverPout());
2423  h_ele_EeleOPoutVsE->Fill(bestGsfElectron.caloEnergy(), bestGsfElectron.eEleClusterOverPout());
2424  h_ele_dEtaSc_propVtx->Fill(bestGsfElectron.deltaEtaSuperClusterTrackAtVtx());
2425  if (bestGsfElectron.ecalDrivenSeed())
2427  if (bestGsfElectron.isEB())
2429  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2431  if (bestGsfElectron.isEE())
2433  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2435  h_ele_dEtaScVsEta_propVtx->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaEtaSuperClusterTrackAtVtx());
2436  h_ele_dEtaScVsPhi_propVtx->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaEtaSuperClusterTrackAtVtx());
2437  h_ele_dEtaScVsPt_propVtx->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaEtaSuperClusterTrackAtVtx());
2438  h_ele_dPhiSc_propVtx->Fill(bestGsfElectron.deltaPhiSuperClusterTrackAtVtx());
2439  if (bestGsfElectron.ecalDrivenSeed())
2441  if (bestGsfElectron.isEB())
2443  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2445  if (bestGsfElectron.isEE())
2447  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2449  h_ele_dPhiScVsEta_propVtx->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaPhiSuperClusterTrackAtVtx());
2450  h_ele_dPhiScVsPhi_propVtx->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaPhiSuperClusterTrackAtVtx());
2451  h_ele_dPhiScVsPt_propVtx->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaPhiSuperClusterTrackAtVtx());
2452  h_ele_dEtaCl_propOut->Fill(bestGsfElectron.deltaEtaSeedClusterTrackAtCalo());
2453  if (bestGsfElectron.ecalDrivenSeed())
2455  if (bestGsfElectron.isEB())
2457  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2459  if (bestGsfElectron.isEE())
2461  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2463  h_ele_dEtaClVsEta_propOut->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaEtaSeedClusterTrackAtCalo());
2464  h_ele_dEtaClVsPhi_propOut->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaEtaSeedClusterTrackAtCalo());
2465  h_ele_dEtaClVsPt_propOut->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaEtaSeedClusterTrackAtCalo());
2466  h_ele_dPhiCl_propOut->Fill(bestGsfElectron.deltaPhiSeedClusterTrackAtCalo());
2467  if (bestGsfElectron.ecalDrivenSeed())
2469  if (bestGsfElectron.isEB())
2471  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2473  if (bestGsfElectron.isEE())
2475  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2477  h_ele_dPhiClVsEta_propOut->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaPhiSeedClusterTrackAtCalo());
2478  h_ele_dPhiClVsPhi_propOut->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaPhiSeedClusterTrackAtCalo());
2479  h_ele_dPhiClVsPt_propOut->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaPhiSeedClusterTrackAtCalo());
2480  h_ele_dEtaEleCl_propOut->Fill(bestGsfElectron.deltaEtaEleClusterTrackAtCalo());
2481  if (bestGsfElectron.ecalDrivenSeed())
2483  if (bestGsfElectron.isEB())
2485  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2487  if (bestGsfElectron.isEE())
2489  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2491  h_ele_dEtaEleClVsEta_propOut->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaEtaEleClusterTrackAtCalo());
2492  h_ele_dEtaEleClVsPhi_propOut->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaEtaEleClusterTrackAtCalo());
2493  h_ele_dEtaEleClVsPt_propOut->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaEtaEleClusterTrackAtCalo());
2494  h_ele_dPhiEleCl_propOut->Fill(bestGsfElectron.deltaPhiEleClusterTrackAtCalo());
2495  if (bestGsfElectron.ecalDrivenSeed())
2497  if (bestGsfElectron.isEB())
2499  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2501  if (bestGsfElectron.isEE())
2503  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2505  h_ele_dPhiEleClVsEta_propOut->Fill(bestGsfElectron.eta(), bestGsfElectron.deltaPhiEleClusterTrackAtCalo());
2506  h_ele_dPhiEleClVsPhi_propOut->Fill(bestGsfElectron.phi(), bestGsfElectron.deltaPhiEleClusterTrackAtCalo());
2507  h_ele_dPhiEleClVsPt_propOut->Fill(bestGsfElectron.pt(), bestGsfElectron.deltaPhiEleClusterTrackAtCalo());
2508  h_ele_HoE->Fill(bestGsfElectron.hadronicOverEm());
2509  if (bestGsfElectron.ecalDrivenSeed())
2510  h_ele_HoE_eg->Fill(bestGsfElectron.hadronicOverEm());
2511  if (bestGsfElectron.isEB())
2512  h_ele_HoE_barrel->Fill(bestGsfElectron.hadronicOverEm());
2513  if (bestGsfElectron.isEB() && bestGsfElectron.ecalDrivenSeed())
2514  h_ele_HoE_eg_barrel->Fill(bestGsfElectron.hadronicOverEm());
2515  if (bestGsfElectron.isEE())
2516  h_ele_HoE_endcaps->Fill(bestGsfElectron.hadronicOverEm());
2517  if (bestGsfElectron.isEE() && bestGsfElectron.ecalDrivenSeed())
2518  h_ele_HoE_eg_endcaps->Fill(bestGsfElectron.hadronicOverEm());
2519  if (!bestGsfElectron.isEBEtaGap() && !bestGsfElectron.isEBPhiGap() && !bestGsfElectron.isEBEEGap() &&
2520  !bestGsfElectron.isEERingGap() && !bestGsfElectron.isEEDeeGap())
2521  h_ele_HoE_fiducial->Fill(bestGsfElectron.hadronicOverEm());
2522  h_ele_HoEVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.hadronicOverEm());
2523  h_ele_HoEVsPhi->Fill(bestGsfElectron.phi(), bestGsfElectron.hadronicOverEm());
2524  h_ele_HoEVsE->Fill(bestGsfElectron.caloEnergy(), bestGsfElectron.hadronicOverEm());
2525 
2526  //classes
2527  int eleClass = bestGsfElectron.classification();
2528  if (bestGsfElectron.isEE())
2529  eleClass += 10;
2530  h_ele_classes->Fill(eleClass);
2531 
2532  h_ele_eta->Fill(std::abs(bestGsfElectron.eta()));
2533  if (bestGsfElectron.classification() == GsfElectron::GOLDEN)
2534  h_ele_eta_golden->Fill(std::abs(bestGsfElectron.eta()));
2535  if (bestGsfElectron.classification() == GsfElectron::BIGBREM)
2536  h_ele_eta_bbrem->Fill(std::abs(bestGsfElectron.eta()));
2537  //if (bestGsfElectron.classification() == GsfElectron::OLDNARROW) h_ele_eta_narrow ->Fill(std::abs(bestGsfElectron.eta()));
2538  if (bestGsfElectron.classification() == GsfElectron::SHOWERING)
2539  h_ele_eta_shower->Fill(std::abs(bestGsfElectron.eta()));
2540 
2541  //fbrem
2542  double fbrem_mean = 0.;
2543  if (!readAOD_) // track extra does not exist in AOD
2544  fbrem_mean =
2545  1. - bestGsfElectron.gsfTrack()->outerMomentum().R() / bestGsfElectron.gsfTrack()->innerMomentum().R();
2546  double fbrem_mode = bestGsfElectron.fbrem();
2547  h_ele_fbrem->Fill(fbrem_mode);
2548  h_ele_fbremVsEta_mode->Fill(bestGsfElectron.eta(), fbrem_mode);
2549  if (!readAOD_) // track extra does not exist in AOD
2550  h_ele_fbremVsEta_mean->Fill(bestGsfElectron.eta(), fbrem_mean);
2551 
2552  if (bestGsfElectron.classification() == GsfElectron::GOLDEN)
2553  h_ele_PinVsPoutGolden_mode->Fill(bestGsfElectron.trackMomentumOut().R(),
2554  bestGsfElectron.trackMomentumAtVtx().R());
2555  if (bestGsfElectron.classification() == GsfElectron::SHOWERING)
2556  h_ele_PinVsPoutShowering_mode->Fill(bestGsfElectron.trackMomentumOut().R(),
2557  bestGsfElectron.trackMomentumAtVtx().R());
2558  if (!readAOD_) // track extra does not exist in AOD
2559  if (bestGsfElectron.classification() == GsfElectron::GOLDEN)
2560  h_ele_PinVsPoutGolden_mean->Fill(bestGsfElectron.gsfTrack()->outerMomentum().R(),
2561  bestGsfElectron.gsfTrack()->innerMomentum().R());
2562  if (!readAOD_) // track extra does not exist in AOD
2563  if (bestGsfElectron.classification() == GsfElectron::SHOWERING)
2564  h_ele_PinVsPoutShowering_mean->Fill(bestGsfElectron.gsfTrack()->outerMomentum().R(),
2565  bestGsfElectron.gsfTrack()->innerMomentum().R());
2566  if (bestGsfElectron.classification() == GsfElectron::GOLDEN)
2567  h_ele_PtinVsPtoutGolden_mode->Fill(bestGsfElectron.trackMomentumOut().Rho(),
2568  bestGsfElectron.trackMomentumAtVtx().Rho());
2569  if (bestGsfElectron.classification() == GsfElectron::SHOWERING)
2570  h_ele_PtinVsPtoutShowering_mode->Fill(bestGsfElectron.trackMomentumOut().Rho(),
2571  bestGsfElectron.trackMomentumAtVtx().Rho());
2572  if (!readAOD_) // track extra does not exist in AOD
2573  if (bestGsfElectron.classification() == GsfElectron::GOLDEN)
2574  h_ele_PtinVsPtoutGolden_mean->Fill(bestGsfElectron.gsfTrack()->outerMomentum().Rho(),
2575  bestGsfElectron.gsfTrack()->innerMomentum().Rho());
2576  if (!readAOD_) // track extra does not exist in AOD
2577  if (bestGsfElectron.classification() == GsfElectron::SHOWERING)
2578  h_ele_PtinVsPtoutShowering_mean->Fill(bestGsfElectron.gsfTrack()->outerMomentum().Rho(),
2579  bestGsfElectron.gsfTrack()->innerMomentum().Rho());
2580 
2581  h_ele_mva->Fill(bestGsfElectron.mva_e_pi());
2582  if (bestGsfElectron.ecalDrivenSeed())
2583  h_ele_provenance->Fill(1.);
2584  if (bestGsfElectron.trackerDrivenSeed())
2585  h_ele_provenance->Fill(-1.);
2586  if (bestGsfElectron.trackerDrivenSeed() || bestGsfElectron.ecalDrivenSeed())
2587  h_ele_provenance->Fill(0.);
2588  if (bestGsfElectron.trackerDrivenSeed() && !bestGsfElectron.ecalDrivenSeed())
2589  h_ele_provenance->Fill(-2.);
2590  if (!bestGsfElectron.trackerDrivenSeed() && bestGsfElectron.ecalDrivenSeed())
2591  h_ele_provenance->Fill(2.);
2592 
2593  h_ele_tkSumPt_dr03->Fill(bestGsfElectron.dr03TkSumPt());
2594  h_ele_ecalRecHitSumEt_dr03->Fill(bestGsfElectron.dr03EcalRecHitSumEt());
2597  h_ele_tkSumPt_dr04->Fill(bestGsfElectron.dr04TkSumPt());
2598  h_ele_ecalRecHitSumEt_dr04->Fill(bestGsfElectron.dr04EcalRecHitSumEt());
2601 
2602  } // gsf electron found
2603 
2604  // } // matching object found
2605 
2606  // }
2607 
2608  } // loop overmatching object
2609 
2610  h_matchingObjectNum->Fill(matchingObjectNum);
2611 }
reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo
float deltaEtaSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:233
GsfElectronFakeAnalyzer::histSclE1x5_endcaps_
TH1F * histSclE1x5_endcaps_
Definition: GsfElectronFakeAnalyzer.cc:165
GsfElectronFakeAnalyzer::mcQ
float mcQ[10]
Definition: GsfElectronFakeAnalyzer.cc:68
GsfElectronFakeAnalyzer::h_ele_dEtaClVsPhi_propOut
TH2F * h_ele_dEtaClVsPhi_propOut
Definition: GsfElectronFakeAnalyzer.cc:289
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut
TH1F * h_ele_dPhiEleCl_propOut
Definition: GsfElectronFakeAnalyzer.cc:309
GsfElectronFakeAnalyzer::h_ele_HoEVsPhi
TH2F * h_ele_HoEVsPhi
Definition: GsfElectronFakeAnalyzer.cc:342
GsfElectronFakeAnalyzer::h_ele_HoEVsEta
TH2F * h_ele_HoEVsEta
Definition: GsfElectronFakeAnalyzer.cc:341
GsfElectronFakeAnalyzer::h_ele_HoE_all_barrel
TH1F * h_ele_HoE_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:115
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_eg
TH1F * h_ele_dEtaCl_propOut_eg
Definition: GsfElectronFakeAnalyzer.cc:285
GsfElectronFakeAnalyzer::h_ele_EoPVsE
TH2F * h_ele_EoPVsE
Definition: GsfElectronFakeAnalyzer.cc:235
GsfElectronFakeAnalyzer::h_ele_PinMnPoutVsChi2_mode
TH2F * h_ele_PinMnPoutVsChi2_mode
Definition: GsfElectronFakeAnalyzer.cc:217
GsfElectronFakeAnalyzer::h_ele_outerPt_mode
TH1F * h_ele_outerPt_mode
Definition: GsfElectronFakeAnalyzer.cc:223
GsfElectronFakeAnalyzer::h_ele_ambiguousTracksVsPt
TH2F * h_ele_ambiguousTracksVsPt
Definition: GsfElectronFakeAnalyzer.cc:176
reco::GsfElectron::isEE
bool isEE() const
Definition: GsfElectron.h:336
reco::GsfElectron::dr04EcalRecHitSumEt
float dr04EcalRecHitSumEt() const
Definition: GsfElectron.h:542
GsfElectronFakeAnalyzer::nbinxyz
int nbinxyz
Definition: GsfElectronFakeAnalyzer.cc:421
CaloJetCollection.h
GsfElectronFakeAnalyzer::h_ele_matchingObjectAbsEta_matched
TH1F * h_ele_matchingObjectAbsEta_matched
Definition: GsfElectronFakeAnalyzer.cc:82
GsfElectronFakeAnalyzer::h_ele_seed_drz2_
TH1F * h_ele_seed_drz2_
Definition: GsfElectronFakeAnalyzer.cc:322
GsfElectronFakeAnalyzer::h_ele_vertexY
TH1F * h_ele_vertexY
Definition: GsfElectronFakeAnalyzer.cc:139
Handle.h
CaloJet.h
GsfElectronFakeAnalyzer::h_ele_E2mnE1vsMee_all
TH2F * h_ele_E2mnE1vsMee_all
Definition: GsfElectronFakeAnalyzer.cc:122
GsfElectronFakeAnalyzer::h_ele_vertexTIP
TH1F * h_ele_vertexTIP
Definition: GsfElectronFakeAnalyzer.cc:141
GsfElectronFakeAnalyzer::nbinhoe
int nbinhoe
Definition: GsfElectronFakeAnalyzer.cc:429
GsfElectronFakeAnalyzer::h_matchingObjectAbsEta
TH1F * h_matchingObjectAbsEta
Definition: GsfElectronFakeAnalyzer.cc:75
EDAnalyzer.h
GsfElectronFakeAnalyzer::h_ele_EseedOP_eg_barrel
TH1F * h_ele_EseedOP_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:240
reco::GsfElectron::dr03TkSumPt
float dr03TkSumPt() const
Definition: GsfElectron.h:528
GsfElectronFakeAnalyzer::h_ele_vertexTIPVsEta
TH2F * h_ele_vertexTIPVsEta
Definition: GsfElectronFakeAnalyzer.cc:142
reco::GsfElectron::isEB
bool isEB() const
Definition: GsfElectron.h:335
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_endcaps
TH1F * h_ele_dPhiSc_propVtx_endcaps
Definition: GsfElectronFakeAnalyzer.cc:275
GsfElectronFakeAnalyzer::h_ele_dPhiEleClVsEta_propOut
TH2F * h_ele_dPhiEleClVsEta_propOut
Definition: GsfElectronFakeAnalyzer.cc:315
reco::GsfElectron::scE1x5
float scE1x5() const
Definition: GsfElectron.h:472
GsfElectronFakeAnalyzer::histSclE1x5_barrel_
TH1F * histSclE1x5_barrel_
Definition: GsfElectronFakeAnalyzer.cc:164
GsfElectronFakeAnalyzer::h_ele_PinMnPoutVsPt_mode
TH2F * h_ele_PinMnPoutVsPt_mode
Definition: GsfElectronFakeAnalyzer.cc:215
reco::GsfElectron::gsfTrack
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:163
MessageLogger.h
GsfElectronFakeAnalyzer::h_ele_EoverP_all
TH1F * h_ele_EoverP_all
Definition: GsfElectronFakeAnalyzer.cc:87
reco::GsfElectron::trackMomentumOut
math::XYZVectorF trackMomentumOut() const
Definition: GsfElectron.h:277
GsfElectronFakeAnalyzer::histSclE5x5_barrel_
TH1F * histSclE5x5_barrel_
Definition: GsfElectronFakeAnalyzer.cc:170
GsfElectronFakeAnalyzer::h_ele_vertexEta
TH1F * h_ele_vertexEta
Definition: GsfElectronFakeAnalyzer.cc:134
TrackerGeometry.h
GsfElectronFakeAnalyzer::h_matchingObjectPt
TH1F * h_matchingObjectPt
Definition: GsfElectronFakeAnalyzer.cc:77
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObject
TH1F * h_ele_PoPmatchingObject
Definition: GsfElectronFakeAnalyzer.cc:196
GsfElectronFakeAnalyzer::h_ele_lostHits_endcaps
TH1F * h_ele_lostHits_endcaps
Definition: GsfElectronFakeAnalyzer.cc:185
GsfElectronFakeAnalyzer::h_ele_charge
TH1F * h_ele_charge
Definition: GsfElectronFakeAnalyzer.cc:125
GsfElectronFakeAnalyzer::h_ele_HoE
TH1F * h_ele_HoE
Definition: GsfElectronFakeAnalyzer.cc:334
GsfElectronFakeAnalyzer::h_ele_matchingObjectZ_matched
TH1F * h_ele_matchingObjectZ_matched
Definition: GsfElectronFakeAnalyzer.cc:85
GsfElectronFakeAnalyzer::h_ele_foundHitsVsPt
TH2F * h_ele_foundHitsVsPt
Definition: GsfElectronFakeAnalyzer.cc:182
GsfElectronFakeAnalyzer::h_ele_vertexEtaVsPhi
TH2F * h_ele_vertexEtaVsPhi
Definition: GsfElectronFakeAnalyzer.cc:135
ESHandle.h
GsfElectronFakeAnalyzer::h_ele_PinMnPout
TH1F * h_ele_PinMnPout
Definition: GsfElectronFakeAnalyzer.cc:211
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_all_barrel
TH1F * h_ele_dEtaSc_propVtx_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:100
GsfElectronFakeAnalyzer::h_ele_vertexEta_all
TH1F * h_ele_vertexEta_all
Definition: GsfElectronFakeAnalyzer.cc:117
reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:235
reco::GsfElectron::parentSuperCluster
virtual SuperClusterRef parentSuperCluster() const
Definition: GsfElectron.h:167
GsfElectronFakeAnalyzer::h_ele_outerPt
TH1F * h_ele_outerPt
Definition: GsfElectronFakeAnalyzer.cc:222
GsfElectronFakeAnalyzer::h_ele_outerPtVsPt_mode
TH2F * h_ele_outerPtVsPt_mode
Definition: GsfElectronFakeAnalyzer.cc:226
GsfElectronFakeAnalyzer::nbineop
int nbineop
Definition: GsfElectronFakeAnalyzer.cc:417
GsfElectronFakeAnalyzer::h_ele_HoE_endcaps
TH1F * h_ele_HoE_endcaps
Definition: GsfElectronFakeAnalyzer.cc:336
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_eg_endcaps
TH1F * h_ele_dPhiCl_propOut_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:296
GsfElectronFakeAnalyzer::h_matchingObjectP
TH1F * h_matchingObjectP
Definition: GsfElectronFakeAnalyzer.cc:76
GsfElectronFakeAnalyzer::pDD
edm::ESHandle< TrackerGeometry > pDD
Definition: GsfElectronFakeAnalyzer.cc:64
GsfElectronFakeAnalyzer::outputFile_
std::string outputFile_
Definition: GsfElectronFakeAnalyzer.cc:374
GsfElectronFakeAnalyzer::nbindphimatch
int nbindphimatch
Definition: GsfElectronFakeAnalyzer.cc:425
GsfElectronFakeAnalyzer::h_ele_provenance
TH1F * h_ele_provenance
Definition: GsfElectronFakeAnalyzer.cc:363
GsfElectronFakeAnalyzer::h_ele_dEtaScVsPt_propVtx
TH2F * h_ele_dEtaScVsPt_propVtx
Definition: GsfElectronFakeAnalyzer.cc:272
reco::GsfElectron::isEERingGap
bool isEERingGap() const
Definition: GsfElectron.h:344
GsfElectronFakeAnalyzer::h_ele_EoPVsEta
TH2F * h_ele_EoPVsEta
Definition: GsfElectronFakeAnalyzer.cc:233
GsfElectronFakeAnalyzer::detamin
double detamin
Definition: GsfElectronFakeAnalyzer.cc:394
GsfElectronFakeAnalyzer::h_ele_EeleOPoutVsPhi
TH2F * h_ele_EeleOPoutVsPhi
Definition: GsfElectronFakeAnalyzer.cc:261
GsfElectronFakeAnalyzer::h_ele_seed_dphi2VsEta_
TH2F * h_ele_seed_dphi2VsEta_
Definition: GsfElectronFakeAnalyzer.cc:320
GsfElectronFakeAnalyzer::h_ele_EoverP_all_endcaps
TH1F * h_ele_EoverP_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:89
GsfElectronFakeAnalyzer::etamin
double etamin
Definition: GsfElectronFakeAnalyzer.cc:386
GsfElectronFakeAnalyzer::h_ele_PinMnPoutVsPhi_mode
TH2F * h_ele_PinMnPoutVsPhi_mode
Definition: GsfElectronFakeAnalyzer.cc:214
GsfElectronFakeAnalyzer::histSclE1x5_
TH1F * histSclE1x5_
Definition: GsfElectronFakeAnalyzer.cc:163
GsfElectronFakeAnalyzer::h_ele_lostHitsVsEta
TH2F * h_ele_lostHitsVsEta
Definition: GsfElectronFakeAnalyzer.cc:186
edm
HLT enums.
Definition: AlignableModifier.h:19
GsfElectronFakeAnalyzer::histSclEoEmatchingObject_barrel
TH1F * histSclEoEmatchingObject_barrel
Definition: GsfElectronFakeAnalyzer.cc:149
reco::GsfElectron::dr04HcalDepth1TowerSumEt
float dr04HcalDepth1TowerSumEt() const
Definition: GsfElectron.h:543
GsfElectronFakeAnalyzer::h_ele_PhiMnPhimatchingObjectVsPt
TH2F * h_ele_PhiMnPhimatchingObjectVsPt
Definition: GsfElectronFakeAnalyzer.cc:210
GsfElectronFakeAnalyzer::h_ele_dPhiEleClVsPhi_propOut
TH2F * h_ele_dPhiEleClVsPhi_propOut
Definition: GsfElectronFakeAnalyzer.cc:316
GsfElectronFakeAnalyzer::h_ele_EseedOP_endcaps
TH1F * h_ele_EseedOP_endcaps
Definition: GsfElectronFakeAnalyzer.cc:238
GsfElectronFakeAnalyzer::ptmax
double ptmax
Definition: GsfElectronFakeAnalyzer.cc:390
GsfElectronFakeAnalyzer::electronCollection_
edm::InputTag electronCollection_
Definition: GsfElectronFakeAnalyzer.cc:375
GsfElectronFakeAnalyzer::histSclEoEmatchingObject_endcaps
TH1F * histSclEoEmatchingObject_endcaps
Definition: GsfElectronFakeAnalyzer.cc:150
GsfElectronFakeAnalyzer::h_matchingObjectZ
TH1F * h_matchingObjectZ
Definition: GsfElectronFakeAnalyzer.cc:79
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GsfElectronFakeAnalyzer::eopmaxsht
double eopmaxsht
Definition: GsfElectronFakeAnalyzer.cc:393
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut_eg
TH1F * h_ele_dEtaEleCl_propOut_eg
Definition: GsfElectronFakeAnalyzer.cc:303
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_all_endcaps
TH1F * h_ele_dPhiSc_propVtx_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:104
GsfElectronFakeAnalyzer::pmax
double pmax
Definition: GsfElectronFakeAnalyzer.cc:391
GsfElectronFakeAnalyzer::h_ele_vertexPt_all
TH1F * h_ele_vertexPt_all
Definition: GsfElectronFakeAnalyzer.cc:118
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
GsfElectronFakeAnalyzer::mcEnergy
float mcEnergy[10]
Definition: GsfElectronFakeAnalyzer.cc:68
reco::GsfElectron::scE2x5Max
float scE2x5Max() const
Definition: GsfElectron.h:473
GsfElectronFakeAnalyzer::h_ele_lostHitsVsPt
TH2F * h_ele_lostHitsVsPt
Definition: GsfElectronFakeAnalyzer.cc:188
GsfElectronFakeAnalyzer::nbinpt
int nbinpt
Definition: GsfElectronFakeAnalyzer.cc:410
GsfElectronFakeAnalyzer::h_ele_EeleOPoutVsE
TH2F * h_ele_EeleOPoutVsE
Definition: GsfElectronFakeAnalyzer.cc:262
GsfElectronFakeAnalyzer::h_ele_ambiguousTracksVsEta
TH2F * h_ele_ambiguousTracksVsEta
Definition: GsfElectronFakeAnalyzer.cc:174
GsfElectronFakeAnalyzer::h_ele_dEtaEleClVsEta_propOut
TH2F * h_ele_dEtaEleClVsEta_propOut
Definition: GsfElectronFakeAnalyzer.cc:306
GsfElectronFakeAnalyzer::h_ele_dPhiClVsPhi_propOut
TH2F * h_ele_dPhiClVsPhi_propOut
Definition: GsfElectronFakeAnalyzer.cc:298
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_eg_barrel
TH1F * h_ele_dEtaSc_propVtx_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:268
GsfElectronFakeAnalyzer::h_ele_mee_all
TH1F * h_ele_mee_all
Definition: GsfElectronFakeAnalyzer.cc:119
GsfElectronFakeAnalyzer::h_ele_fbrem
TH1F * h_ele_fbrem
Definition: GsfElectronFakeAnalyzer.cc:345
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_all
TH1F * h_ele_dEtaCl_propOut_all
Definition: GsfElectronFakeAnalyzer.cc:105
GsfElectronFakeAnalyzer::h_ele_EoPout_eg
TH1F * h_ele_EoPout_eg
Definition: GsfElectronFakeAnalyzer.cc:248
GsfElectronFakeAnalyzer::h_ele_vertexPtVsEta
TH2F * h_ele_vertexPtVsEta
Definition: GsfElectronFakeAnalyzer.cc:131
GsfElectronFakeAnalyzer::h_ele_PinMnPoutVsEta_mode
TH2F * h_ele_PinMnPoutVsEta_mode
Definition: GsfElectronFakeAnalyzer.cc:213
GsfElectronFakeAnalyzer::endJob
void endJob() override
Definition: GsfElectronFakeAnalyzer.cc:1589
GsfElectronFakeAnalyzer::h_ele_EtaMnEtamatchingObjectVsPt
TH2F * h_ele_EtaMnEtamatchingObjectVsPt
Definition: GsfElectronFakeAnalyzer.cc:205
GsfElectronFakeAnalyzer::h_ele_ecalRecHitSumEt_dr03
TH1F * h_ele_ecalRecHitSumEt_dr03
Definition: GsfElectronFakeAnalyzer.cc:366
GsfElectronFakeAnalyzer::h_ele_chi2VsPt
TH2F * h_ele_chi2VsPt
Definition: GsfElectronFakeAnalyzer.cc:194
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx
TH1F * h_ele_dEtaSc_propVtx
Definition: GsfElectronFakeAnalyzer.cc:264
GsfElectronFakeAnalyzer::nbineta
int nbineta
Definition: GsfElectronFakeAnalyzer.cc:408
reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo
float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:236
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_eg_barrel
TH1F * h_ele_dPhiCl_propOut_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:295
GsfElectronFakeAnalyzer::h_matchingObjectPhi
TH1F * h_matchingObjectPhi
Definition: GsfElectronFakeAnalyzer.cc:78
GsfElectronFakeAnalyzer::h_ele_EeleOPoutVsEta
TH2F * h_ele_EeleOPoutVsEta
Definition: GsfElectronFakeAnalyzer.cc:260
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_all_endcaps
TH1F * h_ele_dPhiCl_propOut_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:110
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut_endcaps
TH1F * h_ele_dPhiEleCl_propOut_endcaps
Definition: GsfElectronFakeAnalyzer.cc:311
GsfElectronFakeAnalyzer::h_ele_EeleOPout_all_barrel
TH1F * h_ele_EeleOPout_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:97
EDAnalyzer.h
GsfElectronFakeAnalyzer::h_ele_eta_golden
TH1F * h_ele_eta_golden
Definition: GsfElectronFakeAnalyzer.cc:329
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
GsfElectronFakeAnalyzer::nbinp2D
int nbinp2D
Definition: GsfElectronFakeAnalyzer.cc:413
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
GsfElectronFakeAnalyzer::mcPhi
float mcPhi[10]
Definition: GsfElectronFakeAnalyzer.cc:68
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
GsfElectronFakeAnalyzer::seedMomentum
float seedMomentum[10]
Definition: GsfElectronFakeAnalyzer.cc:70
GsfElectronFakeAnalyzer::h_ele_EtaMnEtamatchingObject
TH1F * h_ele_EtaMnEtamatchingObject
Definition: GsfElectronFakeAnalyzer.cc:202
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_endcaps
TH1F * h_ele_dPhiCl_propOut_endcaps
Definition: GsfElectronFakeAnalyzer.cc:293
GsfElectronFakeAnalyzer::h_ele_outerPtVsPhi_mode
TH2F * h_ele_outerPtVsPhi_mode
Definition: GsfElectronFakeAnalyzer.cc:225
GsfElectronFakeAnalyzer::h_ele_dEtaEleClVsPt_propOut
TH2F * h_ele_dEtaEleClVsPt_propOut
Definition: GsfElectronFakeAnalyzer.cc:308
GsfElectronFakeAnalyzer::h_ele_eta_bbrem
TH1F * h_ele_eta_bbrem
Definition: GsfElectronFakeAnalyzer.cc:330
GsfElectronFakeAnalyzer::h_ele_dPhiClVsEta_propOut
TH2F * h_ele_dPhiClVsEta_propOut
Definition: GsfElectronFakeAnalyzer.cc:297
reco::GsfElectron::hadronicOverEm
float hadronicOverEm() const
Definition: GsfElectron.h:475
GsfElectronFakeAnalyzer::h_ele_dPhiScVsPt_propVtx
TH2F * h_ele_dPhiScVsPt_propVtx
Definition: GsfElectronFakeAnalyzer.cc:281
electronIsolatorFromEffectiveArea_cfi.gsfElectrons
gsfElectrons
Definition: electronIsolatorFromEffectiveArea_cfi.py:4
GsfElectronFakeAnalyzer::h_ele_EseedOP_all
TH1F * h_ele_EseedOP_all
Definition: GsfElectronFakeAnalyzer.cc:90
edm::Handle< reco::GsfElectronCollection >
GsfElectronFakeAnalyzer::h_ele_PtinVsPtoutShowering_mode
TH2F * h_ele_PtinVsPtoutShowering_mode
Definition: GsfElectronFakeAnalyzer.cc:354
reco::GsfElectron::fbrem
float fbrem() const
Definition: GsfElectron.h:732
GsfElectronFakeAnalyzer::h_ele_dPhiEleClVsPt_propOut
TH2F * h_ele_dPhiEleClVsPt_propOut
Definition: GsfElectronFakeAnalyzer.cc:317
GsfElectronFakeAnalyzer::h_ele_EeleOPout_barrel
TH1F * h_ele_EeleOPout_barrel
Definition: GsfElectronFakeAnalyzer.cc:255
GsfElectronFakeAnalyzer::h_ele_PtinVsPtoutShowering_mean
TH2F * h_ele_PtinVsPtoutShowering_mean
Definition: GsfElectronFakeAnalyzer.cc:356
GsfElectronFakeAnalyzer::h_ele_EoP
TH1F * h_ele_EoP
Definition: GsfElectronFakeAnalyzer.cc:227
GsfElectronFakeAnalyzer::histSclEt_
TH1F * histSclEt_
Definition: GsfElectronFakeAnalyzer.cc:151
GsfElectronFakeAnalyzer::h_ele_PinMnPout_mode
TH1F * h_ele_PinMnPout_mode
Definition: GsfElectronFakeAnalyzer.cc:212
GsfElectronFakeAnalyzer::detamatchmax
double detamatchmax
Definition: GsfElectronFakeAnalyzer.cc:399
GsfElectronFakeAnalyzer::nbinphi
int nbinphi
Definition: GsfElectronFakeAnalyzer.cc:412
ElectronSeedFwd.h
edm::Ref< SuperClusterCollection >
reco::GsfElectron::mva_e_pi
float mva_e_pi() const
Definition: GsfElectron.h:672
GsfElectronFakeAnalyzer::h_ele_mee_os
TH1F * h_ele_mee_os
Definition: GsfElectronFakeAnalyzer.cc:120
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut_endcaps
TH1F * h_ele_dEtaEleCl_propOut_endcaps
Definition: GsfElectronFakeAnalyzer.cc:302
GsfElectronFakeAnalyzer::h_ele_dPhiScVsPhi_propVtx
TH2F * h_ele_dPhiScVsPhi_propVtx
Definition: GsfElectronFakeAnalyzer.cc:280
GsfElectronFakeAnalyzer::histSclE2x5max_endcaps_
TH1F * histSclE2x5max_endcaps_
Definition: GsfElectronFakeAnalyzer.cc:168
GsfElectronFakeAnalyzer::h_ele_dEtaClVsPt_propOut
TH2F * h_ele_dEtaClVsPt_propOut
Definition: GsfElectronFakeAnalyzer.cc:290
GsfElectronFakeAnalyzer::h_ele_seed_drz2VsEta_
TH2F * h_ele_seed_drz2VsEta_
Definition: GsfElectronFakeAnalyzer.cc:323
GsfElectronFakeAnalyzer::h_ele_PinVsPoutGolden_mode
TH2F * h_ele_PinVsPoutGolden_mode
Definition: GsfElectronFakeAnalyzer.cc:349
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_eg
TH1F * h_ele_dPhiSc_propVtx_eg
Definition: GsfElectronFakeAnalyzer.cc:276
GsfElectronFakeAnalyzer::h_ele_eta_shower
TH1F * h_ele_eta_shower
Definition: GsfElectronFakeAnalyzer.cc:332
GsfElectronFakeAnalyzer::h_ele_PinVsPoutGolden_mean
TH2F * h_ele_PinVsPoutGolden_mean
Definition: GsfElectronFakeAnalyzer.cc:351
GsfElectronFakeAnalyzer::h_ele_EeleOPout_endcaps
TH1F * h_ele_EeleOPout_endcaps
Definition: GsfElectronFakeAnalyzer.cc:256
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObjectVsPhi
TH2F * h_ele_PoPmatchingObjectVsPhi
Definition: GsfElectronFakeAnalyzer.cc:198
GsfElectronFakeAnalyzer::h_ele_EoP_barrel
TH1F * h_ele_EoP_barrel
Definition: GsfElectronFakeAnalyzer.cc:228
fileCollector.seed
seed
Definition: fileCollector.py:127
GsfElectronFakeAnalyzer::etamax
double etamax
Definition: GsfElectronFakeAnalyzer.cc:387
GsfElectronFakeAnalyzer::h_ele_HoEVsE
TH2F * h_ele_HoEVsE
Definition: GsfElectronFakeAnalyzer.cc:343
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
GsfElectronFakeAnalyzer::h_ele_TIP_all_barrel
TH1F * h_ele_TIP_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:112
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut
TH1F * h_ele_dPhiCl_propOut
Definition: GsfElectronFakeAnalyzer.cc:291
MakerMacros.h
GsfElectronFakeAnalyzer::h_ele_dEtaScVsPhi_propVtx
TH2F * h_ele_dEtaScVsPhi_propVtx
Definition: GsfElectronFakeAnalyzer.cc:271
GsfElectronFakeAnalyzer::histSclSigIEtaIEta_
TH1F * histSclSigIEtaIEta_
Definition: GsfElectronFakeAnalyzer.cc:160
GsfElectronFakeAnalyzer::h_ele_vertexX
TH1F * h_ele_vertexX
Definition: GsfElectronFakeAnalyzer.cc:138
GsfElectronFakeAnalyzer::h_ele_HoE_eg_barrel
TH1F * h_ele_HoE_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:338
cms::cuda::bs
bs
Definition: HistoContainer.h:127
reco::GsfElectron::ambiguousGsfTracksSize
GsfTrackRefVector::size_type ambiguousGsfTracksSize() const
Definition: GsfElectron.h:689
GsfElectronFakeAnalyzer::hoemin
double hoemin
Definition: GsfElectronFakeAnalyzer.cc:406
GsfElectronFakeAnalyzer::h_ele_hcalDepth1TowerSumEt_dr03
TH1F * h_ele_hcalDepth1TowerSumEt_dr03
Definition: GsfElectronFakeAnalyzer.cc:367
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut_eg_endcaps
TH1F * h_ele_dPhiEleCl_propOut_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:314
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
GsfElectronFakeAnalyzer::h_ele_hcalDepth1TowerSumEt_dr04
TH1F * h_ele_hcalDepth1TowerSumEt_dr04
Definition: GsfElectronFakeAnalyzer.cc:371
GsfElectronFakeAnalyzer::histSclE5x5_endcaps_
TH1F * histSclE5x5_endcaps_
Definition: GsfElectronFakeAnalyzer.cc:171
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_endcaps
TH1F * h_ele_dEtaCl_propOut_endcaps
Definition: GsfElectronFakeAnalyzer.cc:284
GsfElectronFakeAnalyzer::h_ele_EeleOPout
TH1F * h_ele_EeleOPout
Definition: GsfElectronFakeAnalyzer.cc:254
GsfElectronFakeAnalyzer::h_ele_EseedOP
TH1F * h_ele_EseedOP
Definition: GsfElectronFakeAnalyzer.cc:236
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
GsfElectronFakeAnalyzer::nbindetamatch2D
int nbindetamatch2D
Definition: GsfElectronFakeAnalyzer.cc:426
GsfElectronFakeAnalyzer::nbindetamatch
int nbindetamatch
Definition: GsfElectronFakeAnalyzer.cc:424
GsfElectronFakeAnalyzer::h_ele_EoPout_all
TH1F * h_ele_EoPout_all
Definition: GsfElectronFakeAnalyzer.cc:93
BeamSpot.h
GsfElectronFakeAnalyzer::h_ele_chi2VsPhi
TH2F * h_ele_chi2VsPhi
Definition: GsfElectronFakeAnalyzer.cc:193
GsfElectronFakeAnalyzer::h_ele_foundHits_endcaps
TH1F * h_ele_foundHits_endcaps
Definition: GsfElectronFakeAnalyzer.cc:179
GsfElectronFakeAnalyzer::h_ele_EseedOP_all_barrel
TH1F * h_ele_EseedOP_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:91
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition: LeafCandidate.h:142
GsfElectronFakeAnalyzer::readAOD_
bool readAOD_
Definition: GsfElectronFakeAnalyzer.cc:379
GsfElectronFakeAnalyzer::h_ele_dEtaClVsEta_propOut
TH2F * h_ele_dEtaClVsEta_propOut
Definition: GsfElectronFakeAnalyzer.cc:288
GsfElectronFakeAnalyzer::h_ele_vertexTIPVsPhi
TH2F * h_ele_vertexTIPVsPhi
Definition: GsfElectronFakeAnalyzer.cc:143
GsfElectronFakeAnalyzer::h_ele_PinVsPoutShowering_mode
TH2F * h_ele_PinVsPoutShowering_mode
Definition: GsfElectronFakeAnalyzer.cc:350
GsfElectronFakeAnalyzer::h_ele_chi2_endcaps
TH1F * h_ele_chi2_endcaps
Definition: GsfElectronFakeAnalyzer.cc:191
GsfElectronFakeAnalyzer::h_ele_outerP
TH1F * h_ele_outerP
Definition: GsfElectronFakeAnalyzer.cc:219
GsfElectronFakeAnalyzer::h_matchingObjectNum
TH1F * h_matchingObjectNum
Definition: GsfElectronFakeAnalyzer.cc:72
GsfElectronFakeAnalyzer::histSclEoEmatchingObjectGolden_endcaps
TH1F * histSclEoEmatchingObjectGolden_endcaps
Definition: GsfElectronFakeAnalyzer.cc:358
GsfElectronFakeAnalyzer::theMagField
edm::ESHandle< MagneticField > theMagField
Definition: GsfElectronFakeAnalyzer.cc:65
GsfElectronFakeAnalyzer::h_ele_EoP_endcaps
TH1F * h_ele_EoP_endcaps
Definition: GsfElectronFakeAnalyzer.cc:229
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GsfElectronFakeAnalyzer::nbinpteff
int nbinpteff
Definition: GsfElectronFakeAnalyzer.cc:411
reco::GsfElectron::trackMomentumAtVtx
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:275
GsfElectronFakeAnalyzer::h_ele_chi2VsEta
TH2F * h_ele_chi2VsEta
Definition: GsfElectronFakeAnalyzer.cc:192
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_eg_barrel
TH1F * h_ele_dPhiSc_propVtx_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:277
GsfElectronFakeAnalyzer::~GsfElectronFakeAnalyzer
~GsfElectronFakeAnalyzer() override
Definition: GsfElectronFakeAnalyzer.cc:496
reco::BeamSpot
Definition: BeamSpot.h:21
reco::GsfElectron::ecalDrivenSeed
bool ecalDrivenSeed() const
Definition: GsfElectron.h:165
GsfElectronFakeAnalyzer::h_ele_chargeVsEta
TH2F * h_ele_chargeVsEta
Definition: GsfElectronFakeAnalyzer.cc:126
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut_eg
TH1F * h_ele_dPhiEleCl_propOut_eg
Definition: GsfElectronFakeAnalyzer.cc:312
edm::ESHandle< TrackerGeometry >
GsfElectronFakeAnalyzer::h_ele_outerP_mode
TH1F * h_ele_outerP_mode
Definition: GsfElectronFakeAnalyzer.cc:220
GsfElectronFakeAnalyzer::h_ele_ambiguousTracks
TH1F * h_ele_ambiguousTracks
Definition: GsfElectronFakeAnalyzer.cc:173
reco::GsfElectron::isEEDeeGap
bool isEEDeeGap() const
Definition: GsfElectron.h:343
GsfElectronFakeAnalyzer::h_ele_EoPoutVsE
TH2F * h_ele_EoPoutVsE
Definition: GsfElectronFakeAnalyzer.cc:253
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_all
TH1F * h_ele_dEtaSc_propVtx_all
Definition: GsfElectronFakeAnalyzer.cc:99
GsfElectronFakeAnalyzer::histSclE2x5max_
TH1F * histSclE2x5max_
Definition: GsfElectronFakeAnalyzer.cc:166
GsfElectronFakeAnalyzer::h_ele_foundHitsVsEta
TH2F * h_ele_foundHitsVsEta
Definition: GsfElectronFakeAnalyzer.cc:180
GsfElectronFakeAnalyzer::h_ele_lostHitsVsPhi
TH2F * h_ele_lostHitsVsPhi
Definition: GsfElectronFakeAnalyzer.cc:187
GsfElectronFakeAnalyzer::mcEta
float mcEta[10]
Definition: GsfElectronFakeAnalyzer.cc:68
GsfElectronFakeAnalyzer::h_ele_PinVsPoutShowering_mean
TH2F * h_ele_PinVsPoutShowering_mean
Definition: GsfElectronFakeAnalyzer.cc:352
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_eg
TH1F * h_ele_dPhiCl_propOut_eg
Definition: GsfElectronFakeAnalyzer.cc:294
GsfElectronFakeAnalyzer::h_ele_HoE_barrel
TH1F * h_ele_HoE_barrel
Definition: GsfElectronFakeAnalyzer.cc:335
GsfElectronFakeAnalyzer::h_ele_EoPout_all_endcaps
TH1F * h_ele_EoPout_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:95
GsfElectronFakeAnalyzer::h_ele_seed_subdet2_
TH1F * h_ele_seed_subdet2_
Definition: GsfElectronFakeAnalyzer.cc:325
GsfElectronFakeAnalyzer::h_ele_vertexPt
TH1F * h_ele_vertexPt
Definition: GsfElectronFakeAnalyzer.cc:130
reco::GsfElectron
Definition: GsfElectron.h:34
GsfElectronFakeAnalyzer::h_ele_fbremVsEta_mean
TProfile * h_ele_fbremVsEta_mean
Definition: GsfElectronFakeAnalyzer.cc:347
GsfElectronFakeAnalyzer::h_ele_PtinVsPtoutGolden_mode
TH2F * h_ele_PtinVsPtoutGolden_mode
Definition: GsfElectronFakeAnalyzer.cc:353
GsfElectronFakeAnalyzer::h_ele_EoPoutVsEta
TH2F * h_ele_EoPoutVsEta
Definition: GsfElectronFakeAnalyzer.cc:251
GsfElectron.h
GsfElectronFakeAnalyzer::h_ele_outerPtVsEta_mode
TH2F * h_ele_outerPtVsEta_mode
Definition: GsfElectronFakeAnalyzer.cc:224
GsfElectronFakeAnalyzer::h_ele_EoPout_endcaps
TH1F * h_ele_EoPout_endcaps
Definition: GsfElectronFakeAnalyzer.cc:247
GsfElectronFakeAnalyzer::h_ele_EseedOPVsEta
TH2F * h_ele_EseedOPVsEta
Definition: GsfElectronFakeAnalyzer.cc:242
GsfElectronFakeAnalyzer::meemax
double meemax
Definition: GsfElectronFakeAnalyzer.cc:405
GsfElectronFakeAnalyzer
Definition: GsfElectronFakeAnalyzer.cc:52
GsfElectronFakeAnalyzer::h_ele_EtaMnEtamatchingObjectVsPhi
TH2F * h_ele_EtaMnEtamatchingObjectVsPhi
Definition: GsfElectronFakeAnalyzer.cc:204
GsfElectronFakeAnalyzer::GsfElectronFakeAnalyzer
GsfElectronFakeAnalyzer(const edm::ParameterSet &conf)
Definition: GsfElectronFakeAnalyzer.cc:437
GsfElectronFakeAnalyzer::h_ele_ecalRecHitSumEt_dr04
TH1F * h_ele_ecalRecHitSumEt_dr04
Definition: GsfElectronFakeAnalyzer.cc:370
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
GsfElectronFakeAnalyzer::detamatchmin
double detamatchmin
Definition: GsfElectronFakeAnalyzer.cc:398
GsfElectronFakeAnalyzer::histSclPhi_
TH1F * histSclPhi_
Definition: GsfElectronFakeAnalyzer.cc:156
GsfElectronFakeAnalyzer::h_ele_hcalDepth2TowerSumEt_dr04
TH1F * h_ele_hcalDepth2TowerSumEt_dr04
Definition: GsfElectronFakeAnalyzer.cc:372
GsfElectronFakeAnalyzer::h_ele_foundHits_barrel
TH1F * h_ele_foundHits_barrel
Definition: GsfElectronFakeAnalyzer.cc:178
GsfElectronFakeAnalyzer::h_ele_EoPout_eg_endcaps
TH1F * h_ele_EoPout_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:250
GsfElectronFakeAnalyzer::h_ele_EseedOP_barrel
TH1F * h_ele_EseedOP_barrel
Definition: GsfElectronFakeAnalyzer.cc:237
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GsfElectronFakeAnalyzer::seedPhi
float seedPhi[10]
Definition: GsfElectronFakeAnalyzer.cc:70
GsfElectronFakeAnalyzer::h_ele_dEtaEleClVsPhi_propOut
TH2F * h_ele_dEtaEleClVsPhi_propOut
Definition: GsfElectronFakeAnalyzer.cc:307
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut_eg_barrel
TH1F * h_ele_dEtaEleCl_propOut_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:304
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut_eg_barrel
TH1F * h_ele_dPhiEleCl_propOut_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:313
GsfElectronFakeAnalyzer::histSclEtaVsPhi_
TH2F * histSclEtaVsPhi_
Definition: GsfElectronFakeAnalyzer.cc:154
GsfElectronFakeAnalyzer::nbinphi2D
int nbinphi2D
Definition: GsfElectronFakeAnalyzer.cc:416
GsfElectronFakeAnalyzer::histSclSigEtaEta_
TH1F * histSclSigEtaEta_
Definition: GsfElectronFakeAnalyzer.cc:157
GsfElectronFakeAnalyzer::h_ele_HoE_eg
TH1F * h_ele_HoE_eg
Definition: GsfElectronFakeAnalyzer.cc:337
GsfElectronFakeAnalyzer::h_ele_PhiMnPhimatchingObject
TH1F * h_ele_PhiMnPhimatchingObject
Definition: GsfElectronFakeAnalyzer.cc:206
GsfElectronFakeAnalyzer::h_ele_seed_drz2VsPt_
TH2F * h_ele_seed_drz2VsPt_
Definition: GsfElectronFakeAnalyzer.cc:324
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_eg_endcaps
TH1F * h_ele_dEtaCl_propOut_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:287
GsfElectronFakeAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: GsfElectronFakeAnalyzer.cc:2119
GsfElectronFakeAnalyzer::h_ele_vertexPhi
TH1F * h_ele_vertexPhi
Definition: GsfElectronFakeAnalyzer.cc:137
GsfElectronFwd.h
GsfElectronFakeAnalyzer::histNum_
TH1F * histNum_
Definition: GsfElectronFakeAnalyzer.cc:146
edm::ParameterSet
Definition: ParameterSet.h:47
GsfElectronFakeAnalyzer::h_ele_dPhiEleCl_propOut_barrel
TH1F * h_ele_dPhiEleCl_propOut_barrel
Definition: GsfElectronFakeAnalyzer.cc:310
GsfElectronFakeAnalyzer::mcPt
float mcPt[10]
Definition: GsfElectronFakeAnalyzer.cc:68
GsfElectronFakeAnalyzer::nbinp
int nbinp
Definition: GsfElectronFakeAnalyzer.cc:409
GsfElectronFakeAnalyzer::h_ele_matchingObjectPhi_matched
TH1F * h_ele_matchingObjectPhi_matched
Definition: GsfElectronFakeAnalyzer.cc:84
reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:232
Event.h
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
GsfElectronFakeAnalyzer::phimax
double phimax
Definition: GsfElectronFakeAnalyzer.cc:389
GsfElectronFakeAnalyzer::histSclEoEmatchingObjectShowering_barrel
TH1F * histSclEoEmatchingObjectShowering_barrel
Definition: GsfElectronFakeAnalyzer.cc:359
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObjectVsPt
TH2F * h_ele_PoPmatchingObjectVsPt
Definition: GsfElectronFakeAnalyzer.cc:199
GsfElectronFakeAnalyzer::tree_
TTree * tree_
Definition: GsfElectronFakeAnalyzer.cc:67
GsfElectronFakeAnalyzer::maxAbsEta_
double maxAbsEta_
Definition: GsfElectronFakeAnalyzer.cc:382
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_barrel
TH1F * h_ele_dEtaSc_propVtx_barrel
Definition: GsfElectronFakeAnalyzer.cc:265
GsfElectronFakeAnalyzer::histSclEoEmatchingObjectGolden_barrel
TH1F * histSclEoEmatchingObjectGolden_barrel
Definition: GsfElectronFakeAnalyzer.cc:357
GsfElectronFakeAnalyzer::h_ele_seed_dphi2_
TH1F * h_ele_seed_dphi2_
Definition: GsfElectronFakeAnalyzer.cc:319
GsfElectronFakeAnalyzer::h_ele_vertexAbsEta
TH1F * h_ele_vertexAbsEta
Definition: GsfElectronFakeAnalyzer.cc:136
GsfElectronFakeAnalyzer::h_ele_EoP_eg
TH1F * h_ele_EoP_eg
Definition: GsfElectronFakeAnalyzer.cc:230
GsfElectronFakeAnalyzer::histSclE5x5_
TH1F * histSclE5x5_
Definition: GsfElectronFakeAnalyzer.cc:169
reco::GsfElectron::scE5x5
float scE5x5() const
Definition: GsfElectron.h:474
GsfElectronFakeAnalyzer::h_ele_EseedOP_all_endcaps
TH1F * h_ele_EseedOP_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:92
TrajectoryStateTransform
Definition: TrajectoryStateTransform.h:47
GsfElectronFakeAnalyzer::nbinfhits
int nbinfhits
Definition: GsfElectronFakeAnalyzer.cc:419
reco::GsfElectron::dr03HcalDepth1TowerSumEt
float dr03HcalDepth1TowerSumEt() const
Definition: GsfElectron.h:531
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_eg_endcaps
TH1F * h_ele_dEtaSc_propVtx_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:269
GsfElectronFakeAnalyzer::h_ele_foundHits
TH1F * h_ele_foundHits
Definition: GsfElectronFakeAnalyzer.cc:177
GsfElectronFakeAnalyzer::maxPt_
double maxPt_
Definition: GsfElectronFakeAnalyzer.cc:381
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx
TH1F * h_ele_dPhiSc_propVtx
Definition: GsfElectronFakeAnalyzer.cc:273
GsfElectronFakeAnalyzer::dphimax
double dphimax
Definition: GsfElectronFakeAnalyzer.cc:397
GsfElectronFakeAnalyzer::histSclEtVsEta_
TH2F * histSclEtVsEta_
Definition: GsfElectronFakeAnalyzer.cc:152
GsfElectronFakeAnalyzer::h_ele_PhiMnPhimatchingObject2
TH1F * h_ele_PhiMnPhimatchingObject2
Definition: GsfElectronFakeAnalyzer.cc:207
GsfElectronFakeAnalyzer::h_ele_EoPout_all_barrel
TH1F * h_ele_EoPout_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:94
GsfElectronFakeAnalyzer::h_ele_fbremVsEta_mode
TProfile * h_ele_fbremVsEta_mode
Definition: GsfElectronFakeAnalyzer.cc:346
iEvent
int iEvent
Definition: GenABIO.cc:224
reco::GsfElectron::eSeedClusterOverP
float eSeedClusterOverP() const
Definition: GsfElectron.h:229
GsfElectronFakeAnalyzer::matchingObjectCollection_
edm::InputTag matchingObjectCollection_
Definition: GsfElectronFakeAnalyzer.cc:376
reco::GsfElectron::dr04TkSumPt
float dr04TkSumPt() const
Definition: GsfElectron.h:540
GsfElectronFakeAnalyzer::superclusterPhi
float superclusterPhi[10]
Definition: GsfElectronFakeAnalyzer.cc:69
GsfElectronFakeAnalyzer::h_ele_EeleOPout_all_endcaps
TH1F * h_ele_EeleOPout_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:98
GsfElectronFakeAnalyzer::h_ele_HoE_eg_endcaps
TH1F * h_ele_HoE_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:339
GsfElectronFakeAnalyzer::histSclEoEmatchingObjectShowering_endcaps
TH1F * histSclEoEmatchingObjectShowering_endcaps
Definition: GsfElectronFakeAnalyzer.cc:360
GsfTrack.h
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut
TH1F * h_ele_dEtaEleCl_propOut
Definition: GsfElectronFakeAnalyzer.cc:300
GsfElectronFakeAnalyzer::superclusterEnergy
float superclusterEnergy[10]
Definition: GsfElectronFakeAnalyzer.cc:69
GsfElectronFakeAnalyzer::h_matchingObjectEta
TH1F * h_matchingObjectEta
Definition: GsfElectronFakeAnalyzer.cc:74
GsfElectronFakeAnalyzer::h_ele_vertexPt_5100
TH1F * h_ele_vertexPt_5100
Definition: GsfElectronFakeAnalyzer.cc:133
GsfElectronFakeAnalyzer::h_ele_E2mnE1vsMee_egeg_all
TH2F * h_ele_E2mnE1vsMee_egeg_all
Definition: GsfElectronFakeAnalyzer.cc:123
GsfElectronFakeAnalyzer::dphimatchmax
double dphimatchmax
Definition: GsfElectronFakeAnalyzer.cc:401
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_all_barrel
TH1F * h_ele_dEtaCl_propOut_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:106
reco::LeafCandidate::charge
int charge() const final
electric charge
Definition: LeafCandidate.h:106
GsfElectronFakeAnalyzer::h_ele_EoPout_barrel
TH1F * h_ele_EoPout_barrel
Definition: GsfElectronFakeAnalyzer.cc:246
reco::GsfElectron::isEBEtaGap
bool isEBEtaGap() const
Definition: GsfElectron.h:340
GsfElectronFakeAnalyzer::h_ele_EseedOPVsE
TH2F * h_ele_EseedOPVsE
Definition: GsfElectronFakeAnalyzer.cc:244
edm::EventSetup
Definition: EventSetup.h:58
GsfElectronFakeAnalyzer::h_ele_classes
TH1F * h_ele_classes
Definition: GsfElectronFakeAnalyzer.cc:327
GsfElectronFakeAnalyzer::h_ele_TIP_all_endcaps
TH1F * h_ele_TIP_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:113
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_all_endcaps
TH1F * h_ele_dEtaCl_propOut_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:107
GsfElectronFakeAnalyzer::histfile_
TFile * histfile_
Definition: GsfElectronFakeAnalyzer.cc:66
GsfElectronFakeAnalyzer::detamax
double detamax
Definition: GsfElectronFakeAnalyzer.cc:395
GsfElectronFakeAnalyzer::seedEta
float seedEta[10]
Definition: GsfElectronFakeAnalyzer.cc:70
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_barrel
TH1F * h_ele_dPhiSc_propVtx_barrel
Definition: GsfElectronFakeAnalyzer.cc:274
GsfElectronFakeAnalyzer::h_ele_EseedOP_eg_endcaps
TH1F * h_ele_EseedOP_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:241
GsfElectronFakeAnalyzer::h_ele_lostHits
TH1F * h_ele_lostHits
Definition: GsfElectronFakeAnalyzer.cc:183
GsfElectronFakeAnalyzer::h_ele_lostHits_barrel
TH1F * h_ele_lostHits_barrel
Definition: GsfElectronFakeAnalyzer.cc:184
GsfElectronFakeAnalyzer::histSclEta_
TH1F * histSclEta_
Definition: GsfElectronFakeAnalyzer.cc:155
reco::LeafCandidate::vertex
const Point & vertex() const override
vertex position (overwritten by PF...)
Definition: LeafCandidate.h:165
InputTag.h
GsfElectronFakeAnalyzer::h_ele_chi2_barrel
TH1F * h_ele_chi2_barrel
Definition: GsfElectronFakeAnalyzer.cc:190
GsfElectronFakeAnalyzer::h_ele_TIP_all
TH1F * h_ele_TIP_all
Definition: GsfElectronFakeAnalyzer.cc:111
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_eg_barrel
TH1F * h_ele_dEtaCl_propOut_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:286
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_endcaps
TH1F * h_ele_dEtaSc_propVtx_endcaps
Definition: GsfElectronFakeAnalyzer.cc:266
GsfElectronFakeAnalyzer::seedQ
float seedQ[10]
Definition: GsfElectronFakeAnalyzer.cc:70
GsfElectronFakeAnalyzer::h_ele_HoE_fiducial
TH1F * h_ele_HoE_fiducial
Definition: GsfElectronFakeAnalyzer.cc:340
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObject_endcaps
TH1F * h_ele_PoPmatchingObject_endcaps
Definition: GsfElectronFakeAnalyzer.cc:201
GsfElectronFakeAnalyzer::h_ele_EoPVsPhi
TH2F * h_ele_EoPVsPhi
Definition: GsfElectronFakeAnalyzer.cc:234
GsfElectronFakeAnalyzer::beginJob
void beginJob() override
Definition: GsfElectronFakeAnalyzer.cc:503
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_all
TH1F * h_ele_dPhiSc_propVtx_all
Definition: GsfElectronFakeAnalyzer.cc:102
GsfElectronFakeAnalyzer::h_ele_dPhiScVsEta_propVtx
TH2F * h_ele_dPhiScVsEta_propVtx
Definition: GsfElectronFakeAnalyzer.cc:279
GsfElectronFakeAnalyzer::h_ele_EseedOP_eg
TH1F * h_ele_EseedOP_eg
Definition: GsfElectronFakeAnalyzer.cc:239
GsfElectronFakeAnalyzer::h_ele_EeleOPout_all
TH1F * h_ele_EeleOPout_all
Definition: GsfElectronFakeAnalyzer.cc:96
GsfElectronFakeAnalyzer::h_ele_EoverP_all_barrel
TH1F * h_ele_EoverP_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:88
GsfElectronFakeAnalyzer::nbindeta
int nbindeta
Definition: GsfElectronFakeAnalyzer.cc:422
GsfElectronFakeAnalyzer::hoemax
double hoemax
Definition: GsfElectronFakeAnalyzer.cc:407
GsfElectronFakeAnalyzer::h_ele_ambiguousTracksVsPhi
TH2F * h_ele_ambiguousTracksVsPhi
Definition: GsfElectronFakeAnalyzer.cc:175
GsfElectronFakeAnalyzer::h_ele_EoP_eg_barrel
TH1F * h_ele_EoP_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:231
GsfElectronFakeAnalyzer::h_ele_chargeVsPt
TH2F * h_ele_chargeVsPt
Definition: GsfElectronFakeAnalyzer.cc:128
GsfElectronFakeAnalyzer::h_ele_PinMnPoutVsE_mode
TH2F * h_ele_PinMnPoutVsE_mode
Definition: GsfElectronFakeAnalyzer.cc:216
GsfElectronFakeAnalyzer::superclusterEt
float superclusterEt[10]
Definition: GsfElectronFakeAnalyzer.cc:69
GsfElectronFakeAnalyzer::transformer_
TrajectoryStateTransform transformer_
Definition: GsfElectronFakeAnalyzer.cc:63
GsfElectronFakeAnalyzer::h_ele_seed_dphi2VsPt_
TH2F * h_ele_seed_dphi2VsPt_
Definition: GsfElectronFakeAnalyzer.cc:321
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_eg_endcaps
TH1F * h_ele_dPhiSc_propVtx_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:278
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
GsfElectronFakeAnalyzer::h_ele_hcalDepth2TowerSumEt_dr03
TH1F * h_ele_hcalDepth2TowerSumEt_dr03
Definition: GsfElectronFakeAnalyzer.cc:368
SuperClusterFwd.h
GsfElectronFakeAnalyzer::h_ele_EoPout_eg_barrel
TH1F * h_ele_EoPout_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:249
GsfElectronFakeAnalyzer::h_ele_foundHitsVsPhi
TH2F * h_ele_foundHitsVsPhi
Definition: GsfElectronFakeAnalyzer.cc:181
GsfElectronFakeAnalyzer::h_ele_mva
TH1F * h_ele_mva
Definition: GsfElectronFakeAnalyzer.cc:362
reco::GsfElectron::isEBEEGap
bool isEBEEGap() const
Definition: GsfElectron.h:338
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
GsfElectronFakeAnalyzer::dphimatchmin
double dphimatchmin
Definition: GsfElectronFakeAnalyzer.cc:400
GsfElectronFakeAnalyzer::deltaR_
double deltaR_
Definition: GsfElectronFakeAnalyzer.cc:383
GsfElectronFakeAnalyzer::h_ele_vertexPtVsPhi
TH2F * h_ele_vertexPtVsPhi
Definition: GsfElectronFakeAnalyzer.cc:132
GsfElectronFakeAnalyzer::dphimin
double dphimin
Definition: GsfElectronFakeAnalyzer.cc:396
GsfElectronFakeAnalyzer::h_ele_EoPoutVsPhi
TH2F * h_ele_EoPoutVsPhi
Definition: GsfElectronFakeAnalyzer.cc:252
GsfElectronFakeAnalyzer::nbinpt2D
int nbinpt2D
Definition: GsfElectronFakeAnalyzer.cc:414
GsfElectronFakeAnalyzer::h_ele_EoP_eg_endcaps
TH1F * h_ele_EoP_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:232
GsfElectronFakeAnalyzer::h_ele_dPhiSc_propVtx_all_barrel
TH1F * h_ele_dPhiSc_propVtx_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:103
GsfElectronFakeAnalyzer::h_ele_HoE_all_endcaps
TH1F * h_ele_HoE_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:116
reco::LeafCandidate::p
double p() const final
magnitude of momentum vector
Definition: LeafCandidate.h:123
GsfElectronFakeAnalyzer::nbinlhits
int nbinlhits
Definition: GsfElectronFakeAnalyzer.cc:420
GsfElectronFakeAnalyzer::h_ele_chi2
TH1F * h_ele_chi2
Definition: GsfElectronFakeAnalyzer.cc:189
reco::GsfElectron::deltaEtaEleClusterTrackAtCalo
float deltaEtaEleClusterTrackAtCalo() const
Definition: GsfElectron.h:234
reco::GsfElectron::eSuperClusterOverP
float eSuperClusterOverP() const
Definition: GsfElectron.h:228
reco::GsfElectron::classification
Classification classification() const
Definition: GsfElectron.h:728
GsfElectronFakeAnalyzer::h_ele_dPhiClVsPt_propOut
TH2F * h_ele_dPhiClVsPt_propOut
Definition: GsfElectronFakeAnalyzer.cc:299
GsfElectronFakeAnalyzer::h_ele_matchingObjectEta_matched
TH1F * h_ele_matchingObjectEta_matched
Definition: GsfElectronFakeAnalyzer.cc:81
reco::GsfElectron::eEleClusterOverPout
float eEleClusterOverPout() const
Definition: GsfElectron.h:231
EventSetup.h
reco::GsfElectron::trackerDrivenSeed
bool trackerDrivenSeed() const
Definition: GsfElectron.h:166
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::RefToBase< TrajectorySeed >
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_eg
TH1F * h_ele_dEtaSc_propVtx_eg
Definition: GsfElectronFakeAnalyzer.cc:267
reco::GsfElectron::isEBPhiGap
bool isEBPhiGap() const
Definition: GsfElectron.h:341
TrajectoryStateTransform.h
reco::GsfElectron::eSeedClusterOverPout
float eSeedClusterOverPout() const
Definition: GsfElectron.h:230
reco::GsfElectron::superCluster
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:162
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
GsfElectronFakeAnalyzer::h_ele_EeleOPout_eg_barrel
TH1F * h_ele_EeleOPout_eg_barrel
Definition: GsfElectronFakeAnalyzer.cc:258
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut_eg_endcaps
TH1F * h_ele_dEtaEleCl_propOut_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:305
GsfElectronFakeAnalyzer::h_ele_vertexZ
TH1F * h_ele_vertexZ
Definition: GsfElectronFakeAnalyzer.cc:140
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_all_barrel
TH1F * h_ele_dPhiCl_propOut_all_barrel
Definition: GsfElectronFakeAnalyzer.cc:109
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
ztail.d
d
Definition: ztail.py:151
GsfElectronFakeAnalyzer::h_ele_chargeVsPhi
TH2F * h_ele_chargeVsPhi
Definition: GsfElectronFakeAnalyzer.cc:127
GsfElectronFakeAnalyzer::histSclSigIEtaIEta_endcaps_
TH1F * histSclSigIEtaIEta_endcaps_
Definition: GsfElectronFakeAnalyzer.cc:162
pi
const Double_t pi
Definition: trackSplitPlot.h:36
GsfElectronFakeAnalyzer::h_ele_vertexTIPVsPt
TH2F * h_ele_vertexTIPVsPt
Definition: GsfElectronFakeAnalyzer.cc:144
GsfElectronFakeAnalyzer::h_ele_HoE_all
TH1F * h_ele_HoE_all
Definition: GsfElectronFakeAnalyzer.cc:114
GsfElectronFakeAnalyzer::h_ele_PhiMnPhimatchingObjectVsPhi
TH2F * h_ele_PhiMnPhimatchingObjectVsPhi
Definition: GsfElectronFakeAnalyzer.cc:209
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfElectronFakeAnalyzer::h_ele_EeleOPout_eg_endcaps
TH1F * h_ele_EeleOPout_eg_endcaps
Definition: GsfElectronFakeAnalyzer.cc:259
GsfElectronFakeAnalyzer::nbineop2D
int nbineop2D
Definition: GsfElectronFakeAnalyzer.cc:418
GsfElectronFakeAnalyzer::nbindphi
int nbindphi
Definition: GsfElectronFakeAnalyzer.cc:423
ParameterSet.h
GsfElectronFakeAnalyzer::h_ele_EeleOPout_eg
TH1F * h_ele_EeleOPout_eg
Definition: GsfElectronFakeAnalyzer.cc:257
GsfElectronFakeAnalyzer::h_ele_dEtaEleCl_propOut_barrel
TH1F * h_ele_dEtaEleCl_propOut_barrel
Definition: GsfElectronFakeAnalyzer.cc:301
GsfElectronFakeAnalyzer::nbindphimatch2D
int nbindphimatch2D
Definition: GsfElectronFakeAnalyzer.cc:427
GsfElectronFakeAnalyzer::phimin
double phimin
Definition: GsfElectronFakeAnalyzer.cc:388
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_all
TH1F * h_ele_dPhiCl_propOut_all
Definition: GsfElectronFakeAnalyzer.cc:108
GsfElectronFakeAnalyzer::h_ele_matchingObjectPt_matched
TH1F * h_ele_matchingObjectPt_matched
Definition: GsfElectronFakeAnalyzer.cc:83
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
GsfElectronFakeAnalyzer::h_ele_vertexP
TH1F * h_ele_vertexP
Definition: GsfElectronFakeAnalyzer.cc:129
GsfElectronFakeAnalyzer::seedPt
float seedPt[10]
Definition: GsfElectronFakeAnalyzer.cc:70
GsfElectronFakeAnalyzer::h_ele_tkSumPt_dr03
TH1F * h_ele_tkSumPt_dr03
Definition: GsfElectronFakeAnalyzer.cc:365
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObjectVsEta
TH2F * h_ele_PoPmatchingObjectVsEta
Definition: GsfElectronFakeAnalyzer.cc:197
GsfElectronFakeAnalyzer::h_ele_dPhiCl_propOut_barrel
TH1F * h_ele_dPhiCl_propOut_barrel
Definition: GsfElectronFakeAnalyzer.cc:292
edm::Event
Definition: Event.h:73
reco::GsfElectron::caloEnergy
float caloEnergy() const
Definition: GsfElectron.h:821
reco::GsfElectron::scSigmaIEtaIEta
float scSigmaIEtaIEta() const
Definition: GsfElectron.h:471
GsfElectronFakeAnalyzer::lhitsmax
double lhitsmax
Definition: GsfElectronFakeAnalyzer.cc:403
GsfElectronFakeAnalyzer::h_ele_dEtaScVsEta_propVtx
TH2F * h_ele_dEtaScVsEta_propVtx
Definition: GsfElectronFakeAnalyzer.cc:270
GsfElectronFakeAnalyzer::eopmax
double eopmax
Definition: GsfElectronFakeAnalyzer.cc:392
GsfElectronFakeAnalyzer::h_ele_eta_narrow
TH1F * h_ele_eta_narrow
Definition: GsfElectronFakeAnalyzer.cc:331
GsfElectronFakeAnalyzer::histSclSigIEtaIEta_barrel_
TH1F * histSclSigIEtaIEta_barrel_
Definition: GsfElectronFakeAnalyzer.cc:161
reco::GsfElectron::deltaPhiEleClusterTrackAtCalo
float deltaPhiEleClusterTrackAtCalo() const
Definition: GsfElectron.h:237
GsfElectronFakeAnalyzer::nbinmee
int nbinmee
Definition: GsfElectronFakeAnalyzer.cc:428
GsfElectronFakeAnalyzer::superclusterEta
float superclusterEta[10]
Definition: GsfElectronFakeAnalyzer.cc:69
dttmaxenums::R
Definition: DTTMax.h:29
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut
TH1F * h_ele_dEtaCl_propOut
Definition: GsfElectronFakeAnalyzer.cc:282
GsfElectronFakeAnalyzer::meemin
double meemin
Definition: GsfElectronFakeAnalyzer.cc:404
GsfElectronFakeAnalyzer::h_ele_PtinVsPtoutGolden_mean
TH2F * h_ele_PtinVsPtoutGolden_mean
Definition: GsfElectronFakeAnalyzer.cc:355
edm::InputTag
Definition: InputTag.h:15
GsfElectronFakeAnalyzer::type_
std::string type_
Definition: GsfElectronFakeAnalyzer.cc:378
GsfElectronFakeAnalyzer::h_ele_PoPmatchingObject_barrel
TH1F * h_ele_PoPmatchingObject_barrel
Definition: GsfElectronFakeAnalyzer.cc:200
reco::GsfElectron::dr03HcalDepth2TowerSumEt
float dr03HcalDepth2TowerSumEt() const
Definition: GsfElectron.h:532
GsfElectronFakeAnalyzer::nbineta2D
int nbineta2D
Definition: GsfElectronFakeAnalyzer.cc:415
reco::GsfElectron::dr03EcalRecHitSumEt
float dr03EcalRecHitSumEt() const
Definition: GsfElectron.h:530
GsfElectronFakeAnalyzer::h_ele_eta
TH1F * h_ele_eta
Definition: GsfElectronFakeAnalyzer.cc:328
GsfElectronFakeAnalyzer::h_ele_PhiMnPhimatchingObjectVsEta
TH2F * h_ele_PhiMnPhimatchingObjectVsEta
Definition: GsfElectronFakeAnalyzer.cc:208
GsfElectronFakeAnalyzer::h_ele_EoPout
TH1F * h_ele_EoPout
Definition: GsfElectronFakeAnalyzer.cc:245
reco::GsfElectron::dr04HcalDepth2TowerSumEt
float dr04HcalDepth2TowerSumEt() const
Definition: GsfElectron.h:544
GsfElectronFakeAnalyzer::histSclSigEtaEta_endcaps_
TH1F * histSclSigEtaEta_endcaps_
Definition: GsfElectronFakeAnalyzer.cc:159
GsfElectronFakeAnalyzer::h_ele_outerPVsEta_mode
TH2F * h_ele_outerPVsEta_mode
Definition: GsfElectronFakeAnalyzer.cc:221
GsfElectronFakeAnalyzer::fhitsmax
double fhitsmax
Definition: GsfElectronFakeAnalyzer.cc:402
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
GsfElectronFakeAnalyzer::histSclE2x5max_barrel_
TH1F * histSclE2x5max_barrel_
Definition: GsfElectronFakeAnalyzer.cc:167
ElectronSeed.h
GsfElectronFakeAnalyzer::beamSpot_
edm::InputTag beamSpot_
Definition: GsfElectronFakeAnalyzer.cc:377
GsfElectronFakeAnalyzer::h_ele_dEtaCl_propOut_barrel
TH1F * h_ele_dEtaCl_propOut_barrel
Definition: GsfElectronFakeAnalyzer.cc:283
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
GsfElectronFakeAnalyzer::histSclSigEtaEta_barrel_
TH1F * histSclSigEtaEta_barrel_
Definition: GsfElectronFakeAnalyzer.cc:158
GsfElectronFakeAnalyzer::h_ele_dEtaSc_propVtx_all_endcaps
TH1F * h_ele_dEtaSc_propVtx_all_endcaps
Definition: GsfElectronFakeAnalyzer.cc:101
GsfElectronFakeAnalyzer::h_ele_tkSumPt_dr04
TH1F * h_ele_tkSumPt_dr04
Definition: GsfElectronFakeAnalyzer.cc:369
GsfElectronFakeAnalyzer::h_ele_EtaMnEtamatchingObjectVsEta
TH2F * h_ele_EtaMnEtamatchingObjectVsEta
Definition: GsfElectronFakeAnalyzer.cc:203
GsfElectronFakeAnalyzer::h_ele_EseedOPVsPhi
TH2F * h_ele_EseedOPVsPhi
Definition: GsfElectronFakeAnalyzer.cc:243
GsfElectronFakeAnalyzer::histSclEn_
TH1F * histSclEn_
Definition: GsfElectronFakeAnalyzer.cc:148
GsfElectronFakeAnalyzer::histSclEtVsPhi_
TH2F * histSclEtVsPhi_
Definition: GsfElectronFakeAnalyzer.cc:153