5 #include <boost/foreach.hpp> 28 std::auto_ptr<tau::RecoTauQualityCuts>
qcuts_;
60 qcuts_->setLeadTrack(tau->leadPFChargedHadrCand());
63 if (
qcuts_->filterCandRef(cand) ) np++;
67 bool accepted =
false;
69 if(np == 1 || np == 3) accepted =
true;
71 if(np >=
minN && np <=
maxN) accepted =
true;
T getParameter(std::string const &) const
bool isNonnull() const
Checks for non-null.
double discriminate(const reco::PFTauRef &) const override
~PFRecoTauDiscriminationByNProngs() override
#define DEFINE_FWK_MODULE(type)
ParameterSet const & getParameterSet(ParameterSetID const &id)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool isNonnull() const
Checks for non-null.
std::auto_ptr< tau::RecoTauVertexAssociator > vertexAssociator_
void beginEvent(const edm::Event &, const edm::EventSetup &) override
ParameterSet const & getParameterSet(std::string const &) const
PFRecoTauDiscriminationByNProngs(const ParameterSet &)
std::auto_ptr< tau::RecoTauQualityCuts > qcuts_
edm::ParameterSet qualityCuts