Geant4  10.00.p01
CML2ExpVoxels Class Reference

#include <ML2ExpVoxels.hh>

+ Collaboration diagram for CML2ExpVoxels:

Public Member Functions

 CML2ExpVoxels (G4bool bHasExperimentalData, G4int saving_in_Selected_Voxels_every_events, G4int seed, G4String FileExperimentalData, G4String FileExperimentalDataOut)
 
 ~CML2ExpVoxels (void)
 
void add (G4ThreeVector pos, G4double depEnergy, G4double density)
 
void add (const G4Step *aStep)
 
std::vector< SvoxelgetVoxels ()
 
G4int getMinNumberOfEvents ()
 
G4int getMaxNumberOfEvents ()
 
G4bool loadData ()
 
void setRecycling (int recycling)
 
void saveResults (void)
 
void resetNEventsInVoxels ()
 

Private Member Functions

void saveHeader ()
 
void calculateNormalizedEd (std::vector< Svoxel > &voxels)
 

Private Attributes

std::vector< Svoxelvoxels
 
G4intnVoxelsgeometry
 
G4ThreeVector minZone
 
G4ThreeVector maxZone
 
G4int nCurves
 
G4intstartCurve
 
G4intstopCurve
 
G4doublechi2Factor
 
G4String headerText1
 
G4String headerText2
 
G4String fullFileIn
 
G4String fullFileOut
 
G4String seedName
 
G4String loopName
 
SGeneralDatageneralData
 
G4int nParticle
 
G4int nTotalEvents
 
G4int saving_in_Selected_Voxels_every_events
 
G4int nRecycling
 
G4bool bHasExperimentalData
 

Detailed Description

Definition at line 51 of file ML2ExpVoxels.hh.

Constructor & Destructor Documentation

CML2ExpVoxels::CML2ExpVoxels ( G4bool  bHasExperimentalData,
G4int  saving_in_Selected_Voxels_every_events,
G4int  seed,
G4String  FileExperimentalData,
G4String  FileExperimentalDataOut 
)
CML2ExpVoxels::~CML2ExpVoxels ( void  )

Definition at line 70 of file ML2ExpVoxels.cc.

References chi2Factor, nVoxelsgeometry, startCurve, and stopCurve.

Member Function Documentation

void CML2ExpVoxels::add ( G4ThreeVector  pos,
G4double  depEnergy,
G4double  density 
)

Referenced by CML2Convergence::add().

+ Here is the caller graph for this function:

void CML2ExpVoxels::calculateNormalizedEd ( std::vector< Svoxel > &  voxels)
private

Definition at line 284 of file ML2ExpVoxels.cc.

References chi2Factor, d2, n, nCurves, startCurve, and stopCurve.

Referenced by saveResults().

+ Here is the caller graph for this function:

G4int CML2ExpVoxels::getMaxNumberOfEvents ( )

Definition at line 234 of file ML2ExpVoxels.cc.

References n, nVoxelsgeometry, and voxels.

Referenced by CML2Convergence::convergenceCriteria().

+ Here is the caller graph for this function:

G4int CML2ExpVoxels::getMinNumberOfEvents ( )

Definition at line 225 of file ML2ExpVoxels.cc.

References n, and voxels.

std::vector<Svoxel> CML2ExpVoxels::getVoxels ( )
inline

Definition at line 59 of file ML2ExpVoxels.hh.

References voxels.

G4bool CML2ExpVoxels::loadData ( void  )

Definition at line 77 of file ML2ExpVoxels.cc.

References a, bHasExperimentalData, chi2Factor, Svoxel::depEnergy, Svoxel::depEnergy2, Svoxel::depEnergyNorm, Svoxel::depEnergyNormError, Svoxel::expDose, fullFileIn, G4endl, Svoxel::halfSize, headerText1, headerText2, joule, kg, maxZone, minZone, nCurves, Svoxel::nEvents, nVoxelsgeometry, pos, Svoxel::pos, resetNEventsInVoxels(), startCurve, stopCurve, Svoxel::volumeId, and voxels.

Referenced by CML2Convergence::CML2Convergence().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2ExpVoxels::resetNEventsInVoxels ( )

Definition at line 159 of file ML2ExpVoxels.cc.

References nVoxelsgeometry, and voxels.

Referenced by CML2Convergence::convergenceCriteria(), and loadData().

