44 produces<reco::TrackCollection>();
59 auto outputTColl = std::make_unique<reco::TrackCollection>();
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.
bool get(ProductID const &oid, Handle< PROD > &result) const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Implementation of produce method.
constexpr bool isNotFinite(T x)
std::vector< pat::PackedCandidate > PackedCandidateCollection
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
fill descriptions
double pt() const
track transverse momentum
double phi() const
azimuthal angle of momentum vector
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< std::vector< pat::PackedCandidate > > tokenPFCandidates_
double eta() const
pseudorapidity of momentum vector
TrackFromPackedCandidateProducer(const edm::ParameterSet &iConfig)
Constructor.