ATLAS Offline Software
Loading...
Searching...
No Matches
GeoLoadGpu Class Reference

#include <GeoLoadGpu.h>

Collaboration diagram for GeoLoadGpu:

Public Member Functions

 GeoLoadGpu ()=default
 ~GeoLoadGpu ()
void set_ncells (unsigned long nc)
void set_nregions (unsigned int nr)
void set_cellmap (t_cellmap_Gpu *cm)
t_cellmap_Gpuset_cellmap ()
void set_regions (GeoRegion *r)
void set_g_regions (GeoRegion *gr)
void set_cells_g (CaloDetDescrElement_Gpu *gc)
void set_max_sample (int s)
void set_sample_index_h (Rg_Sample_Index *s)
const CaloDetDescrElement_Gpuindex2cell (unsigned long index)
t_cellmap_Gpuget_cellmap ()
bool LoadGpu ()
bool LoadGpu_kk ()
bool LoadGpu_cu ()
void set_geoPtr (GeoGpu *ptr)
GeoGpuget_geoPtr () const
unsigned long get_ncells () const

Protected Attributes

unsigned long m_ncells {0}
unsigned int m_nregions {0}
t_cellmap_Gpum_cells {0}
GeoRegionm_regions {0}
GeoRegionm_regions_d {0}
CaloDetDescrElement_Gpum_cells_d {0}
Identifier_Gpum_cellid_array {0}
int m_max_sample {0}
Rg_Sample_Indexm_sample_index_h {0}
GeoGpum_geo_d {0}

Private Member Functions

bool TestGeo ()
bool SanityCheck ()

Detailed Description

Definition at line 17 of file GeoLoadGpu.h.

Constructor & Destructor Documentation

◆ GeoLoadGpu()

GeoLoadGpu::GeoLoadGpu ( )
default

◆ ~GeoLoadGpu()

GeoLoadGpu::~GeoLoadGpu ( )
inline

Definition at line 21 of file GeoLoadGpu.h.

21 {
22 delete m_cellid_array;
23 }
Identifier_Gpu * m_cellid_array
Definition GeoLoadGpu.h:61

Member Function Documentation

◆ get_cellmap()

t_cellmap_Gpu * GeoLoadGpu::get_cellmap ( )
inline

Definition at line 36 of file GeoLoadGpu.h.

36{ return m_cells; };
t_cellmap_Gpu * m_cells
Definition GeoLoadGpu.h:57

◆ get_geoPtr()

GeoGpu * GeoLoadGpu::get_geoPtr ( ) const
inline

Definition at line 44 of file GeoLoadGpu.h.

44{ return m_geo_d; }
GeoGpu * m_geo_d
Definition GeoLoadGpu.h:65

◆ get_ncells()

unsigned long GeoLoadGpu::get_ncells ( ) const
inline

Definition at line 46 of file GeoLoadGpu.h.

46{ return m_ncells; }
unsigned long m_ncells
Definition GeoLoadGpu.h:55

◆ index2cell()

const CaloDetDescrElement_Gpu * GeoLoadGpu::index2cell ( unsigned long index)
inline

Definition at line 34 of file GeoLoadGpu.h.

34{ return ( *m_cells )[m_cellid_array[index]]; };
str index
Definition DeMoScan.py:362

◆ LoadGpu()

bool GeoLoadGpu::LoadGpu ( )
inline

Definition at line 37 of file GeoLoadGpu.h.

37 {
38 return LoadGpu_cu();
39 }
bool LoadGpu_cu()

◆ LoadGpu_cu()

bool GeoLoadGpu::LoadGpu_cu ( )

◆ LoadGpu_kk()

bool GeoLoadGpu::LoadGpu_kk ( )

◆ SanityCheck()

bool GeoLoadGpu::SanityCheck ( )
private

◆ set_cellmap() [1/2]

t_cellmap_Gpu * GeoLoadGpu::set_cellmap ( )
inline

Definition at line 28 of file GeoLoadGpu.h.

28{ return m_cells ; };

◆ set_cellmap() [2/2]

void GeoLoadGpu::set_cellmap ( t_cellmap_Gpu * cm)
inline

◆ set_cells_g()

