CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ElectronMcSignalValidatorMiniAOD Class Reference

#include <ElectronMcMiniAODSignalValidator.h>

Inheritance diagram for ElectronMcSignalValidatorMiniAOD:
ElectronDqmAnalyzerBase DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 ElectronMcSignalValidatorMiniAOD (const edm::ParameterSet &)
 
bool isAncestor (const reco::Candidate *ancestor, const reco::Candidate *particle)
 
 ~ElectronMcSignalValidatorMiniAOD () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 

Private Attributes

double deltaR2_
 
double deltaR_
 
double deta_max
 
double deta_min
 
int deta_nbin
 
int detamatch2D_nbin
 
double detamatch_max
 
double detamatch_min
 
int detamatch_nbin
 
double dphi_max
 
double dphi_min
 
int dphi_nbin
 
int dphimatch2D_nbin
 
double dphimatch_max
 
double dphimatch_min
 
int dphimatch_nbin
 
double ele_max
 
double ele_min
 
int ele_nbin
 
edm::EDGetTokenT< pat::ElectronCollectionelectronToken_
 
edm::EDGetTokenT< pat::ElectronCollectionelectronTokenEndcaps_
 
int eta2D_nbin
 
double eta_max
 
double eta_min
 
int eta_nbin
 
double fhits_max
 
int fhits_nbin
 
MonitorElementh1_ele_chargedHadronRelativeIso_mAOD
 
MonitorElementh1_ele_chargedHadronRelativeIso_mAOD_barrel
 
MonitorElementh1_ele_chargedHadronRelativeIso_mAOD_endcaps
 
MonitorElementh1_ele_dEtaSc_propVtx_mAOD
 
MonitorElementh1_ele_dEtaSc_propVtx_mAOD_barrel
 
MonitorElementh1_ele_dEtaSc_propVtx_mAOD_endcaps
 
MonitorElementh1_ele_dPhiCl_propOut_mAOD
 
MonitorElementh1_ele_dPhiCl_propOut_mAOD_barrel
 
MonitorElementh1_ele_dPhiCl_propOut_mAOD_endcaps
 
MonitorElementh1_ele_fbrem_mAOD
 
MonitorElementh1_ele_fbrem_mAOD_barrel
 
MonitorElementh1_ele_fbrem_mAOD_endcaps
 
MonitorElementh1_ele_HoE_mAOD
 
MonitorElementh1_ele_HoE_mAOD_barrel
 
MonitorElementh1_ele_HoE_mAOD_endcaps
 
MonitorElementh1_ele_mee_all
 
MonitorElementh1_ele_mee_os
 
MonitorElementh1_ele_neutralHadronRelativeIso_mAOD
 
MonitorElementh1_ele_neutralHadronRelativeIso_mAOD_barrel
 
MonitorElementh1_ele_neutralHadronRelativeIso_mAOD_endcaps
 
MonitorElementh1_ele_photonRelativeIso_mAOD
 
MonitorElementh1_ele_photonRelativeIso_mAOD_barrel
 
MonitorElementh1_ele_photonRelativeIso_mAOD_endcaps
 
MonitorElementh1_ele_vertexEta
 
MonitorElementh1_ele_vertexPt
 
MonitorElementh1_ele_vertexPt_nocut
 
MonitorElementh1_recEleNum
 
MonitorElementh1_scl_SigIEtaIEta_mAOD
 
MonitorElementh1_scl_SigIEtaIEta_mAOD_barrel
 
MonitorElementh1_scl_SigIEtaIEta_mAOD_endcaps
 
MonitorElementh2_ele_foundHitsVsEta
 
MonitorElementh2_ele_foundHitsVsEta_mAOD
 
MonitorElementh2_ele_PoPtrueVsEta
 
MonitorElementh2_ele_sigmaIetaIetaVsPt
 
double hoe_max
 
double hoe_min
 
int hoe_nbin
 
std::vector< int > matchingIDs_
 
std::vector< int > matchingMotherIDs_
 
double maxAbsEta_
 
double maxPt_
 
edm::EDGetTokenT< edm::View< reco::GenParticle > > mcTruthCollection_
 
double mee_max
 
double mee_min
 
int mee_nbin
 
std::string outputInternalPath_
 
edm::EDGetTokenT< edm::ValueMap< float > > pfSumChargedHadronPtTmp_
 
edm::EDGetTokenT< edm::ValueMap< float > > pfSumNeutralHadronEtTmp_
 
edm::EDGetTokenT< edm::ValueMap< float > > pfSumPhotonEtTmp_
 
int phi2D_nbin
 
double phi_max
 
double phi_min
 
int phi_nbin
 
double poptrue_max
 
double poptrue_min
 
int poptrue_nbin
 
int pt2D_nbin
 
float pt_
 
double pt_max
 
int pt_nbin
 
int pteff_nbin
 
bool set_EfficiencyFlag
 
bool set_StatOverflowFlag
 
