17 chargeReq_ = iConfig.
getParameter<uint32_t>(
"AbsChargeReq");
18 oneOrThreeProng_ = iConfig.
getParameter<
bool>(
"ApplyOneOrThreeProngCut");
21 double discriminate(
const PFTauRef& pfTau)
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)
~PFRecoTauDiscriminationByCharge()
Abs< T >::type abs(const T &t)
PFRecoTauDiscriminationByCharge(const edm::ParameterSet &iConfig)
double discriminate(const PFTauRef &pfTau) override