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

#include <MCGIDI_functions.hpp>

Inheritance diagram for MCGIDI::Probabilities::Isotropic2d:

Public Member Functions

LUPI_HOST_DEVICE Isotropic2d ()
LUPI_HOST Isotropic2d (GIDI::Functions::Isotropic2d const &a_isotropic2d)
LUPI_HOST_DEVICE ~Isotropic2d ()
LUPI_HOST_DEVICE double evaluate (LUPI_maybeUnused double a_x2, LUPI_maybeUnused double a_x1) const
template<typename RNG>
LUPI_HOST_DEVICE double sample (LUPI_maybeUnused double a_x2, double a_rngValue, LUPI_maybeUnused RNG &&a_rng) const
LUPI_HOST_DEVICE void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
Public Member Functions inherited from MCGIDI::Probabilities::ProbabilityBase2d_d2
LUPI_HOST_DEVICE ProbabilityBase2d_d2 ()
LUPI_HOST ProbabilityBase2d_d2 (GIDI::Functions::FunctionForm const &a_probabilty)
LUPI_HOST ProbabilityBase2d_d2 (GIDI::Functions::FunctionForm const &a_probabilty, Vector< double > const &a_Xs)
LUPI_HOST_DEVICE double evaluate (double a_x2, double a_x1) const
template<typename RNG>
LUPI_HOST_DEVICE double sample (double a_x2, double a_rngValue, RNG &&a_rng) const
template<typename RNG>
LUPI_HOST_DEVICE double sample2dOf3d (double a_x2, double a_rngValue, RNG &&a_rng, double *a_x1_1, double *a_x1_2) const
Public Member Functions inherited from MCGIDI::Probabilities::ProbabilityBase2d_d1
LUPI_HOST_DEVICE ProbabilityBase2d_d1 ()
LUPI_HOST ProbabilityBase2d_d1 (GIDI::Functions::FunctionForm const &a_probabilty)
LUPI_HOST ProbabilityBase2d_d1 (GIDI::Functions::FunctionForm const &a_probabilty, Vector< double > const &a_Xs)
LUPI_HOST_DEVICE double evaluate (double a_x2, double a_x1) const
template<typename RNG>
LUPI_HOST_DEVICE double sample (double a_x2, double a_rngValue, RNG &&a_rng) const
template<typename RNG>
LUPI_HOST_DEVICE double sample2dOf3d (double a_x2, double a_rngValue, RNG &&a_rng, double *a_x1_1, double *a_x1_2) const
Public Member Functions inherited from MCGIDI::Probabilities::ProbabilityBase2d
LUPI_HOST_DEVICE ProbabilityBase2d ()
LUPI_HOST ProbabilityBase2d (GIDI::Functions::FunctionForm const &a_probabilty)
LUPI_HOST ProbabilityBase2d (GIDI::Functions::FunctionForm const &a_probabilty, Vector< double > const &a_Xs)
LUPI_HOST_DEVICE ~ProbabilityBase2d ()
LUPI_HOST_DEVICE ProbabilityBase2dType type () const
LUPI_HOST_DEVICE String typeString () const
LUPI_HOST_DEVICE MCGIDI_VIRTUAL_FUNCTION double evaluate (double a_x2, double a_x1) const MCGIDI_TRUE_VIRTUAL
template<typename RNG>
LUPI_HOST_DEVICE MCGIDI_VIRTUAL_FUNCTION double sample (double a_x2, double a_rngValue, RNG &&a_rng) const MCGIDI_TRUE_VIRTUAL
LUPI_HOST_DEVICE void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
template<typename RNG>
LUPI_HOST_DEVICE double sample (double a_x2, double a_rngValue, RNG &&a_rng) const
Public Member Functions inherited from MCGIDI::Probabilities::ProbabilityBase
LUPI_HOST_DEVICE ProbabilityBase ()
LUPI_HOST ProbabilityBase (GIDI::Functions::FunctionForm const &a_probabilty)
LUPI_HOST ProbabilityBase (GIDI::Functions::FunctionForm const &a_probabilty, Vector< double > const &a_Xs)
LUPI_HOST_DEVICE ~ProbabilityBase ()
LUPI_HOST_DEVICE void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
Public Member Functions inherited from MCGIDI::Functions::FunctionBase
LUPI_HOST_DEVICE FunctionBase ()
LUPI_HOST FunctionBase (GIDI::Functions::FunctionForm const &a_function)
LUPI_HOST_DEVICE FunctionBase (int a_dimension, double a_domainMin, double a_domainMax, Interpolation a_interpolation, double a_outerDomainValue=0)
virtual LUPI_HOST_DEVICE ~FunctionBase ()=0
LUPI_HOST_DEVICE Interpolation interpolation () const
LUPI_HOST_DEVICE double domainMin () const
LUPI_HOST_DEVICE double domainMax () const
LUPI_HOST_DEVICE double outerDomainValue () const
LUPI_HOST_DEVICE void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)

Additional Inherited Members

Protected Attributes inherited from MCGIDI::Probabilities::ProbabilityBase2d
ProbabilityBase2dType m_type
Protected Attributes inherited from MCGIDI::Probabilities::ProbabilityBase
Vector< double > m_Xs

Detailed Description

Definition at line 508 of file MCGIDI_functions.hpp.

Constructor & Destructor Documentation

◆ Isotropic2d() [1/2]

LUPI_HOST_DEVICE MCGIDI::Probabilities::Isotropic2d::Isotropic2d ( )

◆ Isotropic2d() [2/2]

LUPI_HOST MCGIDI::Probabilities::Isotropic2d::Isotropic2d ( GIDI::Functions::Isotropic2d const & a_isotropic2d)

Definition at line 1763 of file MCGIDI_functions.cc.

1763 :
1764 ProbabilityBase2d_d2( a_isotropic2d ) {
1765
1767}

◆ ~Isotropic2d()

LUPI_HOST_DEVICE MCGIDI::Probabilities::Isotropic2d::~Isotropic2d ( )

Definition at line 1772 of file MCGIDI_functions.cc.

1772 {
1773
1774}

Member Function Documentation

◆ evaluate()

double GIDI::Functions::Isotropic2d::evaluate ( LUPI_maybeUnused double a_x2,
LUPI_maybeUnused double a_x1 ) const
inline

Returns the value 0.5.

Parameters
a_x2[in] The is ignored.
a_x1[in] The is ignored.
Returns
The value 0.5.

Definition at line 515 of file MCGIDI_functions.hpp.

515{ return( 0.5 ); }

◆ sample()

template<typename RNG>
LUPI_HOST_DEVICE double MCGIDI::Probabilities::Isotropic2d::sample ( LUPI_maybeUnused double a_x2,
double a_rngValue,
LUPI_maybeUnused RNG && a_rng ) const
inline

Definition at line 517 of file MCGIDI_functions.hpp.

517{ return( 1. - 2. * a_rngValue ); }

◆ serialize()

LUPI_HOST_DEVICE void MCGIDI::Probabilities::Isotropic2d::serialize ( LUPI::DataBuffer & a_buffer,
LUPI::DataBuffer::Mode a_mode )
inline

Definition at line 518 of file MCGIDI_functions.hpp.

518 {
519 ProbabilityBase2d::serialize( a_buffer, a_mode ); }
LUPI_HOST_DEVICE void serialize(LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)

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