int xyz_nbin
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from ElectronDqmAnalyzerBase
MonitorElementbookH1 (DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH1withSumw2 (DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH2 (DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
 
MonitorElementbookH2withSumw2 (DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
 
MonitorElementbookP1 (DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
 
MonitorElementcloneH1 (DQMStore::IBooker &iBooker, const std::string &name, MonitorElement *original, const std::string &title="")
 
MonitorElementcloneH1 (DQMStore::IBooker &iBooker, const std::string &name, const std::string &original, const std::string &title="")
 
 ElectronDqmAnalyzerBase (const edm::ParameterSet &conf)
 
void setBookEfficiencyFlag (const bool &)
 
void setBookIndex (short)
 
void setBookPrefix (const std::string &)
 
void setBookStatOverflowFlag (const bool &)
 
int verbosity ()
 
 ~ElectronDqmAnalyzerBase () override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 16 of file ElectronMcMiniAODSignalValidator.h.

Constructor & Destructor Documentation

◆ ElectronMcSignalValidatorMiniAOD()

ElectronMcSignalValidatorMiniAOD::ElectronMcSignalValidatorMiniAOD ( const edm::ParameterSet iConfig)
explicit

Definition at line 11 of file ElectronMcMiniAODSignalValidator.cc.

References deltaR2_, deltaR_, detamatch2D_nbin, detamatch_max, detamatch_min, detamatch_nbin, dphi_max, dphi_min, dphi_nbin, dphimatch2D_nbin, dphimatch_max, dphimatch_min, dphimatch_nbin, ele_max, ele_min, ele_nbin, electronToken_, electronTokenEndcaps_, eta2D_nbin, eta_max, eta_min, eta_nbin, fhits_max, fhits_nbin, edm::ParameterSet::getParameter(), h1_ele_chargedHadronRelativeIso_mAOD, h1_ele_chargedHadronRelativeIso_mAOD_barrel, h1_ele_chargedHadronRelativeIso_mAOD_endcaps, h1_ele_dEtaSc_propVtx_mAOD, h1_ele_dEtaSc_propVtx_mAOD_barrel, h1_ele_dEtaSc_propVtx_mAOD_endcaps, h1_ele_dPhiCl_propOut_mAOD, h1_ele_dPhiCl_propOut_mAOD_barrel, h1_ele_dPhiCl_propOut_mAOD_endcaps, h1_ele_fbrem_mAOD, h1_ele_fbrem_mAOD_barrel, h1_ele_fbrem_mAOD_endcaps, h1_ele_HoE_mAOD, h1_ele_HoE_mAOD_barrel, h1_ele_HoE_mAOD_endcaps, h1_ele_mee_all, h1_ele_mee_os, h1_ele_neutralHadronRelativeIso_mAOD, h1_ele_neutralHadronRelativeIso_mAOD_barrel, h1_ele_neutralHadronRelativeIso_mAOD_endcaps, h1_ele_photonRelativeIso_mAOD, h1_ele_photonRelativeIso_mAOD_barrel, h1_ele_photonRelativeIso_mAOD_endcaps, h1_ele_vertexEta, h1_ele_vertexPt, h1_ele_vertexPt_nocut, h1_recEleNum, h1_scl_SigIEtaIEta_mAOD, h1_scl_SigIEtaIEta_mAOD_barrel, h1_scl_SigIEtaIEta_mAOD_endcaps, h2_ele_foundHitsVsEta, h2_ele_foundHitsVsEta_mAOD, h2_ele_PoPtrueVsEta, h2_ele_sigmaIetaIetaVsPt, hoe_max, hoe_min, hoe_nbin, matchingIDs_, matchingMotherIDs_, maxAbsEta_, maxPt_, mcTruthCollection_, mee_max, mee_min, mee_nbin, outputInternalPath_, poptrue_max, poptrue_min, poptrue_nbin, pt2D_nbin, pt_max, pt_nbin, pteff_nbin, set_EfficiencyFlag, set_StatOverflowFlag, AlCaHLTBitMon_QueryRunRegistry::string, and xyz_nbin.

12  : ElectronDqmAnalyzerBase(iConfig) {
13  mcTruthCollection_ = consumes<edm::View<reco::GenParticle> >(
14  iConfig.getParameter<edm::InputTag>("mcTruthCollection")); // prunedGenParticles
16  consumes<pat::ElectronCollection>(iConfig.getParameter<edm::InputTag>("electrons")); // slimmedElectrons
18  consumes<pat::ElectronCollection>(iConfig.getParameter<edm::InputTag>("electrons_endcaps")); // slimmedElectrons
19 
20  edm::ParameterSet histosSet = iConfig.getParameter<edm::ParameterSet>("histosCfg");
21  edm::ParameterSet isolationSet = iConfig.getParameter<edm::ParameterSet>("isolationCfg");
22 
23  maxPt_ = iConfig.getParameter<double>("MaxPt");
24  maxAbsEta_ = iConfig.getParameter<double>("MaxAbsEta");
25  deltaR_ = iConfig.getParameter<double>("DeltaR");
27  matchingIDs_ = iConfig.getParameter<std::vector<int> >("MatchingID");
28  matchingMotherIDs_ = iConfig.getParameter<std::vector<int> >("MatchingMotherID");
29  outputInternalPath_ = iConfig.getParameter<std::string>("OutputFolderName");
30 
31  // histos bining and limits
32 
33  xyz_nbin = histosSet.getParameter<int>("Nbinxyz");
34 
35  pt_nbin = histosSet.getParameter<int>("Nbinpt");
36  pt2D_nbin = histosSet.getParameter<int>("Nbinpt2D");
37  pteff_nbin = histosSet.getParameter<int>("Nbinpteff");
38  pt_max = histosSet.getParameter<double>("Ptmax");
39 
40  fhits_nbin = histosSet.getParameter<int>("Nbinfhits");
41  fhits_max = histosSet.getParameter<double>("Fhitsmax");
42 
43  eta_nbin = histosSet.getParameter<int>("Nbineta");
44  eta2D_nbin = histosSet.getParameter<int>("Nbineta2D");
45  eta_min = histosSet.getParameter<double>("Etamin");
46  eta_max = histosSet.getParameter<double>("Etamax");
47 
48  detamatch_nbin = histosSet.getParameter<int>("Nbindetamatch");
49  detamatch2D_nbin = histosSet.getParameter<int>("Nbindetamatch2D");
50  detamatch_min = histosSet.getParameter<double>("Detamatchmin");
51  detamatch_max = histosSet.getParameter<double>("Detamatchmax");
52 
53  dphi_nbin = histosSet.getParameter<int>("Nbindphi");
54  dphi_min = histosSet.getParameter<double>("Dphimin");
55  dphi_max = histosSet.getParameter<double>("Dphimax");
56 
57  dphimatch_nbin = histosSet.getParameter<int>("Nbindphimatch");
58  dphimatch2D_nbin = histosSet.getParameter<int>("Nbindphimatch2D");
59  dphimatch_min = histosSet.getParameter<double>("Dphimatchmin");
60  dphimatch_max = histosSet.getParameter<double>("Dphimatchmax");
61 
62  hoe_nbin = histosSet.getParameter<int>("Nbinhoe");
63  hoe_min = histosSet.getParameter<double>("Hoemin");
64  hoe_max = histosSet.getParameter<double>("Hoemax");
65 
66  mee_nbin = histosSet.getParameter<int>("Nbinmee");
67  mee_min = histosSet.getParameter<double>("Meemin");
68  mee_max = histosSet.getParameter<double>("Meemax");
69 
70  poptrue_nbin = histosSet.getParameter<int>("Nbinpoptrue");
71  poptrue_min = histosSet.getParameter<double>("Poptruemin");
72  poptrue_max = histosSet.getParameter<double>("Poptruemax");
73 
74  set_EfficiencyFlag = histosSet.getParameter<bool>("EfficiencyFlag");
75  set_StatOverflowFlag = histosSet.getParameter<bool>("StatOverflowFlag");
76 
77  ele_nbin = histosSet.getParameter<int>("NbinELE");
78  ele_min = histosSet.getParameter<double>("ELE_min");
79  ele_max = histosSet.getParameter<double>("ELE_max");
80 
81  // so to please coverity...
82 
83  h1_recEleNum = nullptr;
84 
85  h1_ele_vertexPt = nullptr;
86  h1_ele_vertexEta = nullptr;
87  h1_ele_vertexPt_nocut = nullptr;
88 
89  h1_scl_SigIEtaIEta_mAOD = nullptr;
92 
93  h2_ele_foundHitsVsEta = nullptr;
95 
96  h2_ele_PoPtrueVsEta = nullptr;
97  h2_ele_sigmaIetaIetaVsPt = nullptr;
98 
99  h1_ele_HoE_mAOD = nullptr;
100  h1_ele_HoE_mAOD_barrel = nullptr;
101  h1_ele_HoE_mAOD_endcaps = nullptr;
102  h1_ele_mee_all = nullptr;
103  h1_ele_mee_os = nullptr;
104 
105  h1_ele_fbrem_mAOD = nullptr;
106  h1_ele_fbrem_mAOD_barrel = nullptr;
107  h1_ele_fbrem_mAOD_endcaps = nullptr;
108 
109  h1_ele_dEtaSc_propVtx_mAOD = nullptr;
112  h1_ele_dPhiCl_propOut_mAOD = nullptr;
115 
125 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< edm::View< reco::GenParticle > > mcTruthCollection_
ElectronDqmAnalyzerBase(const edm::ParameterSet &conf)
edm::EDGetTokenT< pat::ElectronCollection > electronTokenEndcaps_
edm::EDGetTokenT< pat::ElectronCollection > electronToken_

◆ ~ElectronMcSignalValidatorMiniAOD()

ElectronMcSignalValidatorMiniAOD::~ElectronMcSignalValidatorMiniAOD ( )
override

Definition at line 127 of file ElectronMcMiniAODSignalValidator.cc.

127 {}

Member Function Documentation

◆ analyze()

void ElectronMcSignalValidatorMiniAOD::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from ElectronDqmAnalyzerBase.

Definition at line 419 of file ElectronMcMiniAODSignalValidator.cc.

References funct::abs(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo(), HLTMuonOfflineAnalyzer_cfi::deltaR2, deltaR2_, pwdgSkimBPark_cfi::electrons, ElectronMcSignalValidatorMiniAOD_cfi::electrons_endcaps, electronToken_, electronTokenEndcaps_, PVValHelper::eta, reco::LeafCandidate::eta(), reco::GsfElectron::fbrem(), dqm::impl::MonitorElement::Fill(), AJJGenJetFilter_cfi::genParticles, pat::Electron::gsfTrack(), h1_ele_chargedHadronRelativeIso_mAOD, h1_ele_chargedHadronRelativeIso_mAOD_barrel, h1_ele_chargedHadronRelativeIso_mAOD_endcaps, h1_ele_dEtaSc_propVtx_mAOD, h1_ele_dEtaSc_propVtx_mAOD_barrel, h1_ele_dEtaSc_propVtx_mAOD_endcaps, h1_ele_dPhiCl_propOut_mAOD, h1_ele_dPhiCl_propOut_mAOD_barrel, h1_ele_dPhiCl_propOut_mAOD_endcaps, h1_ele_fbrem_mAOD, h1_ele_fbrem_mAOD_barrel, h1_ele_fbrem_mAOD_endcaps, h1_ele_HoE_mAOD, h1_ele_HoE_mAOD_barrel, h1_ele_HoE_mAOD_endcaps, h1_ele_mee_all, h1_ele_mee_os, h1_ele_neutralHadronRelativeIso_mAOD, h1_ele_neutralHadronRelativeIso_mAOD_barrel, h1_ele_neutralHadronRelativeIso_mAOD_endcaps, h1_ele_photonRelativeIso_mAOD, h1_ele_photonRelativeIso_mAOD_barrel, h1_ele_photonRelativeIso_mAOD_endcaps, h1_ele_vertexEta, h1_ele_vertexPt, h1_ele_vertexPt_nocut, h1_recEleNum, h1_scl_SigIEtaIEta_mAOD, h1_scl_SigIEtaIEta_mAOD_barrel, h1_scl_SigIEtaIEta_mAOD_endcaps, h2_ele_foundHitsVsEta, h2_ele_foundHitsVsEta_mAOD, h2_ele_PoPtrueVsEta, h2_ele_sigmaIetaIetaVsPt, reco::GsfElectron::hcalOverEcal(), mps_fire::i, iEvent, cuy::ii, reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), matchingMotherIDs_, maxAbsEta_, maxPt_, mcTruthCollection_, reco::Candidate::mother(), reco::Candidate::numberOfDaughters(), reco::LeafCandidate::p(), reco::GsfElectron::p4(), EgammaValidation_cff::pdgId, reco::Candidate::pdgId(), reco::GsfElectron::pfIsolationVariables(), reco::LeafCandidate::phi(), pi, reco::LeafCandidate::pt(), reco::GsfElectron::scSigmaIEtaIEta(), mathSSE::sqrt(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, and reco::GsfElectron::PflowIsolationVariables::sumPhotonEt.

419  {
420  // get collections
421  auto electrons = iEvent.getHandle(electronToken_);
423  auto genParticles = iEvent.getHandle(mcTruthCollection_);
424 
425  edm::Handle<pat::ElectronCollection> mergedElectrons;
426 
427  edm::LogInfo("ElectronMcSignalValidatorMiniAOD::analyze")
428  << "Treating event " << iEvent.id() << " with " << electrons.product()->size() << " electrons";
429  edm::LogInfo("ElectronMcSignalValidatorMiniAOD::analyze")
430  << "Treating event " << iEvent.id() << " with " << electrons_endcaps.product()->size()
431  << " multi slimmed electrons";
432 
433  h1_recEleNum->Fill((*electrons).size());
434 
435  //===============================================
436  // all rec electrons
437  //===============================================
438 
439  pat::Electron gsfElectron;
440  pat::ElectronCollection::const_iterator el1;
441  std::vector<pat::Electron>::const_iterator el3;
442  std::vector<pat::Electron>::const_iterator el4;
443 
444  //===============================================
445  // get a vector with EB & EE
446  //===============================================
447  std::vector<pat::Electron> localCollection;
448 
449  // looking for EB
450  for (el1 = electrons->begin(); el1 != electrons->end(); el1++) {
451  if (el1->isEB()) {
452  localCollection.push_back(*el1);
453  }
454  }
455 
456  // looking for EE
457  for (el1 = electrons_endcaps->begin(); el1 != electrons_endcaps->end(); el1++) {
458  if (el1->isEE()) {
459  localCollection.push_back(*el1);
460  }
461  }
462 
463  for (el3 = localCollection.begin(); el3 != localCollection.end(); el3++) {
464  for (el4 = el3 + 1; el4 != localCollection.end(); el4++) {
465  math::XYZTLorentzVector p12 = el3->p4() + el4->p4();
466  float mee2 = p12.Dot(p12);
467  h1_ele_mee_all->Fill(sqrt(mee2));
468  if (el3->charge() * el4->charge() < 0.) {
469  h1_ele_mee_os->Fill(sqrt(mee2));
470  }
471  }
472  }
473 
474  //===============================================
475  // charge mis-ID
476  //===============================================
477 
478  int mcNum = 0, gamNum = 0, eleNum = 0;
479  bool matchingMotherID;
480 
481  //===============================================
482  // association mc-reco
483  //===============================================
484 
485  for (size_t i = 0; i < genParticles->size(); i++) {
486  // number of mc particles
487  mcNum++;
488 
489  // counts photons
490  if ((*genParticles)[i].pdgId() == 22) {
491  gamNum++;
492  }
493 
494  // select requested mother matching gen particle
495  // always include single particle with no mother
496  const Candidate* mother = (*genParticles)[i].mother(0);
497  matchingMotherID = false;
498  for (unsigned int ii = 0; ii < matchingMotherIDs_.size(); ii++) {
499  if (mother == nullptr) {
500  matchingMotherID = true;
501  } else if (mother->pdgId() == matchingMotherIDs_[ii]) {
502  if (mother->numberOfDaughters() <= 2) {
503  matchingMotherID = true;
504  }
505  } // end of mother if test
506 
507  } // end of for loop
508  if (!matchingMotherID) {
509  continue;
510  }
511 
512  // electron preselection
513  if ((*genParticles)[i].pt() > maxPt_ || std::abs((*genParticles)[i].eta()) > maxAbsEta_) {
514  continue;
515  }
516  eleNum++;
517 
518  // find best matched electron
519  bool okGsfFound = false;
520  bool passMiniAODSelection = true;
521  double gsfOkRatio = 999999.;
522  bool isEBflag = false;
523  bool isEEflag = false;
524  pat::Electron bestGsfElectron;
525 
526  for (el3 = localCollection.begin(); el3 != localCollection.end(); el3++) {
527  double dphi = el3->phi() - (*genParticles)[i].phi();
528  if (std::abs(dphi) > CLHEP::pi) {
529  dphi = dphi < 0 ? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi;
530  }
531  double deltaR2 = (el3->eta() - (*genParticles)[i].eta()) * (el3->eta() - (*genParticles)[i].eta()) + dphi * dphi;
532  if (deltaR2 < deltaR2_) {
533  if ((((*genParticles)[i].pdgId() == 11) && (el3->charge() < 0.)) ||
534  (((*genParticles)[i].pdgId() == -11) && (el3->charge() > 0.))) {
535  double tmpGsfRatio = el3->p() / (*genParticles)[i].p();
536  if (std::abs(tmpGsfRatio - 1) < std::abs(gsfOkRatio - 1)) {
537  gsfOkRatio = tmpGsfRatio;
538  bestGsfElectron = *el3;
539  okGsfFound = true;
540  }
541  }
542  }
543  } // end *electrons loop
544 
545  if (okGsfFound) {
546  //------------------------------------
547  // analysis when the mc track is found
548  //------------------------------------
549  passMiniAODSelection = bestGsfElectron.pt() >= 5.;
550  double one_over_pt = 1. / bestGsfElectron.pt();
551  isEBflag = bestGsfElectron.isEB();
552  isEEflag = bestGsfElectron.isEE();
553 
554  // electron related distributions
555  h1_ele_vertexPt->Fill(bestGsfElectron.pt());
556  h1_ele_vertexEta->Fill(bestGsfElectron.eta());
557  if ((bestGsfElectron.scSigmaIEtaIEta() == 0.) && (bestGsfElectron.fbrem() == 0.))
558  h1_ele_vertexPt_nocut->Fill(bestGsfElectron.pt());
559  // track related distributions
560  h2_ele_foundHitsVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.gsfTrack()->numberOfValidHits());
561 
562  // generated distributions for matched electrons
563  h2_ele_PoPtrueVsEta->Fill(bestGsfElectron.eta(), bestGsfElectron.p() / (*genParticles)[i].p());
564 
565  if (passMiniAODSelection) { // Pt > 5.
566  h2_ele_sigmaIetaIetaVsPt->Fill(bestGsfElectron.pt(), bestGsfElectron.scSigmaIEtaIEta());
567 
568  // supercluster related distributions
569  h1_scl_SigIEtaIEta_mAOD->Fill(bestGsfElectron.scSigmaIEtaIEta());
572 
573  // track related distributions
574  h2_ele_foundHitsVsEta_mAOD->Fill(bestGsfElectron.eta(), bestGsfElectron.gsfTrack()->numberOfValidHits());
575 
576  // match distributions
577  h1_ele_HoE_mAOD->Fill(bestGsfElectron.hcalOverEcal());
578 
579  // fbrem
580  h1_ele_fbrem_mAOD->Fill(bestGsfElectron.fbrem());
581 
582  // -- pflow over pT
583 
585  one_over_pt);
587  one_over_pt);
588  h1_ele_photonRelativeIso_mAOD->Fill(bestGsfElectron.pfIsolationVariables().sumPhotonEt * one_over_pt);
589 
590  if (isEBflag) {
591  // supercluster related distributions
595  // match distributions
596  h1_ele_HoE_mAOD_barrel->Fill(bestGsfElectron.hcalOverEcal());
597  // fbrem
598  h1_ele_fbrem_mAOD_barrel->Fill(bestGsfElectron.fbrem());
599 
601  one_over_pt);
603  one_over_pt);
605  }
606 
607  // supercluster related distributions
608  else if (isEEflag) {
612  // match distributions
613  h1_ele_HoE_mAOD_endcaps->Fill(bestGsfElectron.hcalOverEcal());
614  // fbrem
615  h1_ele_fbrem_mAOD_endcaps->Fill(bestGsfElectron.fbrem());
617  one_over_pt);
619  one_over_pt);
621  }
622  }
623  }
624  //} // end loop i_elec
625  } // end loop size_t i
626 }
float scSigmaIEtaIEta() const
Definition: GsfElectron.h:496
double pt() const final
transverse momentum
float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:229
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
reco::GsfTrackRef gsfTrack() const override
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
const Double_t pi
bool isEB() const
Definition: GsfElectron.h:328
void Fill(long long x)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
edm::EDGetTokenT< edm::View< reco::GenParticle > > mcTruthCollection_
virtual size_type numberOfDaughters() const =0
number of daughters
const PflowIsolationVariables & pfIsolationVariables() const
Definition: GsfElectron.h:729
int iEvent
Definition: GenABIO.cc:224
double p() const final
magnitude of momentum vector
T sqrt(T t)
Definition: SSEVec.h:19
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Definition: GsfElectron.h:665
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
Definition: GsfElectron.h:664
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:217
float hcalOverEcal(const ShowerShape &ss, int depth) const
Definition: GsfElectron.h:425
edm::EDGetTokenT< pat::ElectronCollection > electronTokenEndcaps_
ii
Definition: cuy.py:589
virtual int pdgId() const =0
PDG identifier.
Log< level::Info, false > LogInfo
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:225
bool isEE() const
Definition: GsfElectron.h:329
Analysis-level electron class.
Definition: Electron.h:51
float fbrem() const
Definition: GsfElectron.h:809
edm::EDGetTokenT< pat::ElectronCollection > electronToken_
double phi() const final
momentum azimuthal angle
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
Definition: GsfElectron.h:663
double eta() const final
momentum pseudorapidity

