20 minPtLeadTrack_ = iConfig.
getParameter<
double>(
"MinPtLeadingTrack");
23 double discriminate(
const CaloTauRef& theCaloTauRef)
const override;
33 double leadTrackPt_ = -1;
35 if( theCaloTauRef->leadTrack().
isNonnull() )
37 leadTrackPt_ = theCaloTauRef->leadTrack()->pt();
40 return ( (leadTrackPt_ > minPtLeadTrack_) ? 1. : 0. );
47 desc.
add<
double>(
"MinPtLeadingTrack", 5.0);
54 leadTrack.
add<
double>(
"cut");
60 descriptions.
add(
"caloRecoTauDiscriminationByLeadingTrackPtCut", desc);
T getParameter(std::string const &) const
bool isNonnull() const
Checks for non-null.
CaloRecoTauDiscriminationByLeadingTrackPtCut(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
~CaloRecoTauDiscriminationByLeadingTrackPtCut() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
double discriminate(const CaloTauRef &theCaloTauRef) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)