#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 47 of file ElectronIdentifier.h.
ElectronIdentifier::ElectronIdentifier | ( | const edm::ParameterSet & | c | ) |
Definition at line 24 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 128 of file ElectronIdentifier.cc.
References reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), edm::Ref< C, T, F >::isNonnull(), SiStripPI::max, and reco::GsfElectron::superCluster().
Referenced by passID().
float ElectronIdentifier::isolation | ( | const reco::GsfElectronPtr & | ele | ) |
Definition at line 132 of file ElectronIdentifier.cc.
References _effectiveAreas, EffectiveAreas::getEffectiveArea(), SiStripPI::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 149 of file ElectronIdentifier.cc.
References funct::abs(), BARREL, 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::BeamSpot::position(), reco::LeafCandidate::pt(), SIGMAIETA, and reco::GsfElectron::superCluster().
Referenced by ZCounting::analyzeElectrons().
void ElectronIdentifier::setID | ( | std::string | ID | ) |
Definition at line 121 of file ElectronIdentifier.cc.
References ID_, LOOSE, MEDIUM, TIGHT, and VETO.
Referenced by ZCounting::ZCounting().
void ElectronIdentifier::setRho | ( | double | rho | ) |
Definition at line 111 of file ElectronIdentifier.cc.
References Exception, rho, and rho_.
Referenced by ZCounting::analyzeElectrons().
|
private |
Definition at line 61 of file ElectronIdentifier.h.
Referenced by isolation().
|
private |
Definition at line 59 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), and passID().
|
private |
Definition at line 58 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), passID(), and setID().
|
private |
Definition at line 57 of file ElectronIdentifier.h.
Referenced by ElectronIdentifier(), isolation(), and setRho().