◆ bookHistograms()

void ElectronMcSignalValidatorMiniAOD::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Reimplemented from ElectronDqmAnalyzerBase.

Definition at line 129 of file ElectronMcMiniAODSignalValidator.cc.

References ElectronDqmAnalyzerBase::bookH1(), ElectronDqmAnalyzerBase::bookH1withSumw2(), ElectronDqmAnalyzerBase::bookH2(), ElectronDqmAnalyzerBase::bookH2withSumw2(), detamatch_max, detamatch_min, detamatch_nbin, dphimatch_max, dphimatch_min, dphimatch_nbin, ele_max, ele_min, ele_nbin, eta2D_nbin, eta_max, eta_min, eta_nbin, fhits_max, fhits_nbin, h1_ele_chargedHadronRelativeIso_mAOD, h1_ele_chargedHadronRelativeIso_mAOD_barrel, h1_ele_chargedHadronRelativeIso_mAOD_endcaps, h1_ele_dEtaSc_propVtx_mAOD, h1_ele_dEtaSc_propVtx_mAOD_barrel, h1_ele_dEtaSc_propVtx_mAOD_endcaps, h1_ele_dPhiCl_propOut_mAOD, h1_ele_dPhiCl_propOut_mAOD_barrel, h1_ele_dPhiCl_propOut_mAOD_endcaps, h1_ele_fbrem_mAOD, h1_ele_fbrem_mAOD_barrel, h1_ele_fbrem_mAOD_endcaps, h1_ele_HoE_mAOD, h1_ele_HoE_mAOD_barrel, h1_ele_HoE_mAOD_endcaps, h1_ele_mee_all, h1_ele_mee_os, h1_ele_neutralHadronRelativeIso_mAOD, h1_ele_neutralHadronRelativeIso_mAOD_barrel, h1_ele_neutralHadronRelativeIso_mAOD_endcaps, h1_ele_photonRelativeIso_mAOD, h1_ele_photonRelativeIso_mAOD_barrel, h1_ele_photonRelativeIso_mAOD_endcaps, h1_ele_vertexEta, h1_ele_vertexPt, h1_ele_vertexPt_nocut, h1_recEleNum, h1_scl_SigIEtaIEta_mAOD, h1_scl_SigIEtaIEta_mAOD_barrel, h1_scl_SigIEtaIEta_mAOD_endcaps, h2_ele_foundHitsVsEta, h2_ele_foundHitsVsEta_mAOD, h2_ele_PoPtrueVsEta, h2_ele_sigmaIetaIetaVsPt, hoe_max, hoe_min, hoe_nbin, mee_max, mee_min, mee_nbin, outputInternalPath_, poptrue_max, poptrue_min, pt_max, pt_nbin, set_EfficiencyFlag, set_StatOverflowFlag, ElectronDqmAnalyzerBase::setBookEfficiencyFlag(), ElectronDqmAnalyzerBase::setBookIndex(), ElectronDqmAnalyzerBase::setBookPrefix(), ElectronDqmAnalyzerBase::setBookStatOverflowFlag(), and dqm::implementation::NavigatorBase::setCurrentFolder().

