Geant4  10.02.p03
MCGIDI_quantitiesLookupModes Class Reference

#include <MCGIDI.h>

Collaboration diagram for MCGIDI_quantitiesLookupModes:

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)
 

Private Attributes

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

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;
18  mTemperature = 0.;
21 }
enum MCGIDI_quantityLookupMode mMultiplicityMode
Definition: MCGIDI.h:91
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90
double mProjectileEnergyForGroupIndex
Definition: MCGIDI.h:88

◆ ~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 ); };
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90
Here is the caller graph for this function:

◆ getGroupIndex()

int MCGIDI_quantitiesLookupModes::getGroupIndex ( void  ) const
inline

Definition at line 100 of file MCGIDI.h.

100 { return( mGroupIndex ); }
Here is the caller graph for this function:

◆ 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 }
enum MCGIDI_quantityLookupMode mMultiplicityMode
Definition: MCGIDI.h:91
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90

◆ getProjectileEnergy()

double MCGIDI_quantitiesLookupModes::getProjectileEnergy ( void  ) const
inline

Definition at line 97 of file MCGIDI.h.

97 { return( mProjectileEnergy ); }
Here is the caller graph for this function:

◆ getTemperature()

double MCGIDI_quantitiesLookupModes::getTemperature ( void  ) const
inline

Definition at line 103 of file MCGIDI.h.

103 { return( mTemperature ); }
Here is the caller graph for this function:

◆ setCrossSectionMode()

void MCGIDI_quantitiesLookupModes::setCrossSectionMode ( enum MCGIDI_quantityLookupMode  mode)
inline

Definition at line 110 of file MCGIDI.h.

110 { mCrossSectionMode = mode; };
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90
Here is the caller graph for this function:

◆ 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 }
double mProjectileEnergyForGroupIndex
Definition: MCGIDI.h:88
int getGroupIndexFromEnergy(double e_in, bool encloseOutOfRange) const
Here is the call graph for this function:

◆ 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 }
enum MCGIDI_quantityLookupMode mMultiplicityMode
Definition: MCGIDI.h:91
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90

◆ 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 }
enum MCGIDI_quantityLookupMode mMultiplicityMode
Definition: MCGIDI.h:91
enum MCGIDI_quantityLookupMode mCrossSectionMode
Definition: MCGIDI.h:90

◆ setProjectileEnergy()

void MCGIDI_quantitiesLookupModes::setProjectileEnergy ( double  e_in)
inline

Definition at line 98 of file MCGIDI.h.

98 { mProjectileEnergy = e_in; }
Here is the caller graph for this function:

◆ setTemperature()

void MCGIDI_quantitiesLookupModes::setTemperature ( double  temperature)
inline

Definition at line 104 of file MCGIDI.h.

104 { mTemperature = temperature; }
Here is the caller graph for this function:

Member Data Documentation

◆ mCrossSectionMode

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::mCrossSectionMode
private

Definition at line 90 of file MCGIDI.h.

◆ mGroupIndex

int MCGIDI_quantitiesLookupModes::mGroupIndex
private

Definition at line 87 of file MCGIDI.h.

◆ mMultiplicityMode

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::mMultiplicityMode
private

Definition at line 91 of file MCGIDI.h.

◆ mProjectileEnergy

double MCGIDI_quantitiesLookupModes::mProjectileEnergy
private

Definition at line 86 of file MCGIDI.h.

◆ mProjectileEnergyForGroupIndex

double MCGIDI_quantitiesLookupModes::mProjectileEnergyForGroupIndex
private

Definition at line 88 of file MCGIDI.h.

◆ mProjectilesPOPID

int MCGIDI_quantitiesLookupModes::mProjectilesPOPID
private

Definition at line 85 of file MCGIDI.h.

◆ mTemperature

double MCGIDI_quantitiesLookupModes::mTemperature
private

Definition at line 89 of file MCGIDI.h.


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