CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::VectorStackImpl Class Reference

Memory implementation of the most simple particle stack object. More...

#include <VectorStack.hpp>

Public Types

typedef std::vector< Code > code_vector_type
 
typedef std::vector< HEPEnergyTypekinetic_energy_vector_type
 
typedef std::vector< Pointpoint_vector_type
 
typedef std::vector< TimeTypetime_vector_type
 
typedef std::vector< DirectionVectordirection_vector_type
 

Public Member Functions

 VectorStackImpl (VectorStackImpl const &other)=default
 
 VectorStackImpl (VectorStackImpl &&other)=default
 
VectorStackImploperator= (VectorStackImpl const &other)=default
 
VectorStackImploperator= (VectorStackImpl &&other)=default
 
void dump () const
 
void clear ()
 
unsigned int getSize () const
 
unsigned int getCapacity () const
 
void setPID (size_t i, Code const id)
 
void setKineticEnergy (size_t i, HEPEnergyType const &e)
 
void setDirection (size_t i, DirectionVector const &v)
 
void setPosition (size_t i, Point const &v)
 
void setTime (size_t i, TimeType const &v)
 
Code getPID (size_t i) const
 
HEPEnergyType getKineticEnergy (size_t i) const
 
DirectionVector const & getDirection (size_t i) const
 
Point const & getPosition (size_t i) const
 
TimeType getTime (size_t i) const
 
void copy (size_t const i1, size_t const i2)
 Function to copy particle at location i2 in stack to i1.
 
void swap (size_t const i1, size_t const i2)
 Function to copy particle at location i2 in stack to i1.
 
void incrementSize ()
 
void decrementSize ()
 

Detailed Description

Memory implementation of the most simple particle stack object.

Note
if we ever want to have off-shell particles, we need to add momentum as HEPMomentumType, and a lot of care.

Definition at line 174 of file VectorStack.hpp.


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