Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
MCGIDI_samplingSettings Class Reference

#include <MCGIDI.h>

Public Member Functions

 MCGIDI_samplingSettings (enum GIDI::xDataTOM_frame frame, bool wantVelocities, double(*rng)(void *), void *rngState)
 
 ~MCGIDI_samplingSettings ()
 
double getProductMultiplicityBias (int PoPID) const
 
int setProductMultiplicityBias (GIDI::statusMessageReporting *smr, int PoPID, double fractor)
 

Public Attributes

enum GIDI::xDataTOM_frame mGotFrame
 
GIDI::MCGIDI_POP * mPoP
 
double mMu
 
double mEp
 

Detailed Description

Definition at line 124 of file MCGIDI.h.

Constructor & Destructor Documentation

◆ MCGIDI_samplingSettings()

MCGIDI_samplingSettings::MCGIDI_samplingSettings ( enum GIDI::xDataTOM_frame frame,
bool wantVelocities,
double(* rng )(void *),
void * rngState )

Definition at line 27 of file MCGIDI_samplingSettings.cc.

27 {
28
29 mWantFrame = frame;
30 mWantVelocities = wantVelocities;
31 mRng = rng;
32 mRngState = rngState;
33
35 mPoP = NULL;
36 mMu = 0.;
37 mEp = 0.;
38}
GIDI::MCGIDI_POP * mPoP
Definition MCGIDI.h:135
enum GIDI::xDataTOM_frame mGotFrame
Definition MCGIDI.h:134
@ xDataTOM_frame_invalid
Definition xDataTOM.h:23

◆ ~MCGIDI_samplingSettings()

MCGIDI_samplingSettings::~MCGIDI_samplingSettings ( void )

Definition at line 42 of file MCGIDI_samplingSettings.cc.

42 {
43
44}

Member Function Documentation

◆ getProductMultiplicityBias()

double MCGIDI_samplingSettings::getProductMultiplicityBias ( int PoPID) const
inline

Definition at line 143 of file MCGIDI.h.

143 {
144 for( int i1 = 0; i1 < (int) mSamplingMultiplicityBiases.size( ); ++i1 ) {
145 if( PoPID == mSamplingMultiplicityBiases[i1].PoPID ) return( mSamplingMultiplicityBiases[i1].multiplicityFactor );
146 }
147 return( 1. ); }

◆ setProductMultiplicityBias()

int MCGIDI_samplingSettings::setProductMultiplicityBias ( GIDI::statusMessageReporting * smr,
int PoPID,
double fractor )

Definition at line 48 of file MCGIDI_samplingSettings.cc.

48 {
49
50 if( factor < 0 ) {
51 smr_setReportError2( smr, smr_unknownID, 1, "factor = %e cannot be negative", factor );
52 return( 1 );
53 }
54
55 for( int i1 = 0; i1 < (int) mSamplingMultiplicityBiases.size( ); ++i1 ) {
56 if( PoPID == mSamplingMultiplicityBiases[i1].PoPID ) {
57 mSamplingMultiplicityBiases[i1].multiplicityFactor = factor;
58 return( 0 );
59 }
60 }
61 MCGIDI_samplingMultiplicityBias samplingMultiplicityBias = { PoPID, factor };
62 mSamplingMultiplicityBiases.push_back( samplingMultiplicityBias );
63 return( 0 );
64}
#define smr_setReportError2(smr, libraryID, code, fmt,...)
#define smr_unknownID

Member Data Documentation

◆ mEp

double MCGIDI_samplingSettings::mEp

Definition at line 137 of file MCGIDI.h.

Referenced by MCGIDI_samplingSettings().

◆ mGotFrame

enum GIDI::xDataTOM_frame MCGIDI_samplingSettings::mGotFrame

Definition at line 134 of file MCGIDI.h.

Referenced by MCGIDI_samplingSettings().

◆ mMu

double MCGIDI_samplingSettings::mMu

Definition at line 136 of file MCGIDI.h.

Referenced by MCGIDI_samplingSettings().

◆ mPoP

GIDI::MCGIDI_POP* MCGIDI_samplingSettings::mPoP

Definition at line 135 of file MCGIDI.h.

Referenced by MCGIDI_samplingSettings().


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