34 std::unique_ptr<tau::RecoTauQualityCuts>
qcuts_;
58 const CandidatePtr leadingTrack = tau->leadChargedHadrCand();
63 qcuts_->setLeadTrack(*tau->leadChargedHadrCand());
65 for (
auto const& cand : tau->signalChargedHadrCands()) {
66 if (
qcuts_->filterCandRef(cand))
71 bool accepted =
false;
73 if (np == 1 || np == 3)
101 desc.
add<
bool>(
"BooleanOutput",
true);
103 desc.
add<
unsigned int>(
"MinN", 1);
104 desc.
add<
unsigned int>(
"MaxN", 0);
105 descriptions.
add(
"pfRecoTauDiscriminationByNProngs", desc);
bool isNonnull() const
Checks for non-null.
~PFRecoTauDiscriminationByNProngs() override
static void fillDescriptions(edm::ParameterSetDescription &descriptions)
Declare all parameters read from python config file.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
ParameterSet const & getParameterSet(ParameterSetID const &id)
std::unique_ptr< tau::RecoTauVertexAssociator > vertexAssociator_
double discriminate(const reco::PFTauRef &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool isNonnull() const
Checks for non-null.
void beginEvent(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
PFRecoTauDiscriminationByNProngs(const ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ParameterSet qualityCuts
std::unique_ptr< tau::RecoTauQualityCuts > qcuts_