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

#include <GIDI_settings.hh>

Public Member Functions

 GIDI_settings_processedFlux (GIDI_settings_flux const &flux, GIDI::ptwXPoints *groupX)
 
 GIDI_settings_processedFlux (GIDI_settings_processedFlux const &flux)
 
 ~GIDI_settings_processedFlux ()
 
double getTemperature () const
 
GIDI::ptwXPointsgroupFunction (GIDI::statusMessageReporting *smr, GIDI::ptwXPoints *groupX, GIDI::ptwXYPoints *ptwXY1, int order) const
 

Detailed Description

Definition at line 168 of file GIDI_settings.hh.

Constructor & Destructor Documentation

GIDI_settings_processedFlux::GIDI_settings_processedFlux ( GIDI_settings_flux const &  flux,
GIDI::ptwXPoints groupX 
)
GIDI_settings_processedFlux::GIDI_settings_processedFlux ( GIDI_settings_processedFlux const &  flux)

Definition at line 156 of file GIDI_settings_particle.cc.

156  : mFlux( flux.mFlux ) {
157 
158  nfu_status status_nf;
159  ptwXYPoints *fluxXY;
160  ptwXPoints *fluxX;
161 
162  for( int order = 0; order < (int) mFlux.size( ); ++order ) {
163  if( ( fluxXY = ptwXY_clone( flux.mFluxXY[order], &status_nf ) ) == NULL ) goto err;
164  mFluxXY.push_back( fluxXY );
165  if( ( fluxX = ptwX_clone( flux.mGroupedFlux[order], &status_nf ) ) == NULL ) goto err;
166  mGroupedFlux.push_back( fluxX );
167  }
168  return;
169 
170 err:
171  for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter ) ptwXY_free( *iter );
172  for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter ) ptwX_free( *iter );
173  throw 1;
174 }
ptwXYPoints * ptwXY_clone(ptwXYPoints *ptwXY, nfu_status *status)
Definition: ptwXY_core.cc:208
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:574
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
Definition: ptwX_core.cc:158
enum nfu_status_e nfu_status
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
ptwXPoints * ptwX_clone(ptwXPoints *ptwX, nfu_status *status)
Definition: ptwX_core.cc:88
int size(void) const

Here is the call graph for this function:

GIDI_settings_processedFlux::~GIDI_settings_processedFlux ( )

Definition at line 178 of file GIDI_settings_particle.cc.

178  {
179 
180  for( std::vector<ptwXYPoints *>::iterator iter = mFluxXY.begin( ); iter != mFluxXY.end( ); ++iter ) ptwXY_free( *iter );
181  for( std::vector<ptwXPoints *>::iterator iter = mGroupedFlux.begin( ); iter != mGroupedFlux.end( ); ++iter ) ptwX_free( *iter );
182 }
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:574
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
Definition: ptwX_core.cc:158

Here is the call graph for this function:

Member Function Documentation

double GIDI_settings_processedFlux::getTemperature ( ) const
inline

Definition at line 180 of file GIDI_settings.hh.

180 { return( mFlux.getTemperature( ) ); }
double getTemperature() const

Here is the call graph for this function:

ptwXPoints * GIDI_settings_processedFlux::groupFunction ( GIDI::statusMessageReporting smr,
GIDI::ptwXPoints groupX,
GIDI::ptwXYPoints ptwXY1,
int  order 
) const

Definition at line 186 of file GIDI_settings_particle.cc.

186  {
187 
188  nfu_status status_nf;
189  ptwXYPoints *fluxXY;
190  ptwXPoints *groupedX;
191 
192  if( groupX == NULL ) return( NULL );
193  if( order < 0 ) order = 0;
194  if( order >= (int) mFluxXY.size( ) ) order = (int) mFluxXY.size( ) - 1;
195 
196  fluxXY = ptwXY_xSlice( mFluxXY[order], ptwXY_getXMin( ptwXY1 ), ptwXY_getXMax( ptwXY1 ), 10, 1, &status_nf );
197 // if( fluxXY == NULL ) smr_setReportError2( smr, smr_unknownID, 1, "ptwXY_xSlice error %d: %s", status_nf, nfu_statusMessage( status_nf ) );
198 
199  groupedX = ptwXY_groupTwoFunctions( ptwXY1, fluxXY, groupX, ptwXY_group_normType_norm, mGroupedFlux[order], &status_nf );
200  ptwXY_free( fluxXY );
201 // if( groupedX == NULL ) smr_setReportError2( smr, smr_unknownID, 1, "ptwXY_groupTwoFunctions error %d: %s", status_nf, nfu_statusMessage( status_nf ) );
202  return( groupedX );
203 }
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:574
enum nfu_status_e nfu_status
double ptwXY_getXMin(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:1206
ptwXYPoints * ptwXY_xSlice(ptwXYPoints *ptwXY, double xMin, double xMax, int64_t secondarySize, int fill, nfu_status *status)
Definition: ptwXY_core.cc:274
ptwXPoints * ptwXY_groupTwoFunctions(ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, ptwXPoints *groupBoundaries, ptwXY_group_normType normType, ptwXPoints *ptwX_norm, nfu_status *status)
double ptwXY_getXMax(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:1239

Here is the call graph for this function:

Here is the caller graph for this function:


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