131  {
133 
134  setBookIndex(-1);
135  setBookPrefix("h");
138 
139  // rec event collections sizes
140  h1_recEleNum = bookH1(iBooker, "recEleNum", "# rec electrons", ele_nbin, ele_min, ele_max, "N_{ele}");
141  // matched electrons
142  setBookPrefix("h_mc");
143  setBookPrefix("h_ele");
145  bookH1withSumw2(iBooker, "vertexPt", "ele transverse momentum", pt_nbin, 0., pt_max, "p_{T vertex} (GeV/c)");
146  h1_ele_vertexEta = bookH1withSumw2(iBooker, "vertexEta", "ele momentum eta", eta_nbin, eta_min, eta_max, "#eta");
148  bookH1withSumw2(iBooker, "vertexPt_nocut", "pT of prunned electrons", pt_nbin, 0., 20., "p_{T vertex} (GeV/c)");
150  "PoPtrueVsEta",
151  "ele momentum / gen momentum vs eta",
152  eta2D_nbin,
153  eta_min,
154  eta_max,
155  50,
156  poptrue_min,
157  poptrue_max);
159  bookH2(iBooker, "sigmaIetaIetaVsPt", "SigmaIetaIeta vs pt", 100, 0., pt_max, 100, 0., 0.05);
160 
161  // all electrons
162  setBookPrefix("h_ele");
164  "mee_all",
165  "ele pairs invariant mass, all reco electrons",
166  mee_nbin,
167  mee_min,
168  mee_max,
169  "m_{ee} (GeV/c^{2})",
170  "Events",
171  "ELE_LOGY E1 P");
172  h1_ele_mee_os = bookH1withSumw2(iBooker,
173  "mee_os",
174  "ele pairs invariant mass, opp. sign",
175  mee_nbin,
176  mee_min,
177  mee_max,
178  "m_{e^{+}e^{-}} (GeV/c^{2})",
179  "Events",
180  "ELE_LOGY E1 P");
181 
182  // matched electron, superclusters
183  setBookPrefix("h_scl");
185  "SigIEtaIEta_mAOD",
186  "ele supercluster sigma ieta ieta",
187  100,
188  0.,
189  0.05,
190  "#sigma_{i#eta i#eta}",
191  "Events",
192  "ELE_LOGY E1 P");
194  "SigIEtaIEta_mAOD_barrel",
195  "ele supercluster sigma ieta ieta, barrel",
196  100,
197  0.,
198  0.05,
199  "#sigma_{i#eta i#eta}",
200  "Events",
201  "ELE_LOGY E1 P");
203  "SigIEtaIEta_mAOD_endcaps",
204  "ele supercluster sigma ieta ieta, endcaps",
205  100,
206  0.,
207  0.05,
208  "#sigma_{i#eta i#eta}",
209  "Events",
210  "ELE_LOGY E1 P");
211 
212  // matched electron, gsf tracks
213  setBookPrefix("h_ele");
214  h2_ele_foundHitsVsEta = bookH2(iBooker,
215  "foundHitsVsEta",
216  "ele track # found hits vs eta",
217  eta2D_nbin,
218  eta_min,
219  eta_max,
220  fhits_nbin,
221  0.,
222  fhits_max);
224  "foundHitsVsEta_mAOD",
225  "ele track # found hits vs eta",
226  eta2D_nbin,
227  eta_min,
228  eta_max,
229  fhits_nbin,
230  0.,
231  fhits_max);
232 
233  // matched electrons, matching
234  setBookPrefix("h_ele");
236  "HoE_mAOD",
237  "ele hadronic energy / em energy",
238  hoe_nbin,
239  hoe_min,
240  hoe_max,
241  "H/E",
242  "Events",
243  "ELE_LOGY E1 P");
245  "HoE_mAOD_barrel",
246  "ele hadronic energy / em energy, barrel",
247  hoe_nbin,
248  hoe_min,
249  hoe_max,
250  "H/E",
251  "Events",
252  "ELE_LOGY E1 P");
254  "HoE_mAOD_endcaps",
255  "ele hadronic energy / em energy, endcaps",
256  hoe_nbin,
257  hoe_min,
258  hoe_max,
259  "H/E",
260  "Events",
261  "ELE_LOGY E1 P");
263  "dEtaSc_propVtx_mAOD",
264  "ele #eta_{sc} - #eta_{tr}, prop from vertex",
268  "#eta_{sc} - #eta_{tr}",
269  "Events",
270  "ELE_LOGY E1 P");
272  "dEtaSc_propVtx_mAOD_barrel",
273  "ele #eta_{sc} - #eta_{tr}, prop from vertex, barrel",
277  "#eta_{sc} - #eta_{tr}",
278  "Events",
279  "ELE_LOGY E1 P");
281  "dEtaSc_propVtx_mAOD_endcaps",
282  "ele #eta_{sc} - #eta_{tr}, prop from vertex, endcaps",
286  "#eta_{sc} - #eta_{tr}",
287  "Events",
288  "ELE_LOGY E1 P");
290  "dPhiCl_propOut_mAOD",
291  "ele #phi_{cl} - #phi_{tr}, prop from outermost",
295  "#phi_{seedcl} - #phi_{tr} (rad)",
296  "Events",
297  "ELE_LOGY E1 P");
299  "dPhiCl_propOut_mAOD_barrel",
300  "ele #phi_{cl} - #phi_{tr}, prop from outermost, barrel",
304  "#phi_{seedcl} - #phi_{tr} (rad)",
305  "Events",
306  "ELE_LOGY E1 P");
308  "dPhiCl_propOut_mAOD_endcaps",
309  "ele #phi_{cl} - #phi_{tr}, prop from outermost, endcaps",
313  "#phi_{seedcl} - #phi_{tr} (rad)",
314  "Events",
315  "ELE_LOGY E1 P");
316 
317  // fbrem
319  iBooker, "fbrem_mAOD", "ele brem fraction, mode of GSF components", 100, 0., 1., "P_{in} - P_{out} / P_{in}");
321  "fbrem_mAOD_barrel",
322  "ele brem fraction for barrel, mode of GSF components",
323  100,
324  0.,
325  1.,
326  "P_{in} - P_{out} / P_{in}");
328  "fbrem_mAOD_endcaps",
329  "ele brem franction for endcaps, mode of GSF components",
330  100,
331  0.,
332  1.,
333  "P_{in} - P_{out} / P_{in}");
334 
335  // -- pflow over pT
337  "chargedHadronRelativeIso_mAOD",
338  "chargedHadronRelativeIso",
339  100,
340  0.0,
341  2.,
342  "chargedHadronRelativeIso",
343  "Events",
344  "ELE_LOGY E1 P");
346  "chargedHadronRelativeIso_mAOD_barrel",
347  "chargedHadronRelativeIso for barrel",
348  100,
349  0.0,
350  2.,
351  "chargedHadronRelativeIso_barrel",
352  "Events",
353  "ELE_LOGY E1 P");
355  "chargedHadronRelativeIso_mAOD_endcaps",
356  "chargedHadronRelativeIso for endcaps",
357  100,
358  0.0,
359  2.,
360  "chargedHadronRelativeIso_endcaps",
361  "Events",
362  "ELE_LOGY E1 P");
364  "neutralHadronRelativeIso_mAOD",
365  "neutralHadronRelativeIso",
366  100,
367  0.0,
368  2.,
369  "neutralHadronRelativeIso",
370  "Events",
371  "ELE_LOGY E1 P");
373  "neutralHadronRelativeIso_mAOD_barrel",
374  "neutralHadronRelativeIso for barrel",
375  100,
376  0.0,
377  2.,
378  "neutralHadronRelativeIso_barrel",
379  "Events",
380  "ELE_LOGY E1 P");
382  "neutralHadronRelativeIso_mAOD_endcaps",
383  "neutralHadronRelativeIso for endcaps",
384  100,
385  0.0,
386  2.,
387  "neutralHadronRelativeIso_endcaps",
388  "Events",
389  "ELE_LOGY E1 P");
391  "photonRelativeIso_mAOD",
392  "photonRelativeIso",
393  100,
394  0.0,
395  2.,
396  "photonRelativeIso",
397  "Events",
398  "ELE_LOGY E1 P");
400  "photonRelativeIso_mAOD_barrel",
401  "photonRelativeIso for barrel",
402  100,
403  0.0,
404  2.,
405  "photonRelativeIso_barrel",
406  "Events",
407  "ELE_LOGY E1 P");
409  "photonRelativeIso_mAOD_endcaps",
410  "photonRelativeIso for endcaps",
411  100,
412  0.0,
413  2.,
414  "photonRelativeIso_endcaps",
415  "Events",
416  "ELE_LOGY E1 P");
417 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * bookH1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
void setBookPrefix(const std::string &)
void setBookEfficiencyFlag(const bool &)
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * bookH2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * bookH1withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
void setBookStatOverflowFlag(const bool &)

