67 : srcTag_(iConfig.getParameter<
edm::
InputTag>(
"src")),
68 fixedmom_(iConfig.getParameter<double>(
"fixedMomentum")),
69 fixedmomerr_(iConfig.getParameter<double>(
"fixedMomentumError"))
73 produces<std::vector<MomentumConstraint>>();
74 produces<TrackMomConstraintAssociationCollection>();
96 std::unique_ptr<std::vector<MomentumConstraint>> pairs(
new std::vector<MomentumConstraint>);
97 std::unique_ptr<TrackMomConstraintAssociationCollection>
output(
101 for (reco::TrackCollection::const_iterator
i = theTCollection->begin();
i != theTCollection->end();
i++) {
108 pairs->push_back(
tmp);
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::TrackCollection > srcToken_
const edm::InputTag srcTag_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
#define DEFINE_FWK_MODULE(type)
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< MomentumConstraint > > > TrackMomConstraintAssociationCollection
MomentumConstraintProducer(const edm::ParameterSet &)
~MomentumConstraintProducer() override=default
const double fixedmomerr_
void produce(edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override