Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ( 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_quantitiesLookupModes::~MCGIDI_quantitiesLookupModes ( )

Definition at line 25 of file MCGIDI_quantitiesLookupMode.cc.

25  {
26 
27 }

Member Function Documentation

enum MCGIDI_quantityLookupMode MCGIDI_quantitiesLookupModes::getCrossSectionMode ( void  ) const
inline

Definition at line 107 of file MCGIDI.h.

107 { return( mCrossSectionMode ); };

Here is the caller graph for this function:

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:

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

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:

void MCGIDI_quantitiesLookupModes::setCrossSectionMode ( enum MCGIDI_quantityLookupMode  mode)
inline

Definition at line 110 of file MCGIDI.h.

110 { mCrossSectionMode = mode; };

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

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:


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