18 std::vector<const reco::Track *> &)
override;
24 std::vector<const reco::Track *> &);
47 std::vector<const reco::Track *> &nonTauTracks) {
60 const size_t &thePVkey,
63 std::vector<const reco::Track *> &nonTauTracks) {
67 if (!std::isfinite(
cand.pt()))
69 if (
cand.vertexRef().isNull())
72 if (
cand.vertexRef().key() != thePVkey ||
82 for (
const auto &tauTrack : tauTracks) {
91 nonTauTracks.push_back(
track);
100 descriptions.
add(
"pfTauMiniAODPrimaryVertexProducer",
desc);
void beginEvent(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< pat::PackedCandidateCollection > lostCandsToken_
edm::EDGetTokenT< pat::PackedCandidateCollection > packedCandsToken_
std::vector< pat::PackedCandidate > PackedCandidateCollection
void nonTauTracksInPVFromPackedCands(const size_t &, const pat::PackedCandidateCollection &, const std::vector< edm::Ptr< reco::TrackBase > > &, std::vector< const reco::Track *> &)
key_type key() const
Accessor for product key.
PFTauMiniAODPrimaryVertexProducer(const edm::ParameterSet &iConfig)
MiniAOD implementation of the PFTauPrimaryVertexProducer plugin.
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
~PFTauMiniAODPrimaryVertexProducer() override
edm::Handle< pat::PackedCandidateCollection > packedCands_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void nonTauTracksInPV(const reco::VertexRef &, const std::vector< edm::Ptr< reco::TrackBase > > &, std::vector< const reco::Track *> &) override
static edm::ParameterSetDescription getDescriptionsBase()
edm::Handle< pat::PackedCandidateCollection > lostCands_