44 produces<reco::TrackCollection>();
59 auto outputTColl = std::make_unique<reco::TrackCollection>();
61 outputTColl->reserve(pfCandidates.size());
63 for (
auto const& pf : pfCandidates) {
64 if (pf.hasTrackDetails()) {
69 outputTColl->push_back(mytrack);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Implementation of produce method.
constexpr bool isNotFinite(T x)
#define DEFINE_FWK_MODULE(type)
std::vector< pat::PackedCandidate > PackedCandidateCollection
double phi() const
azimuthal angle of momentum vector
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
fill descriptions
double eta() const
pseudorapidity of momentum vector
double pt() const
track transverse momentum
bool get(ProductID const &oid, Handle< PROD > &result) const
const edm::EDGetTokenT< std::vector< pat::PackedCandidate > > tokenPFCandidates_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
TrackFromPackedCandidateProducer(const edm::ParameterSet &iConfig)
Constructor.