|
|
Definition at line 43 of file SiPixelRawToClusterCUDA.cc.
◆ SiPixelRawToClusterCUDA()
SiPixelRawToClusterCUDA::SiPixelRawToClusterCUDA |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
◆ ~SiPixelRawToClusterCUDA()
SiPixelRawToClusterCUDA::~SiPixelRawToClusterCUDA |
( |
| ) |
|
|
overridedefault |
◆ acquire()
Definition at line 133 of file SiPixelRawToClusterCUDA.cc.
142 <<
") differs the one from SiPixelROCsStatusAndMappingWrapper. Please fix your configuration.";
145 const auto* gpuMap = hgpuMap->getGPUProductAsync(ctx.stream());
149 const auto* gpuGains = hgains->getGPUProductAsync(ctx.stream());
152 const unsigned char* gpuModulesToUnpack;
156 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
157 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules() <<
" "
159 modulesToUnpackRegional = hgpuMap->getModToUnpRegionalAsync(*(
regions_->modulesToUnpack()), ctx.stream());
160 gpuModulesToUnpack = modulesToUnpackRegional.get();
162 gpuModulesToUnpack = hgpuMap->getModToUnpAllAsync(ctx.stream());
170 fedIds_ = cablingMap->fedIds();
171 cabling_ = cablingMap->cablingTree();
180 unsigned int wordCounterGPU = 0;
181 unsigned int fedCounter = 0;
182 bool errorsInEvent =
false;
214 bool moreHeaders =
true;
215 while (moreHeaders) {
218 moreHeaders = headerStatus;
222 bool moreTrailers =
true;
224 while (moreTrailers) {
227 moreTrailers = trailerStatus;
233 assert(0 == (ew - bw) % 2);
235 wordCounterGPU += (ew - bw);
References cms::cuda::assert(), cabling_, cablingMap_, cablingMapToken_, edm::ESWatcher< T >::check(), ErrorChecker::checkCRC(), ErrorChecker::checkHeader(), ErrorChecker::checkTrailer(), clusterThresholds_, ctxState_, errors_, Exception, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedIds_, gainsToken_, edm::EventSetup::getHandle(), edm::EventSetup::getTransientHandle(), gpuAlgo_, gpuMapToken_, RecoTauValidation_cfi::header, iEvent, includeErrors_, edm::MessageDrop::instance(), isRun2_, LogDebug, pixelgpudetails::SiPixelRawToClusterGPUKernel::makeClustersAsync(), FEDNumbering::MINSiPixeluTCAFEDID, eostools::move(), l1tstage2_dqm_sourceclient-live_cfg::rawData, rawGetToken_, recordWatcher_, regions_, useQuality_, and wordFedAppender_.
◆ fillDescriptions()
Definition at line 112 of file SiPixelRawToClusterCUDA.cc.
114 desc.add<
bool>(
"isRun2",
true);
115 desc.add<
bool>(
"IncludeErrors",
true);
116 desc.add<
bool>(
"UseQualityInfo",
false);
122 psd0.
addOptional<std::vector<edm::InputTag>>(
"inputs");
127 ->setComment(
"## Empty Regions PSet means complete unpacking");
129 desc.add<
std::string>(
"CablingMapLabel",
"")->setComment(
"CablingMap label");
References edm::ParameterSetDescription::addOptional(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, kSiPixelClusterThresholdsDefaultPhase1, SiPixelClusterThresholds::layer1, SiPixelClusterThresholds::otherLayers, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ produce()
Definition at line 254 of file SiPixelRawToClusterCUDA.cc.
References clusterPutToken_, ctxState_, digiErrorPutToken_, digiPutToken_, pixelgpudetails::SiPixelRawToClusterGPUKernel::getErrors(), pixelgpudetails::SiPixelRawToClusterGPUKernel::getResults(), gpuAlgo_, iEvent, includeErrors_, eostools::move(), and createJobs::tmp.
◆ cabling_
◆ cablingMap_
◆ cablingMapToken_
◆ clusterPutToken_
◆ clusterThresholds_
◆ ctxState_
◆ digiErrorPutToken_
◆ digiPutToken_
◆ errors_
◆ fedIds_
std::vector<unsigned int> SiPixelRawToClusterCUDA::fedIds_ |
|
private |
◆ gainsToken_
◆ gpuAlgo_
◆ gpuMapToken_
◆ includeErrors_
const bool SiPixelRawToClusterCUDA::includeErrors_ |
|
private |
◆ isRun2_
const bool SiPixelRawToClusterCUDA::isRun2_ |
|
private |
◆ rawGetToken_
◆ recordWatcher_
◆ regions_
◆ useQuality_
const bool SiPixelRawToClusterCUDA::useQuality_ |
|
private |
◆ wordFedAppender_
std::unique_ptr< SiPixelFedCablingTree > cabling_
bool check(const edm::EventSetup &iSetup)
unsigned int cms_uint32_t
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_
edm::EDPutTokenT< cms::cuda::Product< SiPixelDigiErrorsCUDA > > digiErrorPutToken_
unique_ptr< ClusterSequence > cs
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher_
edm::ESGetToken< SiPixelGainCalibrationForHLTGPU, SiPixelGainCalibrationForHLTGPURcd > gainsToken_
cms::cuda::ContextState ctxState_
edm::EDPutTokenT< cms::cuda::Product< SiPixelClustersCUDA > > clusterPutToken_
bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, Errors &errors) override
std::unique_ptr< pixelgpudetails::SiPixelRawToClusterGPUKernel::WordFedAppender > wordFedAppender_
std::pair< SiPixelDigisCUDA, SiPixelClustersCUDA > getResults()
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors) override
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
const SiPixelFedCablingMap * cablingMap_
constexpr SiPixelClusterThresholds kSiPixelClusterThresholdsDefaultPhase1
edm::EDPutTokenT< cms::cuda::Product< SiPixelDigisCUDA > > digiPutToken_
const bool includeErrors_
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors) override
std::vector< std::string > getParameterNames() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
unsigned long long cms_uint64_t
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
const int32_t otherLayers
unsigned long long trailer
std::vector< unsigned int > fedIds_
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
static MessageDrop * instance()
void makeClustersAsync(bool isRun2, const SiPixelClusterThresholds clusterThresholds, const SiPixelROCsStatusAndMapping *cablingMap, const unsigned char *modToUnp, const SiPixelGainForHLTonGPU *gains, const WordFedAppender &wordFed, SiPixelFormatterErrors &&errors, const uint32_t wordCounter, const uint32_t fedCounter, bool useQualityInfo, bool includeErrors, bool debug, cudaStream_t stream)
T getParameter(std::string const &) const
const SiPixelClusterThresholds clusterThresholds_
edm::ESGetToken< SiPixelROCsStatusAndMappingWrapper, CkfComponentsRecord > gpuMapToken_
SiPixelDigiErrorsCUDA && getErrors()
pixelgpudetails::SiPixelRawToClusterGPUKernel gpuAlgo_
std::unique_ptr< PixelUnpackingRegions > regions_
edm::EDGetTokenT< FEDRawDataCollection > rawGetToken_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
PixelDataFormatter::Errors errors_