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);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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.
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< MomentumConstraint > > > TrackMomConstraintAssociationCollection
RefProd< PROD > getRefBeforePut()
MomentumConstraintProducer(const edm::ParameterSet &)
~MomentumConstraintProducer() override=default
const double fixedmomerr_
void produce(edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override