template<typename TrackerTraits>
class SiPixelRecHitFromCUDAT< TrackerTraits >
Definition at line 28 of file SiPixelRecHitFromCUDA.cc.
template<typename TrackerTraits >
Definition at line 93 of file SiPixelRecHitFromCUDA.cc.
References cms::cuda::assert(), ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), filterCSVwithJSON::copy, edmNew::DetSetVector< T >::FastFiller::emplace_back(), relativeConstraints::geom, edm::EventSetup::getData(), iEvent, GeomDet::index(), input, dqmdumpme::k, LogDebug, edmNew::makeRefTo(), pixelClustering::maxHitsInModule(), SiStripPI::min, eostools::move(), nhits, gpuClustering::nMaxModules, electrons_cff::numberOfClusters, phase1PixelTopology::numberOfModules, convertSQLitetoXML_cfg::output, and edmNew::DetSetVector< T >::FastFiller::size().
96 auto hmsp = std::make_unique<uint32_t[]>(
nMaxModules + 1);
120 auto const&
input = *hclusters;
124 int numberOfDetUnits = 0;
126 for (
auto const& dsv :
input) {
128 unsigned int detid = dsv.detId();
129 DetId detIdObject(detid);
131 auto gind = genericDet->
index();
137 auto nhits = lc - fc;
140 LogDebug(
"SiPixelRecHitFromCUDA") <<
"in det " << gind <<
": conv " <<
nhits <<
" hits from " << dsv.size()
141 <<
" legacy clusters" <<
' ' << fc <<
',' << lc <<
"\n";
144 "Too many clusters %d in module %d. Only the first %d hits will be converted",
nhits, gind,
maxHitsInModule);
147 LogDebug(
"SiPixelRecHitFromCUDA") <<
"in det " << gind <<
"conv " <<
nhits <<
" hits from " << dsv.size()
148 <<
" legacy clusters" <<
' ' << lc <<
',' << fc;
152 auto jnd = [&](
int k) {
return fc +
k; };
154 if (
nhits != dsv.size()) {
157 for (
auto const& clust : dsv) {
158 assert(clust.originalId() >= 0);
159 assert(clust.originalId() < dsv.size());
160 if (clust.originalId() >=
nhits)
162 auto ij = jnd(clust.originalId());
179 recHitsOnDetUnit.emplace_back(lp, le, rqw, *genericDet, cluster);
187 LogDebug(
"SiPixelRecHitFromCUDA") <<
"found " << recHitsOnDetUnit.size() <<
" RecHits on " << detid;
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)
constexpr int nMaxModules
const edm::EDPutTokenT< HMSstorage > hostPutToken_
constexpr uint16_t numberOfModules
static std::string const input
const edm::EDPutTokenT< SiPixelRecHitCollection > rechitsPutToken_
const edm::EDGetTokenT< SiPixelClusterCollectionNew > clusterToken_
cms::cuda::host::unique_ptr< uint32_t[]> hitsModuleStart_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
cms::cuda::host::unique_ptr< float[]> store32_
Pixel cluster – collection of neighboring pixels above threshold.
unsigned int QualWordType
Log< level::Warning, false > LogWarning
constexpr uint32_t maxHitsInModule()