Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
MCGIDI::Sampling::MCGIDIVectorProductHandler Class Reference

#include <MCGIDI_sampling.hpp>

Inheritance diagram for MCGIDI::Sampling::MCGIDIVectorProductHandler:

Public Member Functions

LUPI_HOST_DEVICE MCGIDIVectorProductHandler (std::size_t a_size=20)
LUPI_HOST_DEVICE ~MCGIDIVectorProductHandler ()
LUPI_HOST_DEVICE std::size_t size ()
LUPI_HOST_DEVICE Product const & operator[] (std::size_t a_index) const
LUPI_HOST_DEVICE Vector< Product > const & products () const
LUPI_HOST_DEVICE void push_back (Product &a_product)
LUPI_HOST_DEVICE void clear ()
Public Member Functions inherited from MCGIDI::Sampling::ProductHandler
LUPI_HOST_DEVICE ProductHandler ()
LUPI_HOST_DEVICE ~ProductHandler ()
template<typename RNG, typename PUSHBACK>
LUPI_HOST_DEVICE void add (double a_projectileEnergy, int a_productIntid, int a_productIndex, int a_userProductIndex, double a_productMass, Input &a_input, RNG &&a_rng, PUSHBACK &&push_back, bool isPhoton)

Detailed Description

Definition at line 306 of file MCGIDI_sampling.hpp.

Constructor & Destructor Documentation

◆ MCGIDIVectorProductHandler()

LUPI_HOST_DEVICE MCGIDI::Sampling::MCGIDIVectorProductHandler::MCGIDIVectorProductHandler ( std::size_t a_size = 20)
inline

Definition at line 312 of file MCGIDI_sampling.hpp.

312 :
313 m_products( ) {
314
315 m_products.reserve( a_size );
316 }

◆ ~MCGIDIVectorProductHandler()

LUPI_HOST_DEVICE MCGIDI::Sampling::MCGIDIVectorProductHandler::~MCGIDIVectorProductHandler ( )
inline

Definition at line 317 of file MCGIDI_sampling.hpp.

317{}

Member Function Documentation

◆ clear()

LUPI_HOST_DEVICE void MCGIDI::Sampling::MCGIDIVectorProductHandler::clear ( )
inline

Definition at line 323 of file MCGIDI_sampling.hpp.

323{ m_products.clear( ); }

◆ operator[]()

LUPI_HOST_DEVICE Product const & MCGIDI::Sampling::MCGIDIVectorProductHandler::operator[] ( std::size_t a_index) const
inline

Definition at line 320 of file MCGIDI_sampling.hpp.

320{ return( m_products[a_index] ); }

◆ products()

LUPI_HOST_DEVICE Vector< Product > const & MCGIDI::Sampling::MCGIDIVectorProductHandler::products ( ) const
inline

Definition at line 321 of file MCGIDI_sampling.hpp.

321{ return( m_products ); }

◆ push_back()

LUPI_HOST_DEVICE void MCGIDI::Sampling::MCGIDIVectorProductHandler::push_back ( Product & a_product)
inline

Definition at line 322 of file MCGIDI_sampling.hpp.

322{ m_products.push_back( a_product ); }

◆ size()

LUPI_HOST_DEVICE std::size_t MCGIDI::Sampling::MCGIDIVectorProductHandler::size ( )
inline

Definition at line 319 of file MCGIDI_sampling.hpp.

319{ return( m_products.size( ) ); }

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