|
|
Go to the documentation of this file.
182 edm::LogError(
"SiPixelRecHitConverter") <<
" at least one CPE is not ready -- can't run!";
188 int numberOfDetUnits = 0;
189 int numberOfClusters = 0;
196 auto hitsModuleStart = hmsp.get();
198 std::array<uint32_t, gpuClustering::maxNumModules + 1> clusInModule{};
199 for (
auto const& dsv :
input) {
200 unsigned int detid = dsv.detId();
201 DetId detIdObject(detid);
203 auto gind = genericDet->
index();
207 auto const nclus = dsv.size();
209 clusInModule[gind] = nclus;
210 numberOfClusters += nclus;
212 hitsModuleStart[0] = 0;
214 for (
int i = 1,
n = clusInModule.size();
i <
n; ++
i)
215 hitsModuleStart[
i] = hitsModuleStart[
i - 1] + clusInModule[
i - 1];
221 numberOfClusters = 0;
222 for (
auto const& dsv :
input) {
224 unsigned int detid = dsv.detId();
225 DetId detIdObject(detid);
227 const PixelGeomDetUnit* pixDet = dynamic_cast<const PixelGeomDetUnit*>(genericDet);
233 for (; clustIt != clustEnd; clustIt++) {
235 std::tuple<LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType> tuple =
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const override
static const std::string input
void run(edm::Event &e, edm::Handle< edmNew::DetSetVector< SiPixelCluster >> inputhandle, SiPixelRecHitCollectionNew &output, TrackerGeometry const &geom)
PixelCPEBase const * cpe_
const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class)
const edm::EDPutTokenT< SiPixelRecHitCollection > tPut_
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
Pixel cluster – collection of neighboring pixels above threshold.
void push_back(data_type const &d)
const edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecord > tCPE_
~SiPixelRecHitConverter() override
#define DEFINE_FWK_MODULE(type)
unsigned int QualWordType
constexpr uint16_t maxNumModules
Log< level::Error, false > LogError
bool getData(T &iHolder) const
void produce(edm::Event &e, const edm::EventSetup &c) override
The "Event" entrypoint: gets called by framework for every event.
const edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > tPixelCluster_
const edm::EDPutTokenT< HMSstorage > tHost_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tTrackerGeom_
Namespace of DDCMS conversion namespace.
const data_type * const_iterator