Public Member Functions | |
double | discriminate (const PFTauRef &pfTau) |
PFRecoTauDiscriminationByCharge (const edm::ParameterSet &iConfig) | |
~PFRecoTauDiscriminationByCharge () | |
Private Attributes | |
uint32_t | chargeReq_ |
bool | oneOrThreeProng_ |
Definition at line 14 of file PFRecoTauDiscriminationByCharge.cc.
PFRecoTauDiscriminationByCharge::PFRecoTauDiscriminationByCharge | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 16 of file PFRecoTauDiscriminationByCharge.cc.
References edm::ParameterSet::getParameter().
:PFTauDiscriminationProducerBase(iConfig){ chargeReq_ = iConfig.getParameter<uint32_t>("AbsChargeReq"); oneOrThreeProng_ = iConfig.getParameter<bool>("ApplyOneOrThreeProngCut"); }
PFRecoTauDiscriminationByCharge::~PFRecoTauDiscriminationByCharge | ( | ) | [inline] |
Definition at line 20 of file PFRecoTauDiscriminationByCharge.cc.
{}
double PFRecoTauDiscriminationByCharge::discriminate | ( | const PFTauRef & | pfTau | ) |
Definition at line 27 of file PFRecoTauDiscriminationByCharge.cc.
References abs.
{ uint16_t nSigTk = thePFTauRef->signalPFChargedHadrCands().size(); bool chargeok = (std::abs(thePFTauRef->charge()) == int(chargeReq_)); bool oneOrThreeProngOK = ( (nSigTk==1) || (nSigTk==3) || !oneOrThreeProng_ ); return ( (chargeok && oneOrThreeProngOK) ? 1. : 0. ); }
uint32_t PFRecoTauDiscriminationByCharge::chargeReq_ [private] |
Definition at line 23 of file PFRecoTauDiscriminationByCharge.cc.
bool PFRecoTauDiscriminationByCharge::oneOrThreeProng_ [private] |
Definition at line 24 of file PFRecoTauDiscriminationByCharge.cc.