+ Here is the caller graph for this function:

void CML2ExpVoxels::saveHeader ( )
private

Definition at line 243 of file ML2ExpVoxels.cc.

References chi2Factor, fullFileOut, G4endl, headerText1, nCurves, seedName, startCurve, and stopCurve.

Referenced by saveResults().

+ Here is the caller graph for this function:

void CML2ExpVoxels::saveResults ( void  )

Definition at line 262 of file ML2ExpVoxels.cc.

References calculateNormalizedEd(), fullFileOut, G4endl, joule, kg, mm, nTotalEvents, saveHeader(), seedName, and voxels.

Referenced by add(), and CML2Convergence::saveResults().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2ExpVoxels::setRecycling ( int  recycling)
inline

Definition at line 66 of file ML2ExpVoxels.hh.

References nRecycling.

Referenced by CML2Convergence::CML2Convergence().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool CML2ExpVoxels::bHasExperimentalData
private

Definition at line 83 of file ML2ExpVoxels.hh.

Referenced by CML2ExpVoxels(), and loadData().

G4double* CML2ExpVoxels::chi2Factor
private

Definition at line 77 of file ML2ExpVoxels.hh.

Referenced by calculateNormalizedEd(), loadData(), saveHeader(), and ~CML2ExpVoxels().

G4String CML2ExpVoxels::fullFileIn
private

Definition at line 78 of file ML2ExpVoxels.hh.

Referenced by CML2ExpVoxels(), and loadData().

G4String CML2ExpVoxels::fullFileOut
private

Definition at line 78 of file ML2ExpVoxels.hh.

Referenced by CML2ExpVoxels(), saveHeader(), and saveResults().

SGeneralData* CML2ExpVoxels::generalData
private

Definition at line 80 of file ML2ExpVoxels.hh.

G4String CML2ExpVoxels::headerText1
private

Definition at line 78 of file ML2ExpVoxels.hh.

Referenced by loadData(), and saveHeader().

G4String CML2ExpVoxels::headerText2
private

Definition at line 78 of file ML2ExpVoxels.hh.

Referenced by loadData().

G4String CML2ExpVoxels::loopName
private

Definition at line 79 of file ML2ExpVoxels.hh.

G4ThreeVector CML2ExpVoxels::maxZone
private

Definition at line 74 of file ML2ExpVoxels.hh.

Referenced by add(), CML2ExpVoxels(), and loadData().

G4ThreeVector CML2ExpVoxels::minZone
private

Definition at line 74 of file ML2ExpVoxels.hh.

Referenced by add(), CML2ExpVoxels(), and loadData().

G4int CML2ExpVoxels::nCurves
private

Definition at line 75 of file ML2ExpVoxels.hh.

Referenced by calculateNormalizedEd(), loadData(), and saveHeader().

G4int CML2ExpVoxels::nParticle
private

Definition at line 81 of file ML2ExpVoxels.hh.

Referenced by CML2ExpVoxels().

G4int CML2ExpVoxels::nRecycling
private

Definition at line 82 of file ML2ExpVoxels.hh.

Referenced by add(), CML2ExpVoxels(), and setRecycling().

G4int CML2ExpVoxels::nTotalEvents
private

Definition at line 82 of file ML2ExpVoxels.hh.

Referenced by add(), CML2ExpVoxels(), and saveResults().

G4int* CML2ExpVoxels::nVoxelsgeometry
private
G4int CML2ExpVoxels::saving_in_Selected_Voxels_every_events
private

Definition at line 82 of file ML2ExpVoxels.hh.

Referenced by add(), and CML2ExpVoxels().

G4String CML2ExpVoxels::seedName
private

Definition at line 79 of file ML2ExpVoxels.hh.

Referenced by CML2ExpVoxels(), saveHeader(), and saveResults().

G4int* CML2ExpVoxels::startCurve
private

Definition at line 76 of file ML2ExpVoxels.hh.

Referenced by calculateNormalizedEd(), loadData(), saveHeader(), and ~CML2ExpVoxels().

G4int * CML2ExpVoxels::stopCurve
private

Definition at line 76 of file ML2ExpVoxels.hh.

Referenced by calculateNormalizedEd(), loadData(), saveHeader(), and ~CML2ExpVoxels().

std::vector<Svoxel> CML2ExpVoxels::voxels
private

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