◆ isAncestor()

bool ElectronMcSignalValidatorMiniAOD::isAncestor ( const reco::Candidate ancestor,
const reco::Candidate particle 
)

Member Data Documentation

◆ deltaR2_

double ElectronMcSignalValidatorMiniAOD::deltaR2_
private

Definition at line 38 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ deltaR_

double ElectronMcSignalValidatorMiniAOD::deltaR_
private

Definition at line 38 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ deta_max

double ElectronMcSignalValidatorMiniAOD::deta_max
private

Definition at line 58 of file ElectronMcMiniAODSignalValidator.h.

◆ deta_min

double ElectronMcSignalValidatorMiniAOD::deta_min
private

Definition at line 57 of file ElectronMcMiniAODSignalValidator.h.

◆ deta_nbin

int ElectronMcSignalValidatorMiniAOD::deta_nbin
private

Definition at line 56 of file ElectronMcMiniAODSignalValidator.h.

◆ detamatch2D_nbin

int ElectronMcSignalValidatorMiniAOD::detamatch2D_nbin
private

Definition at line 60 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ detamatch_max

double ElectronMcSignalValidatorMiniAOD::detamatch_max
private

◆ detamatch_min

double ElectronMcSignalValidatorMiniAOD::detamatch_min
private

◆ detamatch_nbin

