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

#include <MCGIDI.h>

Public Member Functions

 MCGIDI_quantitiesLookupModes (int projectilesPOPID)
 
 ~MCGIDI_quantitiesLookupModes ()
 
double getProjectileEnergy (void) const
 
void setProjectileEnergy (double e_in)
 
int getGroupIndex (void) const
 
int setGroupIndex (GIDI_settings const &settings, bool encloseOutOfRange)
 
double getTemperature (void) const
 
void setTemperature (double temperature)
 
enum MCGIDI_quantityLookupMode getMode (std::string const &quantity) const
 
enum MCGIDI_quantityLookupMode getCrossSectionMode (void) const
 
std::vector< std::string > getListOfLookupQuanities () const
 
void setMode (std::string const &quantity, enum MCGIDI_quantityLookupMode mode)
 
void setCrossSectionMode (enum MCGIDI_quantityLookupMode mode)
 
void setModeAll (enum MCGIDI_quantityLookupMode mode)
 

Detailed Description

Definition at line 82 of file MCGIDI.h.

Constructor & Destructor Documentation

◆ MCGIDI_quantitiesLookupModes()

MCGIDI_quantitiesLookupModes::MCGIDI_quantitiesLookupModes ( int  projectilesPOPID)

Definition at line 12 of file MCGIDI_quantitiesLookupMode.cc.

12 {
13
14 mProjectilesPOPID = projectilesPOPID;
15 mProjectileEnergy = -1.;
16 mGroupIndex = -1;
17 mProjectileEnergyForGroupIndex = -1.;
18 mTemperature = 0.;
19 mCrossSectionMode = MCGIDI_quantityLookupMode_pointwise;
20 mMultiplicityMode = MCGIDI_quantityLookupMode_pointwise;
21}
@ MCGIDI_quantityLookupMode_pointwise
Definition: MCGIDI.h:78

◆ ~MCGIDI_quantitiesLookupModes()

MCGIDI_quantitiesLookupModes::~MCGIDI_quantitiesLookupModes ( )

Definition at line 25 of file MCGIDI_quantitiesLookupMode.cc.

25 {
26
27}

Member Function Documentation

◆ getCrossSectionMode()

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::getCrossSectionMode ( void  ) const
inline

Definition at line 107 of file MCGIDI.h.

107{ return( mCrossSectionMode ); };

Referenced by MCGIDI_reaction_getCrossSectionAtE(), MCGIDI_target_heated_getTotalCrossSectionAtE(), and MCGIDI_target_sampleReaction().

◆ getGroupIndex()

int MCGIDI_quantitiesLookupModes::getGroupIndex ( void  ) const
inline

Definition at line 100 of file MCGIDI.h.

100{ return( mGroupIndex ); }

Referenced by MCGIDI_reaction_getCrossSectionAtE(), MCGIDI_target_heated_getTotalCrossSectionAtE(), and MCGIDI_target_sampleReaction().

◆ getListOfLookupQuanities()

std::vector< std::string > MCGIDI_quantitiesLookupModes::getListOfLookupQuanities ( ) const

Definition at line 59 of file MCGIDI_quantitiesLookupMode.cc.

59 {
60
61 std::vector<std::string> quanities;
62
63 quanities.push_back( std::string( "cross section" ) );
64 quanities.push_back( std::string( "multiplicity" ) );
65
66 return( quanities );
67}

◆ getMode()

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::getMode ( std::string const &  quantity) const

Definition at line 46 of file MCGIDI_quantitiesLookupMode.cc.

46 {
47
48 if( quantity == std::string( "cross section" ) ) {
49 return( mCrossSectionMode ); }
50 else if( quantity == std::string( "multiplicity" ) ) {
51 return( mMultiplicityMode ); }
52 else {
53 throw 1;
54 }
55}

◆ getProjectileEnergy()

◆ getTemperature()

double MCGIDI_quantitiesLookupModes::getTemperature ( void  ) const
inline

◆ setCrossSectionMode()

void MCGIDI_quantitiesLookupModes::setCrossSectionMode ( enum MCGIDI_quantityLookupMode  mode)
inline

◆ setGroupIndex()

int MCGIDI_quantitiesLookupModes::setGroupIndex ( GIDI_settings const &  settings,
bool  encloseOutOfRange 
)

Definition at line 31 of file MCGIDI_quantitiesLookupMode.cc.

31 {
32
33 GIDI_settings_particle const *particle = settings.getParticle( mProjectilesPOPID );
34 if( particle == NULL ) throw 1;
35
36 mGroupIndex = particle->getGroupIndexFromEnergy( mProjectileEnergy, encloseOutOfRange );
37 if( mGroupIndex == -3 ) throw 1;
38
39 mProjectileEnergyForGroupIndex = mProjectileEnergy;
40 if( mGroupIndex < 0 ) mProjectileEnergyForGroupIndex = -1;
41 return( mGroupIndex );
42}
int getGroupIndexFromEnergy(double e_in, bool encloseOutOfRange) const

◆ setMode()

void MCGIDI_quantitiesLookupModes::setMode ( std::string const &  quantity,
enum MCGIDI_quantityLookupMode  mode 
)

Definition at line 71 of file MCGIDI_quantitiesLookupMode.cc.

71 {
72
73 if( quantity == std::string( "cross section" ) ) {
74 mCrossSectionMode = mode; }
75 else if( quantity == std::string( "multiplicity" ) ) {
76 mMultiplicityMode = mode; }
77 else {
78 throw 1;
79 }
80}

◆ setModeAll()

void MCGIDI_quantitiesLookupModes::setModeAll ( enum MCGIDI_quantityLookupMode  mode)

Definition at line 84 of file MCGIDI_quantitiesLookupMode.cc.

84 {
85
86 mCrossSectionMode = mode;
87 mMultiplicityMode = mode;
88}

◆ setProjectileEnergy()

void MCGIDI_quantitiesLookupModes::setProjectileEnergy ( double  e_in)
inline

◆ setTemperature()

void MCGIDI_quantitiesLookupModes::setTemperature ( double  temperature)
inline

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