|
|
Go to the documentation of this file.
57 : R2SMatchedSimRatio_(
config.getParameter<double>(
"R2SMatchedSimRatio")),
58 R2SMatchedRecoRatio_(
config.getParameter<double>(
"R2SMatchedRecoRatio")),
59 S2RMatchedSimRatio_(
config.getParameter<double>(
"S2RMatchedSimRatio")),
60 S2RMatchedRecoRatio_(
config.getParameter<double>(
"S2RMatchedRecoRatio")),
62 trackQuality_(
reco::TrackBase::qualityByName(
config.getParameter<
std::
string>(
"trackQuality"))),
63 trackRecoToSimAssociationToken_(
65 trackSimToRecoAssociationToken_(
67 produces<reco::VertexToTrackingVertexAssociator>();
76 desc.add<
double>(
"R2SMatchedSimRatio", 0.3);
77 desc.add<
double>(
"R2SMatchedRecoRatio", 0.0);
78 desc.add<
double>(
"S2RMatchedSimRatio", 0.0);
79 desc.add<
double>(
"S2RMatchedRecoRatio", 0.3);
87 descTp.
add<
double>(
"lipTP", 30.0);
88 descTp.add<
bool>(
"chargedOnlyTP",
true);
89 descTp.add<std::vector<int>>(
"pdgIdTP", std::vector<int>());
90 descTp.add<
bool>(
"signalOnlyTP",
true);
91 descTp.add<
double>(
"minRapidityTP", -2.4);
92 descTp.add<
int>(
"minHitTP", 0);
93 descTp.add<
double>(
"ptMinTP", 0.9);
94 descTp.add<
double>(
"ptMaxTP", 1e100);
95 descTp.add<
double>(
"maxRapidityTP", 2.4);
96 descTp.add<
double>(
"tipTP", 3.5);
102 descriptions.
add(
"VertexAssociatorByTracks",
desc);
112 auto impl = std::make_unique<VertexAssociatorByTracks>(&(
iEvent.productGetter()),
119 recotosimCollectionH.
product(),
120 simtorecoCollectionH.
product());
122 auto toPut = std::make_unique<reco::VertexToTrackingVertexAssociator>(
std::move(
impl));
const double S2RMatchedRecoRatio_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T const * product() const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
TrackQuality
track quality
const double R2SMatchedSimRatio_
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > > SimToRecoCollection
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, TrackingParticleCollection, double > > RecoToSimCollection
SingleObjectSelector< TrackingParticleCollection, ::TrackingParticleSelector > TrackingParticleSelector
const double S2RMatchedSimRatio_
const reco::TrackBase::TrackQuality trackQuality_
~VertexAssociatorByTracksProducer() override
VertexAssociatorByTracksProducer(const edm::ParameterSet &)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::SimToRecoCollection > trackSimToRecoAssociationToken_
const double R2SMatchedRecoRatio_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const TrackingParticleSelector selector_
edm::EDGetTokenT< reco::RecoToSimCollection > trackRecoToSimAssociationToken_