18 chargedOnly_ = iConfig.
getParameter<
bool>(
"UseOnlyChargedHadrons");
19 minPtLeadObject_ = iConfig.
getParameter<
double>(
"MinPtLeadingObject");
22 double discriminate(
const PFTauRef& pfTau)
const override;
35 if (thePFTauRef->leadChargedHadrCand().
isNonnull()) {
44 if (thePFTauRef->leadCand().
isNonnull() && thePFTauRef->leadChargedHadrCand().
isNonnull()) {
55 desc.add<
double>(
"MinPtLeadingObject", 5.0);
61 desc.add<
bool>(
"UseOnlyChargedHadrons",
false);
63 descriptions.
add(
"pfRecoTauDiscriminationByLeadingObjectPtCut",
desc);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
bool isNonnull() const
Checks for non-null.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
PFRecoTauDiscriminationByLeadingObjectPtCut(const edm::ParameterSet &iConfig)
double discriminate(const PFTauRef &pfTau) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~PFRecoTauDiscriminationByLeadingObjectPtCut() override