42 desc.add<
double>(
"likelihoodCut", 0.1);
43 desc.add<std::vector<edm::InputTag>>(
"nuclearColList", {
edm::InputTag(
"firstnuclearInteractionMaker")});
44 descriptions.
add(
"pfNuclear",
desc);
51 produces<reco::PFRecTrackCollection>();
52 produces<reco::PFNuclearInteractionCollection>();
54 std::vector<edm::InputTag>
tags = iConfig.
getParameter<vector<InputTag>>(
"nuclearColList");
56 for (
unsigned int i = 0;
i <
tags.size(); ++
i)
68 auto pfNuclearColl = std::make_unique<reco::PFNuclearInteractionCollection>();
69 auto pfNuclearRecTrackColl = std::make_unique<reco::PFRecTrackCollection>();
88 for (trackRef_iterator
it = nuclColl[
icoll].secondaryTracks_begin();
it != nuclColl[
icoll].secondaryTracks_end();
96 pfNuclearRecTrackColl->push_back(pftrack);
reconstructed track used as an input to particle flow
T getParameter(std::string const &) const
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void likelihood(int &npar, double *grad, double &fval, double *xval, int flag)
T const * product() const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
std::vector< edm::EDGetTokenT< reco::NuclearInteractionCollection > > nuclearContainers_
std::vector< NuclearInteraction > NuclearInteractionCollection
collection of NuclearInteractions
reco::Vertex::trackRef_iterator trackRef_iterator
~PFNuclearProducer() override
Destructor.
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
Produce the PFRecTrack collection.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void endRun(const edm::Run &, const edm::EventSetup &) override
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
PFNuclearProducer(const edm::ParameterSet &)
Constructor.
std::vector< PFRecTrack > PFRecTrackCollection
collection of PFRecTrack objects
void beginRun(const edm::Run &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)