|
GGEMS
1.1
GPU GEant4-based Monte Carlo Simulations
|
Go to the documentation of this file. 1 #ifndef GUARD_GGEMS_PHYSICS_GGEMSPARTICLES_HH
2 #define GUARD_GGEMS_PHYSICS_GGEMSPARTICLES_HH
92 void Initialize(
void);
108 void SetNumberOfParticles(
GGsize const& thread_index,
GGsize const& number_of_particles);
124 bool IsAlive(
GGsize const& thread_index)
const;
131 void Dump(std::string
const& message)
const;
138 void AllocatePrimaryParticles(
void);
144 void InitializeKernel(
void);
154 #endif // End of GUARD_GGEMS_PHYSICS_GGEMSPARTICLES_HH
Class managing the particles in GGEMS.
GGEMSParticles(GGEMSParticles const &&particle)=delete
Avoid copy of the class by rvalue reference.
GGsize GetNumberOfParticles(GGsize const &thread_index) const
Get the number of particles on activated device.
std::map< GGchar, std::string > ParticleTypeMap
GGEMSParticles(GGEMSParticles const &particle)=delete
Avoid copy of the class by reference.
cl::Buffer ** primary_particles_
GGsize * number_of_particles_
Storing particle states for GGEMS.
std::map< GGchar, std::string > ParticleStatusMap
GGsize number_activated_devices_
Singleton class storing all informations about OpenCL and managing GPU/CPU devices,...
void Dump(std::string const &message) const
dump particle infos
std::map< GGchar, std::string > ParticleLevelMap
GGEMSParticles & operator=(GGEMSParticles const &&particle)=delete
Avoid copy of the class by rvalue reference.
GGEMSParticles & operator=(GGEMSParticles const &particle)=delete
Avoid assignement of the class by reference.
cl::Kernel ** kernel_alive_
cl::Buffer * GetPrimaryParticles(GGsize const &thread_index) const
return the pointer to OpenCL buffer storing particles