37 absZ_(config.getParameter<double>(
"absZ")),
38 sigmaZ_(config.getParameter<double>(
"sigmaZ")),
39 maxRecoZ_(config.getParameter<double>(
"maxRecoZ")),
40 sharedTrackFraction_(config.getParameter<double>(
"sharedTrackFraction")),
44 produces<reco::VertexToTrackingVertexAssociator>();
53 desc.
add<
double>(
"absZ", 0.1);
54 desc.
add<
double>(
"sigmaZ", 3.0);
55 desc.
add<
double>(
"maxRecoZ", 1000.0);
56 desc.
add<
double>(
"sharedTrackFraction", -1.0);
61 descriptions.
add(
"VertexAssociatorByPositionAndTracks", desc);
71 auto impl = std::make_unique<VertexAssociatorByPositionAndTracks>(&(iEvent.
productGetter()),
77 simtorecoCollectionH.
product());
79 auto toPut = std::make_unique<reco::VertexToTrackingVertexAssociator>(std::move(impl));
80 iEvent.
put(std::move(toPut));
edm::EDGetTokenT< reco::RecoToSimCollection > trackRecoToSimAssociationToken_
~VertexAssociatorByPositionAndTracksProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
EDProductGetter const & productGetter() const
VertexAssociatorByPositionAndTracksProducer(const edm::ParameterSet &)
const double sharedTrackFraction_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< reco::SimToRecoCollection > trackSimToRecoAssociationToken_
T const * product() const
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, TrackingParticleCollection, double > > RecoToSimCollection
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > > SimToRecoCollection
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)