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

#include <MCGIDI_functions.hpp>

Inheritance diagram for MCGIDI::Probabilities::DiscreteGamma2d:

Public Member Functions

LUPI_HOST_DEVICE DiscreteGamma2d ()
LUPI_HOST DiscreteGamma2d (GIDI::Functions::DiscreteGamma2d const &a_discreteGamma2d)
LUPI_HOST_DEVICE ~DiscreteGamma2d ()
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, LUPI_maybeUnused 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 527 of file MCGIDI_functions.hpp.

Constructor & Destructor Documentation

◆ DiscreteGamma2d() [1/2]

LUPI_HOST_DEVICE MCGIDI::Probabilities::DiscreteGamma2d::DiscreteGamma2d ( )

Definition at line 1781 of file MCGIDI_functions.cc.

◆ DiscreteGamma2d() [2/2]

LUPI_HOST MCGIDI::Probabilities::DiscreteGamma2d::DiscreteGamma2d ( GIDI::Functions::DiscreteGamma2d const & a_discreteGamma2d)

Definition at line 1789 of file MCGIDI_functions.cc.

1789 :
1790 ProbabilityBase2d_d2( a_discreteGamma2d ),
1791 m_value( a_discreteGamma2d.value( ) ) {
1792
1794}

◆ ~DiscreteGamma2d()

LUPI_HOST_DEVICE MCGIDI::Probabilities::DiscreteGamma2d::~DiscreteGamma2d ( )

Definition at line 1799 of file MCGIDI_functions.cc.

1799 {
1800
1801}

Member Function Documentation

◆ evaluate()

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

Returns the energy of the discrete gamma.

Parameters
a_x2[in] The is ignored.
a_x1[in] The is ignored.
Returns
The energy of the discrete gamma.

Definition at line 537 of file MCGIDI_functions.hpp.

537{ return( m_value ); } // FIXME This is wrong, should be something like 1 when domainMin <= a_x1 <= domainMax ), I think. I.e., should be a probability.

◆ sample()

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

Definition at line 539 of file MCGIDI_functions.hpp.

539{ return( m_value ); }

◆ serialize()

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

This method serializes this for broadcasting as needed for MPI and GPUs. The method can count the number of required bytes, pack this or unpack this depending on a_mode.

Parameters
a_buffer[in] The buffer to read or write data to depending on a_mode.
a_mode[in] Specifies the action of this method.

Definition at line 1811 of file MCGIDI_functions.cc.

1811 {
1812
1813 ProbabilityBase2d::serialize( a_buffer, a_mode );
1814 DATA_MEMBER_DOUBLE( m_value, a_buffer, a_mode );
1815}
#define DATA_MEMBER_DOUBLE(member, buf, 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: