87 cutRecoToSim_( iConfig.getParameter<double>(
"Cut_RecoToSim" ) ),
100 else throw cms::Exception(
"QuickTrackAssociatorByHitsImpl" ) <<
"SimToRecoDenominator not specified as sim or reco";
106 bool useGrouped, useSplitting;
107 if( iConfig.
exists(
"UseGrouped") ) useGrouped=iConfig.
getParameter<
bool>(
"UseGrouped");
108 else useGrouped=
true;
110 if( iConfig.
exists(
"UseSplitting") ) useSplitting=iConfig.
getParameter<
bool>(
"UseSplitting");
111 else useSplitting=
true;
115 if( !(useGrouped && useSplitting) )
117 LogDebug(
"QuickTrackAssociatorByHitsImpl") <<
"UseGrouped and/or UseSplitting has been set to false, but this associator ignores that setting.";
121 produces<reco::TrackToTrackingParticleAssociator>();
152 hitAssociatorParameters.
addParameter<
bool>(
"associateRecoTracks",
true);
157 return hitAssociatorParameters;
167 std::unique_ptr<TrackerHitAssociator> trackAssoc;
171 clusterAssoc = clusterAssocHandle.
product();
179 auto impl = std::make_unique<QuickTrackAssociatorByHitsImpl>(iEvent.
productGetter(),
190 auto toPut = std::make_unique<reco::TrackToTrackingParticleAssociator>(
std::move(impl));
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool absoluteNumberOfHits_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
EDProductGetter const & productGetter() const
bool threeHitTracksAreSpecial_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::ParameterSet makeHitAssociatorParameters(const edm::ParameterSet &)
QuickTrackAssociatorByHitsProducer(const edm::ParameterSet &)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void addParameter(std::string const &name, T const &value)
QuickTrackAssociatorByHitsImpl::SimToRecoDenomType simToRecoDenominator_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
T const * product() const
edm::EDGetTokenT< ClusterTPAssociation > cluster2TPToken_
~QuickTrackAssociatorByHitsProducer() override
bool useClusterTPAssociation_