50 clusterMode_(conf.getParameter<
std::
string>(
"ClusterMode")),
51 maxTotalClusters_(conf.getParameter<int32_t>(
"maxNumberOfClusters")) {
84 desc.add<
int>(
"maxNumberOfClusters", -1)->setComment(
"-1 means no limit");
86 ->setComment(
"Options: HLT - column granularity, Offline - gain:col/ped:pix, None: no gain calibrations");
91 descriptions.
add(
"SiPixelClusterizerDefault",
desc);
117 auto output = std::make_unique<SiPixelClusterCollectionNew>();
134 cluster.setOriginalId(
id++);
147 clusterizer_ = std::make_unique<PixelThresholdClusterizer>(conf);
152 throw cms::Exception(
"Configuration") <<
"[SiPixelClusterProducer]:" 154 <<
"Possible choices:\n" 155 <<
" PixelThresholdClusterizer";
162 template <
typename T>
169 for (
auto const& dsv :
input) {
173 std::vector<short> badChannels;
174 DetId detIdObject(dsv.detId());
200 <<
"Limit on the number of clusters exceeded. An empty cluster collection will be produced instead.\n";
208 #include "PixelThresholdClusterizer.icc"
T getParameter(std::string const &) const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
Log< level::Error, false > LogError
static std::string const input
std::unique_ptr< PixelClusterizerBase > clusterizer_
T const * product() const
SiPixelClusterProducer(const edm::ParameterSet &conf)
Constructor: set the ParameterSet and defer all thinking to setupClusterizer().
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< SiPixelGainCalibrationServiceBase > theSiPixelGainCalibration_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDPutTokenT< SiPixelClusterCollectionNew > tPutPixelClusters
const int32_t maxTotalClusters_
Optional limit on the total number of clusters.
EDProducer to cluster PixelDigis into SiPixelClusters.
static void fillPSetDescription(edm::ParameterSetDescription &desc)
void produce(edm::Event &e, const edm::EventSetup &c) override
The "Event" entrypoint: gets called by framework for every event.
void setupClusterizer(const edm::ParameterSet &conf)
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > tPixelDigi
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< SiPixelClusterCollectionNew > tPixelClusters
~SiPixelClusterProducer() override
void run(const T &input, const edm::ESHandle< TrackerGeometry > &geom, edmNew::DetSetVector< SiPixelCluster > &output)
Iterate over DetUnits, and invoke the PixelClusterizer on each.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
const TrackerTopology * tTopo_
const std::string clusterMode_