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

#include <MCGIDI_sampling.hpp>

Inheritance diagram for MCGIDI::Sampling::StdVectorProductHandler:

Public Member Functions

LUPI_HOST_DEVICE StdVectorProductHandler ()
LUPI_HOST_DEVICE ~StdVectorProductHandler ()
LUPI_HOST_DEVICE std::size_t size ()
LUPI_HOST_DEVICE Productoperator[] (std::size_t a_index)
LUPI_HOST_DEVICE std::vector< Product > & products ()
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 284 of file MCGIDI_sampling.hpp.

Constructor & Destructor Documentation

◆ StdVectorProductHandler()

LUPI_HOST_DEVICE MCGIDI::Sampling::StdVectorProductHandler::StdVectorProductHandler ( )
inline

Definition at line 290 of file MCGIDI_sampling.hpp.

290: m_products( ) { }

◆ ~StdVectorProductHandler()

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

Definition at line 291 of file MCGIDI_sampling.hpp.

291{ }

Member Function Documentation

◆ clear()

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

Definition at line 297 of file MCGIDI_sampling.hpp.

297{ m_products.clear( ); }

◆ operator[]()

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

Definition at line 294 of file MCGIDI_sampling.hpp.

294{ return( m_products[a_index] ); }

◆ products()

LUPI_HOST_DEVICE std::vector< Product > & MCGIDI::Sampling::StdVectorProductHandler::products ( )
inline

Definition at line 295 of file MCGIDI_sampling.hpp.

295{ return( m_products ); }

◆ push_back()

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

Definition at line 296 of file MCGIDI_sampling.hpp.

296{ m_products.push_back( a_product ); }

Referenced by G4GIDI_target::getFinalState().

◆ size()

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

Definition at line 293 of file MCGIDI_sampling.hpp.

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

Referenced by G4GIDI_target::getFinalState().


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