33 throw cms::Exception(
"Configuration") <<
"Invalid electronQuality parameter in PTDElectronID: must be tight, medium or loose." ;
63 edm::LogError(
"PTDRElectronID") <<
"Error: unrecognized electron classification ";
72 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"EoverPInMax");
73 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"EoverPInMin");
74 if (value<mincut[icut] || value>maxcut[icut])
return 0.;
79 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaEtaIn");
80 if (fabs(value)>maxcut[icut])
return 0.;
85 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiIn");
86 if (fabs(value)>maxcut[icut])
return 0.;
92 if (value>maxcut[icut])
return 0.;
97 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMax");
98 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"EoverPOutMin");
99 if (value<mincut[icut] || value>maxcut[icut])
return 0.;
104 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"deltaPhiOut");
105 if (fabs(value)>maxcut[icut])
return 0.;
110 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"invEMinusInvP");
111 if (value>maxcut[icut])
return 0.;
116 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"bremFraction");
117 if (value<mincut[icut])
return 0.;
126 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"E9overE25");
127 if (fabs(value)<mincut[icut])
return 0.;
131 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"sigmaEtaEtaMax");
132 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"sigmaEtaEtaMin");
137 std::vector<double> mincut =
cuts_.
getParameter<std::vector<double> >(
"sigmaPhiPhiMin");
138 std::vector<double> maxcut =
cuts_.
getParameter<std::vector<double> >(
"sigmaPhiPhiMax");
float sigmaIphiIphi() const
T getParameter(std::string const &) const
float eSuperClusterOverP() const
std::vector< int > useHoverE_
math::XYZVectorF trackMomentumAtVtx() const
std::vector< int > useInvEMinusInvP_
std::vector< int > useDeltaPhiOut_
std::vector< int > useSigmaPhiPhi_
double result(const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &) override
float deltaEtaSuperClusterTrackAtVtx() const
float sigmaIetaIeta() const
float hadronicOverEm() const
std::vector< int > useEoverPIn_
float deltaPhiSeedClusterTrackAtCalo() const
math::XYZVectorF trackMomentumOut() const
float deltaPhiSuperClusterTrackAtVtx() const
float eSeedClusterOverPout() const
std::vector< int > useDeltaEtaIn_
std::vector< int > useEoverPOut_
std::vector< int > useSigmaEtaEta_
Classification classification() const
SuperClusterRef superCluster() const override
reference to a SuperCluster
std::vector< int > useBremFraction_
std::vector< int > useDeltaPhiIn_
std::vector< int > useE9overE25_
void setup(const edm::ParameterSet &conf) override
std::vector< int > acceptCracks_