68 srcTag_(iConfig.getParameter<
edm::InputTag>(
"src")),
69 fixedmom_(iConfig.getParameter<double>(
"fixedMomentum")),
70 fixedmomerr_(iConfig.getParameter<double>(
"fixedMomentumError"))
74 produces<std::vector<MomentumConstraint>>();
75 produces<TrackMomConstraintAssociationCollection>();
97 std::unique_ptr<std::vector<MomentumConstraint>> pairs(
new std::vector<MomentumConstraint>);
101 for (reco::TrackCollection::const_iterator
i=theTCollection->begin();
i!=theTCollection->end();
i++) {
108 pairs->push_back(tmp);
109 output->insert(
reco::TrackRef(theTCollection,index),
edm::Ref<std::vector<MomentumConstraint>>(rPairs,index) );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
void produce(edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< reco::TrackCollection > srcToken_
const edm::InputTag srcTag_
#define DEFINE_FWK_MODULE(type)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
RefProd< PROD > getRefBeforePut()
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< MomentumConstraint > > > TrackMomConstraintAssociationCollection
MomentumConstraintProducer(const edm::ParameterSet &)
std::vector< std::vector< double > > tmp
~MomentumConstraintProducer() override=default
const double fixedmomerr_