int ElectronMcSignalValidatorMiniAOD::detamatch_nbin
private

◆ dphi_max

double ElectronMcSignalValidatorMiniAOD::dphi_max
private

Definition at line 69 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ dphi_min

double ElectronMcSignalValidatorMiniAOD::dphi_min
private

Definition at line 68 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ dphi_nbin

int ElectronMcSignalValidatorMiniAOD::dphi_nbin
private

Definition at line 67 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ dphimatch2D_nbin

int ElectronMcSignalValidatorMiniAOD::dphimatch2D_nbin
private

Definition at line 71 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ dphimatch_max

double ElectronMcSignalValidatorMiniAOD::dphimatch_max
private

◆ dphimatch_min

double ElectronMcSignalValidatorMiniAOD::dphimatch_min
private

◆ dphimatch_nbin

int ElectronMcSignalValidatorMiniAOD::dphimatch_nbin
private

◆ ele_max

double ElectronMcSignalValidatorMiniAOD::ele_max
private

◆ ele_min

double ElectronMcSignalValidatorMiniAOD::ele_min
private

◆ ele_nbin

int ElectronMcSignalValidatorMiniAOD::ele_nbin
private

◆ electronToken_

edm::EDGetTokenT<pat::ElectronCollection> ElectronMcSignalValidatorMiniAOD::electronToken_
private

