Go to the documentation of this file.
73 ftlbInstance_(conf.getParameter<
std::
string>(
"BarrelClusterName")),
74 ftleInstance_(conf.getParameter<
std::
string>(
"EndcapClusterName")),
75 clusterMode_(conf.getParameter<
std::
string>(
"ClusterMode")),
85 clusterizer_ = std::make_unique<MTDThresholdClusterizer>(conf);
87 throw cms::Exception(
"MTDClusterProducer") <<
"[MTDClusterProducer]:"
89 <<
"Possible choices:\n"
90 <<
" MTDThresholdClusterizer";
103 descriptions.
add(
"mtdClusterProducer", desc);
126 auto outputBarrel = std::make_unique<FTLClusterCollection>();
127 auto outputEndcap = std::make_unique<FTLClusterCollection>();
129 run(*inputBarrel, *outputBarrel);
130 run(*inputEndcap, *outputEndcap);
139 template <
typename T>
142 throw cms::Exception(
"MTDClusterProducer") <<
" at least one clusterizer is not ready -- can't run!";
148 <<
" MTDClusters for " <<
input.size() <<
" Hits.";
T const * product() const
void run(const T &input, FTLClusterCollection &output)
Iterate over DetUnits, and invoke the PixelClusterizer on each.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static const std::string input
~MTDClusterProducer() override=default
const std::string ftlbInstance_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< FTLRecHitCollection > etlHits_
EDProducer to cluster FTLRecHits into FTLClusters.
const std::string ftleInstance_
const MTDTopology * topo_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const MTDGeometry * geom_
const std::string clusterMode_
static void fillDescriptions(edm::ParameterSetDescription &desc)
std::unique_ptr< MTDClusterizerBase > clusterizer_
const edm::EDGetTokenT< FTLRecHitCollection > btlHits_
void produce(edm::Event &e, const edm::EventSetup &c) override
The "Event" entrypoint: gets called by framework for every event.
MTDClusterProducer(const edm::ParameterSet &conf)
Constructor: set the ParameterSet and defer all thinking to setupClusterizer().