#include <HeterogeneousHGCalHEFCellPositionsConditions.h>
Classes | |
struct | GPUData |
Public Member Functions | |
hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct const * | getHeterogeneousConditionsESProductAsync (cudaStream_t stream) const |
HeterogeneousHGCalHEFCellPositionsConditions (cpos::HGCalPositionsMapping *) | |
~HeterogeneousHGCalHEFCellPositionsConditions () | |
Private Member Functions | |
size_t | allocate_memory_ (const std::vector< size_t > &) |
std::vector< size_t > | calculate_memory_bytes_ (cpos::HGCalPositionsMapping *) |
float *& | select_pointer_f_ (cpos::HeterogeneousHGCalPositionsMapping *, const unsigned int &) const |
std::vector< float > & | select_pointer_f_ (cpos::HGCalPositionsMapping *, const unsigned int &) |
int32_t *& | select_pointer_i_ (cpos::HeterogeneousHGCalPositionsMapping *, const unsigned int &) const |
std::vector< int32_t > & | select_pointer_i_ (cpos::HGCalPositionsMapping *, const unsigned int &) |
uint32_t *& | select_pointer_u_ (cpos::HeterogeneousHGCalPositionsMapping *, const unsigned int &) const |
std::vector< uint32_t > & | select_pointer_u_ (cpos::HGCalPositionsMapping *, const unsigned int &) |
void | transfer_data_to_heterogeneous_pointers_ (const std::vector< size_t > &, cpos::HGCalPositionsMapping *) |
void | transfer_data_to_heterogeneous_vars_ (const cpos::HGCalPositionsMapping *) |
Private Attributes | |
size_t | chunk_ |
cms::cuda::ESProduct< GPUData > | gpuData_ |
size_t | nelems_posmap_ |
const size_t | number_position_arrays |
cpos::HeterogeneousHGCalPositionsMapping | posmap_ |
std::vector< size_t > | sizes_ |
Definition at line 19 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
HeterogeneousHGCalHEFCellPositionsConditions::HeterogeneousHGCalHEFCellPositionsConditions | ( | cpos::HGCalPositionsMapping * | cpuPos | ) |
Definition at line 4 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References allocate_memory_(), calculate_memory_bytes_(), chunk_, sizes_, transfer_data_to_heterogeneous_pointers_(), and transfer_data_to_heterogeneous_vars_().
HeterogeneousHGCalHEFCellPositionsConditions::~HeterogeneousHGCalHEFCellPositionsConditions | ( | ) |
Definition at line 134 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References cudaCheck, posmap_, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::x.
|
private |
Definition at line 13 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References cudaCheck, posmap_, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::x.
Referenced by HeterogeneousHGCalHEFCellPositionsConditions().
|
private |
Definition at line 97 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, dqmMemoryStats::float, hgcal_conditions::positions::Float, mps_fire::i, number_position_arrays, or, select_pointer_i_(), select_pointer_u_(), sizes_, and HcalDetIdTransform::transform().
Referenced by HeterogeneousHGCalHEFCellPositionsConditions().
hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct const * HeterogeneousHGCalHEFCellPositionsConditions::getHeterogeneousConditionsESProductAsync | ( | cudaStream_t | stream | ) | const |
Definition at line 225 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References chunk_, cudaCheck, data, KernelManagerHGCalCellPositions::fill_positions(), hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::firstLayer, dqmMemoryStats::float, hgcal_conditions::positions::Float, gpuData_, HeterogeneousHGCalHEFCellPositionsConditions::GPUData::host, dqmiolumiharvest::j, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::lastLayer, hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct::nelems_posmap, nelems_posmap_, number_position_arrays, hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct::posmap, posmap_, select_pointer_f_(), select_pointer_i_(), select_pointer_u_(), hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::sensorSeparation, sizes_, cms::cuda::stream, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferMax, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferMin, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferSize.
|
private |
Definition at line 140 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, B2GTnPMonitor_cfi::item, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::x, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::y, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::zLayer.
Referenced by getHeterogeneousConditionsESProductAsync(), and transfer_data_to_heterogeneous_pointers_().
|
private |
Definition at line 156 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, B2GTnPMonitor_cfi::item, and hgcal_conditions::positions::HGCalPositionsMapping::zLayer.
|
private |
Definition at line 168 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, B2GTnPMonitor_cfi::item, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::nCellsHexagon, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::nCellsLayer, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::nCellsWaferUChunk.
Referenced by calculate_memory_bytes_(), getHeterogeneousConditionsESProductAsync(), and transfer_data_to_heterogeneous_pointers_().
|
private |
Definition at line 184 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, B2GTnPMonitor_cfi::item, hgcal_conditions::positions::HGCalPositionsMapping::nCellsHexagon, hgcal_conditions::positions::HGCalPositionsMapping::nCellsLayer, and hgcal_conditions::positions::HGCalPositionsMapping::nCellsWaferUChunk.
|
private |
Definition at line 200 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::detid, Exception, and B2GTnPMonitor_cfi::item.
Referenced by calculate_memory_bytes_(), getHeterogeneousConditionsESProductAsync(), and transfer_data_to_heterogeneous_pointers_().
|
private |
Definition at line 212 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References hgcal_conditions::positions::HGCalPositionsMapping::detid, Exception, and B2GTnPMonitor_cfi::item.
|
private |
Definition at line 19 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References Exception, dqmMemoryStats::float, hgcal_conditions::positions::Float, mps_fire::i, dqmiolumiharvest::j, number_position_arrays, posmap_, select_pointer_f_(), select_pointer_i_(), select_pointer_u_(), and edm::shift.
Referenced by HeterogeneousHGCalHEFCellPositionsConditions().
|
private |
Definition at line 86 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.
References hgcal_conditions::positions::HGCalPositionsMapping::detid, hgcal_conditions::positions::HGCalPositionsMapping::firstLayer, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::firstLayer, hgcal_conditions::positions::HGCalPositionsMapping::lastLayer, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::lastLayer, nelems_posmap_, posmap_, hgcal_conditions::positions::HGCalPositionsMapping::sensorSeparation, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::sensorSeparation, hgcal_conditions::positions::HGCalPositionsMapping::waferMax, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferMax, hgcal_conditions::positions::HGCalPositionsMapping::waferMin, hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferMin, hgcal_conditions::positions::HGCalPositionsMapping::waferSize, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::waferSize.
Referenced by HeterogeneousHGCalHEFCellPositionsConditions().
|
private |
Definition at line 39 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
Referenced by getHeterogeneousConditionsESProductAsync(), and HeterogeneousHGCalHEFCellPositionsConditions().
|
private |
Definition at line 72 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
Referenced by getHeterogeneousConditionsESProductAsync().
|
private |
Definition at line 36 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
Referenced by getHeterogeneousConditionsESProductAsync(), and transfer_data_to_heterogeneous_vars_().
|
private |
Definition at line 40 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
Referenced by calculate_memory_bytes_(), getHeterogeneousConditionsESProductAsync(), and transfer_data_to_heterogeneous_pointers_().
|
private |
|
private |
Definition at line 38 of file HeterogeneousHGCalHEFCellPositionsConditions.h.
Referenced by calculate_memory_bytes_(), getHeterogeneousConditionsESProductAsync(), and HeterogeneousHGCalHEFCellPositionsConditions().