16 namespace reco {
namespace tau {
33 nprongs_(pset.getParameter<
std::vector<unsigned> >(
"nprongs")),
34 failResult_(pset.getParameter<double>(
"selectionFailValue")),
35 charge_(pset.getParameter<
int>(
"passForCharge"))
41 unsigned nChargedPFCandidate(0), nTrack(0);
42 for(
auto const& tauCand : cand->signalTauChargedHadronCandidates()){
43 charge += tauCand.charge();
49 if(nChargedPFCandidate+nTrack == nprong)
return abs(charge)-
charge_;
double operator()(const PFTauRef &tau) const override
~RecoTauChargeCleanerPlugin() override
RecoTauChargeCleanerPlugin(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Abs< T >::type abs(const T &t)
std::vector< unsigned > nprongs_
#define DEFINE_EDM_PLUGIN(factory, type, name)