#include <ElectronIdentifier.h>
Public Member Functions | |
float | dEtaInSeed (const reco::GsfElectronPtr &ele) |
ElectronIdentifier (const edm::ParameterSet &c) | |
float | isolation (const reco::GsfElectronPtr &ele) |
bool | passID (const reco::GsfElectronPtr &ele, edm::Handle< reco::BeamSpot > beamspot, edm::Handle< reco::ConversionCollection > conversions) |
void | setID (std::string ID) |
void | setRho (double rho) |
Private Attributes | |
EffectiveAreas | _effectiveAreas |
std::array< std::array< std::array< double, 2 >, 4 >, 8 > | cuts_ |
int | ID_ |
double | rho_ |
Definition at line 39 of file ElectronIdentifier.h.
ElectronIdentifier::ElectronIdentifier | ( | const edm::ParameterSet & | c | ) |
Definition at line 18 of file ElectronIdentifier.cc.
References BARREL, CONVERSION, cuts_, DETAINSEED, DPHIIN, ENDCAP, HOVERE, ID_, ISO, LOOSE, MEDIUM, MISSINGHITS, ONEOVERE, rho_, SIGMAIETA, TIGHT, and VETO.
float ElectronIdentifier::dEtaInSeed | ( | const reco::GsfElectronPtr & | ele | ) |
Definition at line 126 of file ElectronIdentifier.cc.
References reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), edm::Ref< C, T, F >::isNonnull(), WZElectronSkims53X_cff::max, and reco::GsfElectron::superCluster().
Referenced by passID().
float ElectronIdentifier::isolation | ( | const reco::GsfElectronPtr & | ele | ) |
Definition at line 131 of file ElectronIdentifier.cc.
References _effectiveAreas, EffectiveAreas::getEffectiveArea(), genparticles_cff::iso, WZElectronSkims53X_cff::max, reco::GsfElectron::pfIsolationVariables(), rho_, reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, and reco::GsfElectron::superCluster().
Referenced by passID().
bool ElectronIdentifier::passID | ( | const reco::GsfElectronPtr & | ele, |
edm::Handle< reco::BeamSpot > | beamspot, | ||
edm::Handle< reco::ConversionCollection > | conversions | ||
) |
Definition at line 147 of file ElectronIdentifier.cc.
References funct::abs(), BARREL, pwdgSkimBPark_cfi::conversions, cuts_, reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), DETAINSEED, dEtaInSeed(), DPHIIN, reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), ConversionTools::hasMatchedConversion(), HOVERE, ID_, ISO, isolation(), reco::HitPattern::MISSING_INNER_HITS, MISSINGHITS, ONEOVERE, reco::LeafCandidate::pt(), nano_mu_digi_cff::region, SIGMAIETA, and reco::GsfElectron::superCluster().
Referenced by ZCountingElectrons::analyze().
void ElectronIdentifier::setID | ( | std::string | ID | ) |
Definition at line 114 of file ElectronIdentifier.cc.
References ID_, LOOSE, MEDIUM, TIGHT, and VETO.
Referenced by ZCountingElectrons::ZCountingElectrons().
void ElectronIdentifier::setRho | ( | double | rho | ) |
Definition at line 105 of file ElectronIdentifier.cc.
References Exception, rho, and rho_.
Referenced by ZCountingElectrons::analyze().
|
private |
Definition at line 56 of file ElectronIdentifier.h.
Referenced by isolation().
|
private |
Definition at line 54 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), and passID().
|
private |
Definition at line 53 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), passID(), and setID().
|
private |
Definition at line 52 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), isolation(), and setRho().