17 chargeReq_ = iConfig.
getParameter<uint32_t>(
"AbsChargeReq");
18 oneOrThreeProng_ = iConfig.
getParameter<
bool>(
"ApplyOneOrThreeProngCut");
21 double discriminate(
const PFTauRef& pfTau)
const override;
29 uint16_t nSigTk = thePFTauRef->signalPFChargedHadrCands().size();
30 bool chargeok = (
std::abs(thePFTauRef->charge()) ==
int(chargeReq_));
31 bool oneOrThreeProngOK = ( (nSigTk==1) || (nSigTk==3) || !oneOrThreeProng_ );
33 return ( (chargeok && oneOrThreeProngOK) ? 1. : 0. );
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
~PFRecoTauDiscriminationByCharge() override
double discriminate(const PFTauRef &pfTau) const override
PFRecoTauDiscriminationByCharge(const edm::ParameterSet &iConfig)