|
|
Definition at line 21 of file HcalRawToDigiGPU.cc.
◆ ProductTypef01
◆ ProductTypef3
◆ ProductTypef5
◆ HcalRawToDigiGPU()
◆ ~HcalRawToDigiGPU()
HcalRawToDigiGPU::~HcalRawToDigiGPU |
( |
| ) |
|
|
override |
◆ acquire()
Definition at line 88 of file HcalRawToDigiGPU.cc.
97 auto const& eMappingProduct = eMappingHandle->
getProduct(ctx.stream());
135 uint32_t currentCummOffset = 0;
139 auto const nbytes =
data.size();
145 #ifdef HCAL_RAWDECODE_CPUDEBUG
146 printf(
"fed = %d nbytes = %lu\n", fed, nbytes);
150 std::memcpy(inputCPU.
data.get() + currentCummOffset,
data.data(), nbytes);
156 currentCummOffset += nbytes;
References hcal::raw::OutputDataGPU::allocate(), submitPVValidationJobs::conditions, config_, counter, cudaState_, hcal::raw::InputDataCPU::data, data, hcal::raw::empty_event_size, hcal::raw::entryPoint(), FEDRawDataCollection::FEDData(), hcal::raw::InputDataCPU::feds, fedsToUnpack_, get, hcal::raw::ElectronicsMappingGPU::getProduct(), cms::cuda::make_device_unique(), cms::cuda::make_host_unique(), eostools::move(), hcal::raw::nbytes_per_fed_max, hcal::raw::numOutputCollections, hcal::raw::InputDataCPU::offsets, outputCPU_, outputGPU_, rawDataToken_, singleTopDQM_cfi::setup, and hcal::raw::utca_nfeds_max.
◆ fillDescriptions()
Definition at line 49 of file HcalRawToDigiGPU.cc.
54 std::vector<int>
feds(nFeds);
55 for (
int i = 0;
i < nFeds; ++
i)
57 desc.add<std::vector<int>>(
"FEDs",
feds);
58 desc.add<uint32_t>(
"maxChannelsF01HE", 10000u);
59 desc.add<uint32_t>(
"maxChannelsF5HB", 10000u);
60 desc.add<uint32_t>(
"maxChannelsF3HB", 10000u);
61 desc.add<uint32_t>(
"nsamplesF01HE", 8);
62 desc.add<uint32_t>(
"nsamplesF5HB", 8);
63 desc.add<uint32_t>(
"nsamplesF3HB", 8);
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, l1tstage2emulator_dqm_sourceclient-live_cfg::feds, mps_fire::i, HLT_FULL_cff::InputTag, label, FEDNumbering::MAXHCALuTCAFEDID, FEDNumbering::MINHCALuTCAFEDID, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ produce()
Definition at line 172 of file HcalRawToDigiGPU.cc.
175 #ifdef HCAL_RAWDECODE_CPUDEBUG
176 printf(
"f01he channels = %u f5hb channesl = %u\n",
References config_, cudaState_, hcal::raw::OutputDataGPU::digisF01HE, digisF01HEToken_, hcal::raw::OutputDataGPU::digisF3HB, digisF3HBToken_, hcal::raw::OutputDataGPU::digisF5HB, digisF5HBToken_, eostools::move(), hcal::raw::OutputDataCPU::nchannels, hcal::raw::ConfigurationParameters::nsamplesF01HE, hcal::raw::ConfigurationParameters::nsamplesF3HB, hcal::raw::ConfigurationParameters::nsamplesF5HB, outputCPU_, hcal::raw::OutputF01HE, hcal::raw::OutputF3HB, hcal::raw::OutputF5HB, and outputGPU_.
◆ config_
◆ cudaState_
◆ digisF01HEToken_
◆ digisF3HBToken_
◆ digisF5HBToken_
◆ fedsToUnpack_
std::vector<int> HcalRawToDigiGPU::fedsToUnpack_ |
|
private |
◆ outputCPU_
◆ outputGPU_
◆ rawDataToken_
edm::EDPutTokenT< ProductTypef3 > digisF3HBToken_
device::impl::make_device_unique_selector< T >::non_array make_device_unique(cudaStream_t stream)
hcal::raw::ConfigurationParameters config_
constexpr uint8_t OutputF01HE
hcal::raw::OutputDataCPU outputCPU_
DigiCollection< Flavor5, ::calo::common::DevStoragePolicy > digisF5HB
edm::EDPutTokenT< ProductTypef01 > digisF01HEToken_
constexpr uint8_t OutputF5HB
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDPutTokenT< ProductTypef5 > digisF5HBToken_
uint32_t maxChannelsF01HE
constexpr int32_t empty_event_size
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
constexpr uint32_t numOutputCollections
constexpr uint32_t nbytes_per_fed_max
std::vector< int > fedsToUnpack_
const Product & getProduct(cudaStream_t) const
void entryPoint(InputDataCPU const &, InputDataGPU &, OutputDataGPU &, ScratchDataGPU &, OutputDataCPU &, ConditionsProducts const &, ConfigurationParameters const &, cudaStream_t cudaStream, uint32_t const, uint32_t const)
static std::atomic< unsigned int > counter
DigiCollection< Flavor1, ::calo::common::DevStoragePolicy > digisF01HE
hcal::raw::OutputDataGPU outputGPU_
cms::cuda::host::unique_ptr< uint32_t[]> nchannels
DigiCollection< Flavor3, ::calo::common::DevStoragePolicy > digisF3HB
constexpr uint8_t OutputF3HB
char data[epos_bytes_allocation]
void allocate(ConfigurationParameters const &config, cudaStream_t cudaStream)
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
host::impl::make_host_unique_selector< T >::non_array make_host_unique(cudaStream_t stream)
cms::cuda::ContextState cudaState_
constexpr uint32_t utca_nfeds_max