Definition at line 28 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ electronTokenEndcaps_

edm::EDGetTokenT<pat::ElectronCollection> ElectronMcSignalValidatorMiniAOD::electronTokenEndcaps_
private

Definition at line 29 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ eta2D_nbin

int ElectronMcSignalValidatorMiniAOD::eta2D_nbin
private

◆ eta_max

double ElectronMcSignalValidatorMiniAOD::eta_max
private

◆ eta_min

double ElectronMcSignalValidatorMiniAOD::eta_min
private

◆ eta_nbin

int ElectronMcSignalValidatorMiniAOD::eta_nbin
private

◆ fhits_max

double ElectronMcSignalValidatorMiniAOD::fhits_max
private

◆ fhits_nbin

int ElectronMcSignalValidatorMiniAOD::fhits_nbin
private

◆ h1_ele_chargedHadronRelativeIso_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_chargedHadronRelativeIso_mAOD
private

◆ h1_ele_chargedHadronRelativeIso_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_chargedHadronRelativeIso_mAOD_barrel
private

◆ h1_ele_chargedHadronRelativeIso_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_chargedHadronRelativeIso_mAOD_endcaps
private

◆ h1_ele_dEtaSc_propVtx_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dEtaSc_propVtx_mAOD
private

◆ h1_ele_dEtaSc_propVtx_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dEtaSc_propVtx_mAOD_barrel
private

◆ h1_ele_dEtaSc_propVtx_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dEtaSc_propVtx_mAOD_endcaps
private

◆ h1_ele_dPhiCl_propOut_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dPhiCl_propOut_mAOD
private

◆ h1_ele_dPhiCl_propOut_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dPhiCl_propOut_mAOD_barrel
private

◆ h1_ele_dPhiCl_propOut_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_dPhiCl_propOut_mAOD_endcaps
private

◆ h1_ele_fbrem_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_fbrem_mAOD
private

◆ h1_ele_fbrem_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_fbrem_mAOD_barrel
private

◆ h1_ele_fbrem_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_fbrem_mAOD_endcaps
private

◆ h1_ele_HoE_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_HoE_mAOD
private

◆ h1_ele_HoE_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_HoE_mAOD_barrel
private

◆ h1_ele_HoE_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_HoE_mAOD_endcaps
private

◆ h1_ele_mee_all

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_mee_all
private

◆ h1_ele_mee_os

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_mee_os
private

◆ h1_ele_neutralHadronRelativeIso_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_neutralHadronRelativeIso_mAOD
private

◆ h1_ele_neutralHadronRelativeIso_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_neutralHadronRelativeIso_mAOD_barrel
private

