86 cutRecoToSim_( iConfig.getParameter<double>(
"Cut_RecoToSim" ) ),
99 else throw cms::Exception(
"QuickTrackAssociatorByHitsImpl" ) <<
"SimToRecoDenominator not specified as sim or reco";
105 bool useGrouped, useSplitting;
106 if( iConfig.
exists(
"UseGrouped") ) useGrouped=iConfig.
getParameter<
bool>(
"UseGrouped");
107 else useGrouped=
true;
109 if( iConfig.
exists(
"UseSplitting") ) useSplitting=iConfig.
getParameter<
bool>(
"UseSplitting");
110 else useSplitting=
true;
114 if( !(useGrouped && useSplitting) )
116 LogDebug(
"QuickTrackAssociatorByHitsImpl") <<
"UseGrouped and/or UseSplitting has been set to false, but this associator ignores that setting.";
120 produces<reco::TrackToTrackingParticleAssociator>();
154 hitAssociatorParameters.
addParameter<
bool>(
"associateRecoTracks",
true);
159 return hitAssociatorParameters;
169 std::unique_ptr<TrackerHitAssociator> trackAssoc;
173 clusterAssoc = clusterAssocHandle.
product();
181 auto impl = std::make_unique<QuickTrackAssociatorByHitsImpl>(iEvent.
productGetter(),
192 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
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
#define DEFINE_FWK_MODULE(type)
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_