Geant4-11
Public Member Functions | Private Attributes
MCGIDI_quantitiesLookupModes Class Reference

#include <MCGIDI.h>

Public Member Functions

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

Private Attributes

enum MCGIDI_quantityLookupMode mCrossSectionMode
 
int mGroupIndex
 
enum MCGIDI_quantityLookupMode mMultiplicityMode
 
double mProjectileEnergy
 
double mProjectileEnergyForGroupIndex
 
int mProjectilesPOPID
 
double mTemperature
 

Detailed Description

Definition at line 82 of file MCGIDI.h.

Constructor & Destructor Documentation

◆ MCGIDI_quantitiesLookupModes()

MCGIDI_quantitiesLookupModes::MCGIDI_quantitiesLookupModes ( int  projectilesPOPID)

◆ ~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

◆ getGroupIndex()

int MCGIDI_quantitiesLookupModes::getGroupIndex ( void  ) const
inline

◆ 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}

References mCrossSectionMode, and mMultiplicityMode.

◆ getProjectileEnergy()

double MCGIDI_quantitiesLookupModes::getProjectileEnergy ( void  ) const
inline

◆ 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
41 return( mGroupIndex );
42}
int getGroupIndexFromEnergy(double e_in, bool encloseOutOfRange) const

References GIDI_settings_particle::getGroupIndexFromEnergy(), GIDI_settings::getParticle(), mGroupIndex, mProjectileEnergy, mProjectileEnergyForGroupIndex, and mProjectilesPOPID.

◆ 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}

References mCrossSectionMode, and mMultiplicityMode.

◆ 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}

References mCrossSectionMode, and mMultiplicityMode.

◆ setProjectileEnergy()

void MCGIDI_quantitiesLookupModes::setProjectileEnergy ( double  e_in)
inline

◆ setTemperature()

void MCGIDI_quantitiesLookupModes::setTemperature ( double  temperature)
inline

Field Documentation

◆ mCrossSectionMode

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::mCrossSectionMode
private

◆ mGroupIndex

int MCGIDI_quantitiesLookupModes::mGroupIndex
private

Definition at line 87 of file MCGIDI.h.

Referenced by getGroupIndex(), MCGIDI_quantitiesLookupModes(), and setGroupIndex().

◆ mMultiplicityMode

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::mMultiplicityMode
private

Definition at line 91 of file MCGIDI.h.

Referenced by getMode(), MCGIDI_quantitiesLookupModes(), setMode(), and setModeAll().

◆ mProjectileEnergy

double MCGIDI_quantitiesLookupModes::mProjectileEnergy
private

◆ mProjectileEnergyForGroupIndex

double MCGIDI_quantitiesLookupModes::mProjectileEnergyForGroupIndex
private

Definition at line 88 of file MCGIDI.h.

Referenced by MCGIDI_quantitiesLookupModes(), and setGroupIndex().

◆ mProjectilesPOPID

int MCGIDI_quantitiesLookupModes::mProjectilesPOPID
private

Definition at line 85 of file MCGIDI.h.

Referenced by MCGIDI_quantitiesLookupModes(), and setGroupIndex().

◆ mTemperature

double MCGIDI_quantitiesLookupModes::mTemperature
private

Definition at line 89 of file MCGIDI.h.

Referenced by getTemperature(), MCGIDI_quantitiesLookupModes(), and setTemperature().


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