17 chargeReq_ = iConfig.
getParameter<uint32_t>(
"AbsChargeReq");
21 ~CaloRecoTauDiscriminationByCharge(){}
25 bool oneOrThreeProng_;
28 double CaloRecoTauDiscriminationByCharge::discriminate(
30 uint16_t nSigTk = theTauRef->signalTracks().size();
31 bool chargeok = (
abs(theTauRef->charge()) ==
int(chargeReq_));
32 bool oneOrThreeProngOK = ( (nSigTk==1) || (nSigTk==3) || !oneOrThreeProng_ );
34 return ( (chargeok && oneOrThreeProngOK) ? 1. : 0. );
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
virtual double discriminate(const TauRef &tau) const =0