◆ h1_ele_neutralHadronRelativeIso_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_neutralHadronRelativeIso_mAOD_endcaps
private

◆ h1_ele_photonRelativeIso_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_photonRelativeIso_mAOD
private

◆ h1_ele_photonRelativeIso_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_photonRelativeIso_mAOD_barrel
private

◆ h1_ele_photonRelativeIso_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_photonRelativeIso_mAOD_endcaps
private

◆ h1_ele_vertexEta

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_vertexEta
private

◆ h1_ele_vertexPt

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_vertexPt
private

◆ h1_ele_vertexPt_nocut

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_ele_vertexPt_nocut
private

◆ h1_recEleNum

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_recEleNum
private

◆ h1_scl_SigIEtaIEta_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_scl_SigIEtaIEta_mAOD
private

◆ h1_scl_SigIEtaIEta_mAOD_barrel

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_scl_SigIEtaIEta_mAOD_barrel
private

◆ h1_scl_SigIEtaIEta_mAOD_endcaps

MonitorElement* ElectronMcSignalValidatorMiniAOD::h1_scl_SigIEtaIEta_mAOD_endcaps
private

◆ h2_ele_foundHitsVsEta

MonitorElement* ElectronMcSignalValidatorMiniAOD::h2_ele_foundHitsVsEta
private

◆ h2_ele_foundHitsVsEta_mAOD

MonitorElement* ElectronMcSignalValidatorMiniAOD::h2_ele_foundHitsVsEta_mAOD
private

◆ h2_ele_PoPtrueVsEta

MonitorElement* ElectronMcSignalValidatorMiniAOD::h2_ele_PoPtrueVsEta
private

◆ h2_ele_sigmaIetaIetaVsPt

MonitorElement* ElectronMcSignalValidatorMiniAOD::h2_ele_sigmaIetaIetaVsPt
private

◆ hoe_max

double ElectronMcSignalValidatorMiniAOD::hoe_max
private

◆ hoe_min

double ElectronMcSignalValidatorMiniAOD::hoe_min
private

◆ hoe_nbin

int ElectronMcSignalValidatorMiniAOD::hoe_nbin
private

◆ matchingIDs_

std::vector<int> ElectronMcSignalValidatorMiniAOD::matchingIDs_
private

Definition at line 39 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ matchingMotherIDs_

std::vector<int> ElectronMcSignalValidatorMiniAOD::matchingMotherIDs_
private

Definition at line 40 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ maxAbsEta_

double ElectronMcSignalValidatorMiniAOD::maxAbsEta_
private

Definition at line 37 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ maxPt_

double ElectronMcSignalValidatorMiniAOD::maxPt_
private

Definition at line 36 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ mcTruthCollection_

edm::EDGetTokenT<edm::View<reco::GenParticle> > ElectronMcSignalValidatorMiniAOD::mcTruthCollection_
private

Definition at line 27 of file ElectronMcMiniAODSignalValidator.h.

Referenced by analyze(), and ElectronMcSignalValidatorMiniAOD().

◆ mee_max

double ElectronMcSignalValidatorMiniAOD::mee_max
private

◆ mee_min

double ElectronMcSignalValidatorMiniAOD::mee_min
private

◆ mee_nbin

int ElectronMcSignalValidatorMiniAOD::mee_nbin
private

◆ outputInternalPath_

std::string ElectronMcSignalValidatorMiniAOD::outputInternalPath_
private

◆ pfSumChargedHadronPtTmp_

edm::EDGetTokenT<edm::ValueMap<float> > ElectronMcSignalValidatorMiniAOD::pfSumChargedHadronPtTmp_
private

Definition at line 31 of file ElectronMcMiniAODSignalValidator.h.

◆ pfSumNeutralHadronEtTmp_

edm::EDGetTokenT<edm::ValueMap<float> > ElectronMcSignalValidatorMiniAOD::pfSumNeutralHadronEtTmp_
private

Definition at line 32 of file ElectronMcMiniAODSignalValidator.h.

◆ pfSumPhotonEtTmp_

edm::EDGetTokenT<edm::ValueMap<float> > ElectronMcSignalValidatorMiniAOD::pfSumPhotonEtTmp_
private

Definition at line 33 of file ElectronMcMiniAODSignalValidator.h.

◆ phi2D_nbin

int ElectronMcSignalValidatorMiniAOD::phi2D_nbin
private

Definition at line 64 of file ElectronMcMiniAODSignalValidator.h.

◆ phi_max

double ElectronMcSignalValidatorMiniAOD::phi_max
private

Definition at line 66 of file ElectronMcMiniAODSignalValidator.h.

◆ phi_min

double ElectronMcSignalValidatorMiniAOD::phi_min
private

Definition at line 65 of file ElectronMcMiniAODSignalValidator.h.

◆ phi_nbin

int ElectronMcSignalValidatorMiniAOD::phi_nbin
private

Definition at line 63 of file ElectronMcMiniAODSignalValidator.h.

◆ poptrue_max

double ElectronMcSignalValidatorMiniAOD::poptrue_max
private

◆ poptrue_min

double ElectronMcSignalValidatorMiniAOD::poptrue_min
private

◆ poptrue_nbin

int ElectronMcSignalValidatorMiniAOD::poptrue_nbin
private

Definition at line 80 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ pt2D_nbin

int ElectronMcSignalValidatorMiniAOD::pt2D_nbin
private

Definition at line 47 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ pt_

float ElectronMcSignalValidatorMiniAOD::pt_
private

Definition at line 34 of file ElectronMcMiniAODSignalValidator.h.

◆ pt_max

double ElectronMcSignalValidatorMiniAOD::pt_max
private

◆ pt_nbin

int ElectronMcSignalValidatorMiniAOD::pt_nbin
private

◆ pteff_nbin

int ElectronMcSignalValidatorMiniAOD::pteff_nbin
private

Definition at line 48 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().

◆ set_EfficiencyFlag

bool ElectronMcSignalValidatorMiniAOD::set_EfficiencyFlag
private

◆ set_StatOverflowFlag

bool ElectronMcSignalValidatorMiniAOD::set_StatOverflowFlag
private

◆ xyz_nbin

int ElectronMcSignalValidatorMiniAOD::xyz_nbin
private

Definition at line 45 of file ElectronMcMiniAODSignalValidator.h.

Referenced by ElectronMcSignalValidatorMiniAOD().