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