Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GIDI_settings_flux Class Reference

#include <GIDI_settings.hh>

Public Member Functions

 GIDI_settings_flux (std::string const &label, double temperature_MeV)
 
 GIDI_settings_flux (char const *label, double temperature_MeV)
 
 GIDI_settings_flux (GIDI_settings_flux const &flux)
 
 ~GIDI_settings_flux ()
 
GIDI_settings_flux_order const * operator[] (int order) const
 
int getMaxOrder (void) const
 
int size (void) const
 
std::string getLabel () const
 
bool isLabel (std::string const &label) const
 
bool isLabel (char const *label) const
 
double getTemperature () const
 
void addFluxOrder (GIDI_settings_flux_order const &fluxOrder)
 
void print (bool outline=true, int valuesPerLine=10) const
 

Detailed Description

Definition at line 120 of file GIDI_settings.hh.

Constructor & Destructor Documentation

GIDI_settings_flux::GIDI_settings_flux ( std::string const &  label,
double  temperature_MeV 
)

Definition at line 89 of file GIDI_settings_flux.cc.

89  {
90 
91  mLabel = label;
92  mTemperature = temperature;
93 }
GIDI_settings_flux::GIDI_settings_flux ( char const *  label,
double  temperature_MeV 
)

Definition at line 97 of file GIDI_settings_flux.cc.

97  {
98 
99  mLabel = label;
100  mTemperature = temperature;
101 }
GIDI_settings_flux::GIDI_settings_flux ( GIDI_settings_flux const &  flux)

Definition at line 105 of file GIDI_settings_flux.cc.

105  {
106 
107  mLabel = flux.getLabel( );
108  mTemperature = flux.mTemperature;
109  for( std::vector<GIDI_settings_flux_order>::const_iterator iter = flux.mFluxOrders.begin( ); iter < flux.mFluxOrders.end( ); ++iter ) addFluxOrder( *iter );
110 }
void addFluxOrder(GIDI_settings_flux_order const &fluxOrder)

Here is the call graph for this function:

GIDI_settings_flux::~GIDI_settings_flux ( )

Definition at line 114 of file GIDI_settings_flux.cc.

114  {
115 
116 }

Member Function Documentation

void GIDI_settings_flux::addFluxOrder ( GIDI_settings_flux_order const &  fluxOrder)

Definition at line 127 of file GIDI_settings_flux.cc.

127  {
128 /*
129 * Orders can only be added in sequence (e.g., 0 first, then 1, ...).
130 */
131  int order = fluxOrder.getOrder( );
132 
133  if( order > (int) mFluxOrders.size( ) ) throw 1;
134  mFluxOrders.push_back( fluxOrder );
135 }

Here is the call graph for this function:

Here is the caller graph for this function:

std::string GIDI_settings_flux::getLabel ( ) const
inline

Definition at line 137 of file GIDI_settings.hh.

137 { return( mLabel ); }

Here is the caller graph for this function:

int GIDI_settings_flux::getMaxOrder ( void  ) const
inline

Definition at line 134 of file GIDI_settings.hh.

134 { return( (int) mFluxOrders.size( ) - 1 ); }
double GIDI_settings_flux::getTemperature ( ) const
inline

Definition at line 140 of file GIDI_settings.hh.

140 { return( mTemperature ); }

Here is the caller graph for this function:

bool GIDI_settings_flux::isLabel ( std::string const &  label) const
inline

Definition at line 138 of file GIDI_settings.hh.

138 { return( label == mLabel ); }
bool GIDI_settings_flux::isLabel ( char const *  label) const
inline

Definition at line 139 of file GIDI_settings.hh.

139 { return( label == mLabel ); }
GIDI_settings_flux_order const * GIDI_settings_flux::operator[] ( int  order) const

Definition at line 120 of file GIDI_settings_flux.cc.

120  {
121 
122  return( &(mFluxOrders[index]) );
123 }
void GIDI_settings_flux::print ( bool  outline = true,
int  valuesPerLine = 10 
) const

Definition at line 139 of file GIDI_settings_flux.cc.

139  {
140 
141  std::cout << "FLUX: label = '" << mLabel << "': maximum order = " << ( size( ) + 1 ) << std::endl;
142  if( outline ) return;
143  for( std::vector<GIDI_settings_flux_order>::const_iterator iter = mFluxOrders.begin( ); iter < mFluxOrders.end( ); ++iter ) iter->print( valuesPerLine );
144 }
int size(void) const

Here is the call graph for this function:

int GIDI_settings_flux::size ( void  ) const
inline

Definition at line 135 of file GIDI_settings.hh.

135 { return( (int) mFluxOrders.size( ) ); }

Here is the caller graph for this function:


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