40 absZ_(config.getParameter<double>(
"absZ")),
41 sigmaZ_(config.getParameter<double>(
"sigmaZ")),
42 maxRecoZ_(config.getParameter<double>(
"maxRecoZ")),
43 absT_(config.getParameter<double>(
"absT")),
44 sigmaT_(config.getParameter<double>(
"sigmaT")),
45 maxRecoT_(config.getParameter<double>(
"maxRecoT")),
50 produces<reco::VertexToTrackingVertexAssociator>();
59 desc.
add<
double>(
"absZ", 0.1);
60 desc.
add<
double>(
"sigmaZ", 3.0);
61 desc.
add<
double>(
"maxRecoZ", 1000.0);
62 desc.
add<
double>(
"absT", -1.0);
63 desc.
add<
double>(
"sigmaT", -1.0);
64 desc.
add<
double>(
"maxRecoT", -1.0);
65 desc.
add<
double>(
"sharedTrackFraction", -1.0);
70 descriptions.
add(
"VertexAssociatorByPositionAndTracks", desc);
80 std::unique_ptr<VertexAssociatorByPositionAndTracks>
impl;
82 impl = std::make_unique<VertexAssociatorByPositionAndTracks>(&(iEvent.
productGetter()),
88 simtorecoCollectionH.
product());
90 impl = std::make_unique<VertexAssociatorByPositionAndTracks>(&(iEvent.
productGetter()),
99 simtorecoCollectionH.
product());
102 auto toPut = std::make_unique<reco::VertexToTrackingVertexAssociator>(
std::move(impl));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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)