31 if (!(
name_ ==
"SiPhase2VectorHitMatcher")) {
32 throw cms::Exception(
"ConfigurationError") <<
"Configuration specifies unknown ComponentName .\n"
33 <<
"Currently only 'SiPhase2VectorHitMatcher' is supported\n";
43 std::unique_ptr<VectorHitBuilderAlgorithm> matcher = std::make_unique<VectorHitBuilderAlgorithm>(
55 desc.
add<
int>(
"maxVectorHits", 999999999);
57 desc.
add<
std::string>(
"ComponentName",
"SiPhase2VectorHitMatcher");
59 desc.
add<std::vector<double>>(
"BarrelCut",
71 desc.
add<
int>(
"maxVectorHitsInAStack", 999);
72 desc.
add<std::vector<double>>(
"EndcapCut",
81 descriptions.
add(
"siPhase2RecHitMatcher", desc);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecord > cpeToken_
std::unique_ptr< VectorHitBuilderAlgorithm > produce(const TkPhase2OTCPERecord &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
SiPhase2RecHitMatcherESProducer(const edm::ParameterSet &)
const DepRecordT getRecord() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_