15 chargedOnly_ = iConfig.
getParameter<
bool>(
"UseOnlyChargedHadrons");
16 minPtLeadObject_ = iConfig.
getParameter<
double>(
"MinPtLeadingObject");
19 double discriminate(
const PFTauRef& pfTau)
const override;
32 if( thePFTauRef->leadPFChargedHadrCand().
isNonnull() )
34 leadObjectPt = thePFTauRef->leadPFChargedHadrCand()->pt();
44 if( thePFTauRef->leadPFCand().
isNonnull() && thePFTauRef->leadPFChargedHadrCand().
isNonnull() )
46 leadObjectPt = thePFTauRef->leadPFCand()->pt();
50 return ( leadObjectPt > minPtLeadObject_ ? 1. : 0. );
T getParameter(std::string const &) const
bool isNonnull() const
Checks for non-null.
#define DEFINE_FWK_MODULE(type)
double discriminate(const PFTauRef &pfTau) const override
PFRecoTauDiscriminationByLeadingObjectPtCut(const edm::ParameterSet &iConfig)
~PFRecoTauDiscriminationByLeadingObjectPtCut()