CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
lowptgsfeleid::Features Class Reference

#include <LowPtGsfElectronIDHeavyObjectCache.h>

Public Member Functions

std::vector< float > get ()
 
void set (const reco::GsfElectronRef &ele, double rho)
 
void set (const reco::GsfElectron &ele, double rho)
 

Public Attributes

float brem_frac_ = -1.
 
float ele_pt_ = -1.
 
float gsf_chi2red_ = -1.
 
float gsf_nhits_ = -1.
 
float match_eclu_EoverP_ = -1.
 
float match_SC_dEta_ = -1.
 
float match_SC_dPhi_ = -1.
 
float match_SC_EoverP_ = -1.
 
float match_seed_dEta_ = -1.
 
float rho_ = -1.
 
float sc_E_ = -1.
 
float sc_eta_ = -1.
 
float sc_etaWidth_ = -1.
 
float sc_phiWidth_ = -1.
 
float shape_full5x5_circularity_ = -1.
 
float shape_full5x5_HoverE_ = -1.
 
float shape_full5x5_r9_ = -1.
 
float shape_full5x5_sigmaIetaIeta_ = -1.
 
float shape_full5x5_sigmaIphiIphi_ = -1.
 
float trk_chi2red_ = -1.
 
float trk_nhits_ = -1.
 
float trk_p_ = -1.
 

Detailed Description

Definition at line 16 of file LowPtGsfElectronIDHeavyObjectCache.h.

Member Function Documentation

std::vector< float > lowptgsfeleid::Features::get ( )

Definition at line 17 of file LowPtGsfElectronIDHeavyObjectCache.cc.

