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