Geant4  10.02.p03
GIDI_settings_processedFlux Class Reference

#include <GIDI_settings.hh>

Collaboration diagram for GIDI_settings_processedFlux:

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
 

Private Attributes

GIDI_settings_flux mFlux
 
std::vector< GIDI::ptwXYPoints * > mFluxXY
 
std::vector< GIDI::ptwXPoints * > mGroupedFlux
 

Detailed Description

Definition at line 168 of file GIDI_settings.hh.

Constructor & Destructor Documentation

◆ GIDI_settings_processedFlux() [1/2]

GIDI_settings_processedFlux::GIDI_settings_processedFlux ( GIDI_settings_flux const &  flux,
GIDI::ptwXPoints groupX 
)
Here is the caller graph for this function:

◆ GIDI_settings_processedFlux() [2/2]

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 }
int size(void) const
ptwXYPoints * ptwXY_clone(ptwXYPoints *ptwXY, nfu_status *status)
Definition: ptwXY_core.cc:208
std::vector< GIDI::ptwXYPoints * > mFluxXY
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:574
GIDI_settings_flux mFlux
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
Definition: ptwX_core.cc:158
enum nfu_status_e nfu_status
ptwXPoints * ptwX_clone(ptwXPoints *ptwX, nfu_status *status)
Definition: ptwX_core.cc:88
std::vector< GIDI::ptwXPoints * > mGroupedFlux
Here is the call graph for this function:

◆ ~GIDI_settings_processedFlux()

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 }
std::vector< GIDI::ptwXYPoints * > mFluxXY
ptwXYPoints * ptwXY_free(ptwXYPoints *ptwXY)
Definition: ptwXY_core.cc:574
ptwXPoints * ptwX_free(ptwXPoints *ptwX)
Definition: ptwX_core.cc:158
std::vector< GIDI::ptwXPoints * > mGroupedFlux
Here is the call graph for this function:

Member Function Documentation

◆ getTemperature()

double GIDI_settings_processedFlux::getTemperature ( ) const
inline

Definition at line 180 of file GIDI_settings.hh.

180 { return( mFlux.getTemperature( ) ); }
GIDI_settings_flux mFlux
double getTemperature() const
Here is the call graph for this function:

◆ groupFunction()

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 }
std::vector< GIDI::ptwXYPoints * > mFluxXY
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
std::vector< GIDI::ptwXPoints * > mGroupedFlux
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mFlux

GIDI_settings_flux GIDI_settings_processedFlux::mFlux
private

Definition at line 171 of file GIDI_settings.hh.

◆ mFluxXY

std::vector<GIDI::ptwXYPoints *> GIDI_settings_processedFlux::mFluxXY
private

Definition at line 172 of file GIDI_settings.hh.

◆ mGroupedFlux

std::vector<GIDI::ptwXPoints *> GIDI_settings_processedFlux::mGroupedFlux
private

Definition at line 173 of file GIDI_settings.hh.


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