#include <ClassBasedElectronID.h>
Definition at line 6 of file ClassBasedElectronID.h.
ClassBasedElectronID::ClassBasedElectronID |
( |
| ) |
|
|
inline |
ClassBasedElectronID::~ClassBasedElectronID |
( |
| ) |
|
|
inlineoverride |
Reimplemented from ElectronIDAlgo.
Definition at line 27 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, and relativeConstraints::value.
55 edm::LogError(
"ClassBasedElectronID") <<
"Error: unrecognized electron classification ";
59 bool useDeltaEtaIn =
true;
60 bool useSigmaIetaIeta =
true;
61 bool useHoverE =
true;
62 bool useEoverPOut =
true;
63 bool useDeltaPhiInCharge =
true;
68 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaEtaIn");
69 if (fabs(value) > maxcut[icut])
74 if (useSigmaIetaIeta) {
76 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"sigmaIetaIetaMax");
77 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"sigmaIetaIetaMin");
78 if (value < mincut[icut] || value > maxcut[icut])
86 if (value > maxcut[icut])
93 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMax");
94 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMin");
95 if (value < mincut[icut] || value > maxcut[icut])
100 if (useDeltaPhiInCharge) {
102 double value2 = electron->
charge();
103 double value = value1 * value2;
104 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiInChargeMax");
105 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiInChargeMin");
106 if (value < mincut[icut] || value > maxcut[icut])
Log< level::Error, false > LogError
float deltaEtaSuperClusterTrackAtVtx() const
float sigmaIetaIeta() const
float hadronicOverEm() const
float deltaPhiSuperClusterTrackAtVtx() const
float eSeedClusterOverPout() const
Classification classification() const
T getParameter(std::string const &) const
int charge() const final
electric charge
std::string ClassBasedElectronID::quality_ |
|
private |