20 #include <TLorentzVector.h>
25 : _effectiveAreas((c.getParameter<edm::FileInPath>(
"effAreasConfigFile")).
fullPath())
115 throw cms::Exception(
"ValueError") <<
"Encountered invalid value for energy density rho.\n"
116 <<
"Value: " << rho <<
"\n"
117 <<
"Rho should be a real, positive number.\n";
123 else if (ID ==
"MEDIUM")
125 else if (ID ==
"LOOSE")
127 else if (ID ==
"VETO")
134 ? ele->deltaEtaSuperClusterTrackAtVtx() - ele->superCluster()->eta() + ele->superCluster()->seed()->eta()
146 const float iso = chad +
std::max(0.0, nhad + pho -
rho_ * eA);
float dEtaInSeed(const reco::GsfElectronPtr &ele)
const edm::EventSetup & c
const float getEffectiveArea(float eta) const
EffectiveAreas _effectiveAreas
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
bool passID(const reco::GsfElectronPtr &ele, edm::Handle< reco::BeamSpot > beamspot, edm::Handle< reco::ConversionCollection > conversions)
Abs< T >::type abs(const T &t)
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
ElectronIdentifier(const edm::ParameterSet &c)
bool isNonnull() const
Checks for non-null.
void setID(std::string ID)
float isolation(const reco::GsfElectronPtr &ele)
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
std::array< std::array< std::array< double, 2 >, 4 >, 8 > cuts_