void GeoLoadGpu::set_cells_g ( CaloDetDescrElement_Gpu * gc)
inline

Definition at line 31 of file GeoLoadGpu.h.

31{ m_cells_d = gc; };
CaloDetDescrElement_Gpu * m_cells_d
Definition GeoLoadGpu.h:60

◆ set_g_regions()

void GeoLoadGpu::set_g_regions ( GeoRegion * gr)
inline

Definition at line 30 of file GeoLoadGpu.h.

30{ m_regions_d = gr; };
#define gr
GeoRegion * m_regions_d
Definition GeoLoadGpu.h:59

◆ set_geoPtr()

void GeoLoadGpu::set_geoPtr ( GeoGpu * ptr)
inline

Definition at line 43 of file GeoLoadGpu.h.

43{ m_geo_d = ptr; }
void * ptr(T *p)
Definition SGImplSvc.cxx:74

◆ set_max_sample()

void GeoLoadGpu::set_max_sample ( int s)
inline

Definition at line 32 of file GeoLoadGpu.h.

◆ set_ncells()

void GeoLoadGpu::set_ncells ( unsigned long nc)
inline

Definition at line 25 of file GeoLoadGpu.h.

◆ set_nregions()

void GeoLoadGpu::set_nregions ( unsigned int nr)
inline

Definition at line 26 of file GeoLoadGpu.h.

26{ m_nregions = nr; };
unsigned int m_nregions
Definition GeoLoadGpu.h:56

◆ set_regions()

void GeoLoadGpu::set_regions ( GeoRegion * r)
inline

Definition at line 29 of file GeoLoadGpu.h.

29{ m_regions = r; };
GeoRegion * m_regions
Definition GeoLoadGpu.h:58
int r
Definition globals.cxx:22

◆ set_sample_index_h()

void GeoLoadGpu::set_sample_index_h ( Rg_Sample_Index * s)
inline

Definition at line 33 of file GeoLoadGpu.h.

33{ m_sample_index_h = s; };
Rg_Sample_Index * m_sample_index_h
Definition GeoLoadGpu.h:63

◆ TestGeo()

bool GeoLoadGpu::TestGeo ( )
private

Member Data Documentation

◆ m_cellid_array

Identifier_Gpu* GeoLoadGpu::m_cellid_array {0}
protected

Definition at line 61 of file GeoLoadGpu.h.

61{0}; // cell id to Indentifier lookup table

◆ m_cells

t_cellmap_Gpu* GeoLoadGpu::m_cells {0}
protected

Definition at line 57 of file GeoLoadGpu.h.

57{0}; // from Geometry class

◆ m_cells_d

CaloDetDescrElement_Gpu* GeoLoadGpu::m_cells_d {0}
protected

Definition at line 60 of file GeoLoadGpu.h.

60{0}; // Cells in GPU

◆ m_geo_d

GeoGpu* GeoLoadGpu::m_geo_d {0}
protected

Definition at line 65 of file GeoLoadGpu.h.

65{0};

◆ m_max_sample

int GeoLoadGpu::m_max_sample {0}
protected

Definition at line 62 of file GeoLoadGpu.h.

62{0}; // Max number of samples

◆ m_ncells

unsigned long GeoLoadGpu::m_ncells {0}
protected

Definition at line 55 of file GeoLoadGpu.h.

55{0}; // number of cells

◆ m_nregions

unsigned int GeoLoadGpu::m_nregions {0}
protected

Definition at line 56 of file GeoLoadGpu.h.

56{0}; // number of regions

◆ m_regions

GeoRegion* GeoLoadGpu::m_regions {0}
protected

Definition at line 58 of file GeoLoadGpu.h.

58{0}; // array of regions on host

◆ m_regions_d

GeoRegion* GeoLoadGpu::m_regions_d {0}
protected

Definition at line 59 of file GeoLoadGpu.h.

59{0}; // array of region on GPU

◆ m_sample_index_h

Rg_Sample_Index* GeoLoadGpu::m_sample_index_h {0}
protected

Definition at line 63 of file GeoLoadGpu.h.

63{0}; // index for flatout of GeoLookup over sample

The documentation for this class was generated from the following file: