57 R2SMatchedSimRatio_(config.getParameter<double>(
"R2SMatchedSimRatio")),
58 R2SMatchedRecoRatio_(config.getParameter<double>(
"R2SMatchedRecoRatio")),
59 S2RMatchedSimRatio_(config.getParameter<double>(
"S2RMatchedSimRatio")),
60 S2RMatchedRecoRatio_(config.getParameter<double>(
"S2RMatchedRecoRatio")),
61 selector_(makeSelector(config.getParameter<edm::
ParameterSet>(
"trackingParticleSelector"))),
62 trackQuality_(
reco::TrackBase::qualityByName(config.getParameter<std::
string>(
"trackQuality"))),
66 produces<reco::VertexToTrackingVertexAssociator>();
75 desc.
add<
double>(
"R2SMatchedSimRatio", 0.3);
76 desc.
add<
double>(
"R2SMatchedRecoRatio", 0.0);
77 desc.
add<
double>(
"S2RMatchedSimRatio", 0.0);
78 desc.
add<
double>(
"S2RMatchedRecoRatio", 0.3);
86 descTp.
add<
double>(
"lipTP", 30.0);
87 descTp.add<
bool>(
"chargedOnlyTP",
true);
88 descTp.add<std::vector<int>>(
"pdgIdTP", std::vector<int>());
89 descTp.add<
bool>(
"signalOnlyTP",
true);
90 descTp.add<
double>(
"minRapidityTP", -2.4);
91 descTp.add<
int>(
"minHitTP", 0);
92 descTp.add<
double>(
"ptMinTP", 0.9);
93 descTp.add<
double>(
"maxRapidityTP", 2.4);
94 descTp.add<
double>(
"tipTP", 3.5);
100 descriptions.
add(
"VertexAssociatorByTracks", desc);
110 auto impl = std::make_unique<VertexAssociatorByTracks>(&(iEvent.
productGetter()),
117 recotosimCollectionH.
product(),
118 simtorecoCollectionH.
product());
120 auto toPut = std::make_unique<reco::VertexToTrackingVertexAssociator>(std::move(impl));
121 iEvent.
put(std::move(toPut));
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
#define DEFINE_FWK_MODULE(type)
EDProductGetter const & productGetter() const
const TrackingParticleSelector selector_
const reco::TrackBase::TrackQuality trackQuality_
SingleObjectSelector< TrackingParticleCollection,::TrackingParticleSelector > TrackingParticleSelector
VertexAssociatorByTracksProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const double S2RMatchedRecoRatio_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~VertexAssociatorByTracksProducer()
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
T const * product() const
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, TrackingParticleCollection, double > > RecoToSimCollection
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::SimToRecoCollection > trackSimToRecoAssociationToken_
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > > SimToRecoCollection
const double S2RMatchedSimRatio_
const double R2SMatchedRecoRatio_
edm::EDGetTokenT< reco::RecoToSimCollection > trackRecoToSimAssociationToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const double R2SMatchedSimRatio_