References brem_frac_, ele_pt_, gsf_chi2red_, gsf_nhits_, match_eclu_EoverP_, match_SC_dEta_, match_SC_dPhi_, match_SC_EoverP_, match_seed_dEta_, convertSQLitetoXML_cfg::output, rho_, sc_E_, sc_eta_, sc_etaWidth_, sc_phiWidth_, shape_full5x5_circularity_, shape_full5x5_HoverE_, shape_full5x5_r9_, shape_full5x5_sigmaIetaIeta_, shape_full5x5_sigmaIphiIphi_, trk_chi2red_, trk_nhits_, and trk_p_.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), LowPtGsfElectronIDProducer::eval(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

17  {
18  std::vector<float> output = {
19  rho_,
20  ele_pt_,
21  sc_eta_,
29  trk_nhits_,
32  brem_frac_,
33  gsf_nhits_,
39  sc_E_,
40  trk_p_,
41  };
42  return output;
43  }
void lowptgsfeleid::Features::set ( const reco::GsfElectronRef ele,
double  rho 
)
inline

Definition at line 48 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by LowPtGsfElectronIDProducer::eval().

48 { set(*ele, rho); }
void lowptgsfeleid::Features::set ( const reco::GsfElectron ele,
double  rho 
)

Definition at line 47 of file LowPtGsfElectronIDHeavyObjectCache.cc.

References brem_frac_, reco::GsfElectron::core(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::ecalEnergy(), ele_pt_, reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), objects.autophobj::float, reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e5x5(), reco::GsfElectron::full5x5_hcalOverEcal(), reco::GsfElectron::full5x5_r9(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::full5x5_sigmaIphiIphi(), ntupleEnum::gsf, gsf_chi2red_, gsf_nhits_, edm::Ref< C, T, F >::isNonnull(), match_eclu_EoverP_, match_SC_dEta_, match_SC_dPhi_, match_SC_EoverP_, match_seed_dEta_, reco::LeafCandidate::p(), reco::LeafCandidate::pt(), rho_, SimDataFormats::CaloAnalysis::sc, sc_E_, sc_eta_, sc_etaWidth_, sc_phiWidth_, shape_full5x5_circularity_, shape_full5x5_HoverE_, shape_full5x5_r9_, shape_full5x5_sigmaIetaIeta_, shape_full5x5_sigmaIphiIphi_, trk_chi2red_, trk_nhits_, and trk_p_.

47  {
48 
49  // KF tracks
50  if ( ele.core().isNonnull() ) {
51  reco::TrackRef trk = ele.core()->ctfTrack(); //@@ is this what we want?!
52  if ( trk.isNonnull() ) {
53  trk_p_ = float(trk->p());
54  trk_nhits_ = float(trk->found());
55  trk_chi2red_ = float(trk->normalizedChi2());
56  }
57  }
58 
59  // GSF tracks
60  if ( ele.core().isNonnull() ) {
61  reco::GsfTrackRef gsf = ele.core()->gsfTrack();
62  if ( gsf.isNonnull() ) {
63  gsf_nhits_ = gsf->found();
64  gsf_chi2red_ = gsf->normalizedChi2();
65  }
66  }
67 
68  // Super clusters
69  if ( ele.core().isNonnull() ) {
70  reco::SuperClusterRef sc = ele.core()->superCluster();
71  if ( sc.isNonnull() ) {
72  sc_E_ = sc->energy();
73  sc_eta_ = sc->eta();
74  sc_etaWidth_ = sc->etaWidth();
75  sc_phiWidth_ = sc->phiWidth();
76  }
77  }
78 
79  // Track-cluster matching
81  match_eclu_EoverP_ = (1./ele.ecalEnergy()) - (1./ele.p());
85 
86  // Shower shape vars
92 
93  // Misc
94  rho_ = rho;
95  brem_frac_ = ele.fbrem();
96  ele_pt_ = ele.pt();
97 
98  };
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:251
float eSuperClusterOverP() const
Definition: GsfElectron.h:249
float full5x5_e5x5() const
Definition: GsfElectron.h:466
float full5x5_e1x5() const
Definition: GsfElectron.h:464
float full5x5_sigmaIphiIphi() const
Definition: GsfElectron.h:463
double pt() const final
transverse momentum
float fbrem() const
Definition: GsfElectron.h:772
float full5x5_sigmaIetaIeta() const
Definition: GsfElectron.h:462
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:253
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:256
double p() const final
magnitude of momentum vector
float full5x5_hcalOverEcal() const
Definition: GsfElectron.h:470
float ecalEnergy() const
Definition: GsfElectron.h:860
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
float full5x5_r9() const
Definition: GsfElectron.h:467
float deltaEtaSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:254

Member Data Documentation

float lowptgsfeleid::Features::brem_frac_ = -1.

Definition at line 44 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::ele_pt_ = -1.

Definition at line 45 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::gsf_chi2red_ = -1.

Definition at line 24 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::gsf_nhits_ = -1.

Definition at line 23 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::match_eclu_EoverP_ = -1.

Definition at line 32 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::match_SC_dEta_ = -1.

Definition at line 34 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::match_SC_dPhi_ = -1.

Definition at line 35 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::match_SC_EoverP_ = -1.

Definition at line 33 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::match_seed_dEta_ = -1.

Definition at line 31 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::rho_ = -1.

Definition at line 43 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::sc_E_ = -1.

Definition at line 26 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::sc_eta_ = -1.

Definition at line 27 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::sc_etaWidth_ = -1.

Definition at line 28 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::sc_phiWidth_ = -1.

Definition at line 29 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::shape_full5x5_circularity_ = -1.

Definition at line 41 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::shape_full5x5_HoverE_ = -1.

Definition at line 39 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::shape_full5x5_r9_ = -1.

Definition at line 40 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::shape_full5x5_sigmaIetaIeta_ = -1.

Definition at line 37 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::shape_full5x5_sigmaIphiIphi_ = -1.

Definition at line 38 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::trk_chi2red_ = -1.

Definition at line 21 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::trk_nhits_ = -1.

Definition at line 20 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().

float lowptgsfeleid::Features::trk_p_ = -1.

Definition at line 19 of file LowPtGsfElectronIDHeavyObjectCache.h.

Referenced by get(), and set().