Reimplemented from ElectronIDAlgo.
Definition at line 29 of file ClassBasedElectronID.cc.
References reco::GsfElectron::BIGBREM, reco::LeafCandidate::charge(), reco::GsfElectron::classification(), cuts_, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::eSeedClusterOverPout(), reco::GsfElectron::GAP, edm::ParameterSet::getParameter(), reco::GsfElectron::GOLDEN, reco::GsfElectron::hadronicOverEm(), reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), reco::GsfElectron::SHOWERING, reco::GsfElectron::sigmaIetaIeta(), reco::GsfElectron::UNKNOWN, electronIdCutBasedClasses_cfi::useDeltaEtaIn, electronIdCutBasedClasses_cfi::useEoverPOut, electronIdCutBasedClasses_cfi::useHoverE, hiDetachedQuadStep_cff::value1, and hiDetachedQuadStep_cff::value2.
Referenced by ~ClassBasedElectronID().
54 edm::LogError(
"ClassBasedElectronID") <<
"Error: unrecognized electron classification ";
59 bool useSigmaIetaIeta =
true;
62 bool useDeltaPhiInCharge =
true;
67 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaEtaIn");
68 if (fabs(value)>maxcut[icut])
return 0.;
72 if(useSigmaIetaIeta) {
74 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"sigmaIetaIetaMax");
75 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"sigmaIetaIetaMin");
76 if(value<mincut[icut] || value>maxcut[icut])
return 0.;
83 if (value>maxcut[icut])
return 0.;
89 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMax");
90 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMin");
91 if (value<mincut[icut] || value>maxcut[icut])
return 0.;
95 if (useDeltaPhiInCharge) {
98 double value = value1*
value2;
99 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiInChargeMax");
100 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiInChargeMin");
101 if (value<mincut[icut] || value>maxcut[icut])
return 0.;
T getParameter(std::string const &) const
int charge() const final
electric charge
float deltaEtaSuperClusterTrackAtVtx() const
float sigmaIetaIeta() const
float hadronicOverEm() const
float deltaPhiSuperClusterTrackAtVtx() const
float eSeedClusterOverPout() const
Classification classification() const