50 const float getEffectiveArea(
float eta)
const;
51 void printEffectiveAreas()
const;
78 printf(
" eta_min eta_max effective area\n");
81 printf(
" %8.4f %8.4f %8.5f\n",
82 absEtaMin_[iEta], absEtaMax_[iEta],
83 effectiveAreaValues_[iEta]);
92 if(
std::abs(eta) >= absEtaMin_[iEta]
93 &&
std::abs(eta) < absEtaMax_[iEta] ){
94 effArea = effectiveAreaValues_[iEta];
104 theRhoToken(iC.consumes <double> (cfg.getParameter<
edm::InputTag>(
"rho")))
112 missHits = eleIDWP.getParameter<std::vector<int> >(
"missingHitsCut");
113 sigmaIEtaIEtaCut= eleIDWP.getParameter<std::vector<double> >(
"full5x5_sigmaIEtaIEtaCut");
114 dEtaInSeedCut = eleIDWP.getParameter<std::vector<double> >(
"dEtaInSeedCut");
115 dPhiInCut = eleIDWP.getParameter<std::vector<double> >(
"dPhiInCut");
116 hOverECut = eleIDWP.getParameter<std::vector<double> >(
"hOverECut");
117 relCombIso = eleIDWP.getParameter<std::vector<double> >(
"relCombIsolationWithEACut");
118 EInvMinusPInv = eleIDWP.getParameter<std::vector<double> >(
"EInverseMinusPInverseCut");
131 float pt_e = el.
pt();
137 if (abseta> 1.479)
return false;
141 if (abseta< 1.479)
return false;
142 if (abseta>=2.5 )
return false;
156 const float ecal_energy_inverse = 1.0/el.
ecalEnergy();
const PflowIsolationVariables & pfIsolationVariables() const
T getParameter(std::string const &) const
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
float eSuperClusterOverP() const
vector< double > EInvMinusPInv
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > absEtaMax_
#define EVENTSETUP_STD_INIT(SELECTOR)
vector< double > dEtaInSeedCut
std::vector< double > effectiveAreaValues_
double pt() const final
transverse momentum
bool operator()(const reco::GsfElectron &) const
float full5x5_sigmaIetaIeta() const
#define DEFINE_FWK_MODULE(type)
SingleObjectSelector< edm::View< reco::GsfElectron >, ZElectronsSelector > ZElectronsSelectorAndSkim
float hadronicOverEm() const
edm::EDGetTokenT< double > theRhoToken
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
float deltaPhiSuperClusterTrackAtVtx() const
Abs< T >::type abs(const T &t)
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
T const * get() const
Returns C++ pointer to the item.
float deltaEtaSeedClusterTrackAtVtx() const
vector< double > relCombIso
T const * product() const
edm::Handle< double > _rhoHandle
void newEvent(const edm::Event &, const edm::EventSetup &)
void printEffectiveAreas() const
edm::ParameterSet eleIDWP
static int position[264][3]
SuperClusterRef superCluster() const override
reference to a SuperCluster
vector< double > dPhiInCut
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
std::vector< double > absEtaMin_
edm::EDGetTokenT< reco::GsfElectronCollection > theGsfEToken
const float getEffectiveArea(float eta) const
vector< double > hOverECut
ZElectronsSelector(const edm::ParameterSet &, edm::ConsumesCollector &iC)
vector< double > sigmaIEtaIEtaCut