15 chargedOnly_ = iConfig.
getParameter<
bool>(
"UseOnlyChargedHadrons");
16 minPtLeadObject_ = iConfig.
getParameter<
double>(
"MinPtLeadingObject");
19 double discriminate(
const PFTauRef& pfTau);
27 double leadObjectPt = -1.;
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
#define DEFINE_FWK_MODULE(type)
double discriminate(const PFTauRef &pfTau)
bool isNonnull() const
Checks for non-null.
PFRecoTauDiscriminationByLeadingObjectPtCut(const edm::ParameterSet &iConfig)
~PFRecoTauDiscriminationByLeadingObjectPtCut()