14 mProjectilesPOPID = projectilesPOPID;
15 mProjectileEnergy = -1.;
17 mProjectileEnergyForGroupIndex = -1.;
34 if( particle == NULL )
throw 1;
37 if( mGroupIndex == -3 )
throw 1;
39 mProjectileEnergyForGroupIndex = mProjectileEnergy;
40 if( mGroupIndex < 0 ) mProjectileEnergyForGroupIndex = -1;
41 return( mGroupIndex );
48 if( quantity == std::string(
"cross section" ) ) {
49 return( mCrossSectionMode ); }
50 else if( quantity == std::string(
"multiplicity" ) ) {
51 return( mMultiplicityMode ); }
61 std::vector<std::string> quanities;
63 quanities.push_back( std::string(
"cross section" ) );
64 quanities.push_back( std::string(
"multiplicity" ) );
73 if( quantity == std::string(
"cross section" ) ) {
74 mCrossSectionMode = mode; }
75 else if( quantity == std::string(
"multiplicity" ) ) {
76 mMultiplicityMode = mode; }
86 mCrossSectionMode = mode;
87 mMultiplicityMode = mode;
MCGIDI_quantityLookupMode
@ MCGIDI_quantityLookupMode_pointwise
int getGroupIndexFromEnergy(double e_in, bool encloseOutOfRange) const
GIDI_settings_particle const * getParticle(int PoPId) const
enum MCGIDI_quantityLookupMode getMode(std::string const &quantity) const
MCGIDI_quantitiesLookupModes(int projectilesPOPID)
int setGroupIndex(GIDI_settings const &settings, bool encloseOutOfRange)
~MCGIDI_quantitiesLookupModes()
void setMode(std::string const &quantity, enum MCGIDI_quantityLookupMode mode)
void setModeAll(enum MCGIDI_quantityLookupMode mode)
std::vector< std::string > getListOfLookupQuanities() const