Geant4  10.00.p02
IORTMatrix Class Reference

#include <IORTMatrix.hh>

+ Collaboration diagram for IORTMatrix:

Public Member Functions

 ~IORTMatrix ()
 
void PrintNuclides ()
 
void ClearHitTrack ()
 
G4int * GetHitTrack (G4int i, G4int j, G4int k)
 
void Initialize ()
 
void Clear ()
 
G4bool Fill (G4int, G4ParticleDefinition *particleDef, G4int i, G4int j, G4int k, G4double energyDeposit, G4bool fluence=false)
 
void Fill (G4int i, G4int j, G4int k, G4double energyDeposit)
 
void TotalEnergyDeposit ()
 
void StoreMatrix (G4String file, void *data, size_t psize)
 
void StoreFluenceData ()
 
void StoreDoseData ()
 
void StoreDoseFluenceAscii (G4String filename="")
 
G4int Index (G4int i, G4int j, G4int k)
 
G4double * GetMatrix ()
 
G4int GetNvoxel ()
 
G4int GetNumberOfVoxelAlongX ()
 
G4int GetNumberOfVoxelAlongY ()
 
G4int GetNumberOfVoxelAlongZ ()
 

Static Public Member Functions

static IORTMatrix * GetInstance ()
 
static IORTMatrix * GetInstance (G4int nX, G4int nY, G4int nZ, G4double mass)
 

Static Public Attributes

static G4bool secondary = false
 

Private Member Functions

 IORTMatrix (G4int numberOfVoxelAlongX, G4int numberOfVoxelAlongY, G4int numberOfVoxelAlongZ, G4double massOfVoxel)
 

Private Attributes

G4int numberOfVoxelAlongX
 
G4int numberOfVoxelAlongY
 
G4int numberOfVoxelAlongZ
 
G4double massOfVoxel
 
G4double * matrix
 
G4int * hitTrack
 
G4String stdFile
 
G4String filename
 
std::ofstream ofs
 
std::vector< ion > ionStore
 
G4double doseUnit
 

Static Private Attributes

static IORTMatrix * instance = NULL
 

Detailed Description

Definition at line 66 of file IORTMatrix.hh.

Constructor & Destructor Documentation

IORTMatrix::IORTMatrix ( G4int  numberOfVoxelAlongX,
G4int  numberOfVoxelAlongY,
G4int  numberOfVoxelAlongZ,
G4double  massOfVoxel 
)
private

Definition at line 74 of file IORTMatrix.cc.

References ClearHitTrack(), FatalException, G4cout, G4endl, G4Exception(), hitTrack, massOfVoxel, matrix, numberOfVoxelAlongX, numberOfVoxelAlongY, and numberOfVoxelAlongZ.

Referenced by GetInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

IORTMatrix::~IORTMatrix ( )

Definition at line 102 of file IORTMatrix.cc.

References Clear(), hitTrack, and matrix.

+ Here is the call graph for this function:

Member Function Documentation

void IORTMatrix::Clear ( )

Definition at line 111 of file IORTMatrix.cc.

References ionStore.

Referenced by Initialize(), and ~IORTMatrix().

+ Here is the caller graph for this function:

void IORTMatrix::ClearHitTrack ( )

Definition at line 145 of file IORTMatrix.cc.

References hitTrack, numberOfVoxelAlongX, numberOfVoxelAlongY, and numberOfVoxelAlongZ.

Referenced by IORTMatrix().

+ Here is the caller graph for this function:

G4bool IORTMatrix::Fill ( G4int  trackID,
G4ParticleDefinition *  particleDef,
G4int  i,
G4int  j,
G4int  k,
G4double  energyDeposit,
G4bool  fluence = false 
)

Definition at line 161 of file IORTMatrix.cc.

References A, ion::dose, ion::fluence, Index(), ionStore, massOfVoxel, name, numberOfVoxelAlongX, numberOfVoxelAlongY, numberOfVoxelAlongZ, and secondary.

+ Here is the call graph for this function:

void IORTMatrix::Fill ( G4int  i,
G4int  j,
G4int  k,
G4double  energyDeposit 
)

Definition at line 390 of file IORTMatrix.cc.

References Index(), and matrix.

+ Here is the call graph for this function:

G4int * IORTMatrix::GetHitTrack ( G4int  i,
G4int  j,
G4int  k 
)

Definition at line 150 of file IORTMatrix.cc.

References hitTrack, and Index().

+ Here is the call graph for this function:

IORTMatrix * IORTMatrix::GetInstance ( )
static

Definition at line 61 of file IORTMatrix.cc.

References instance.

Referenced by IORTEventAction::EndOfEventAction(), main(), IORTDetectorSD::ProcessHits(), IORTAnalysisFileMessenger::SetNewValue(), and IORTDetectorConstruction::UpdateGeometry().

+ Here is the caller graph for this function:

IORTMatrix * IORTMatrix::GetInstance ( G4int  nX,
G4int  nY,
G4int  nZ,
G4double  mass 
)
static

Definition at line 67 of file IORTMatrix.cc.

References Initialize(), instance, and IORTMatrix().

+ Here is the call graph for this function:

G4double* IORTMatrix::GetMatrix ( )
inline

Definition at line 125 of file IORTMatrix.hh.

References matrix.

G4int IORTMatrix::GetNumberOfVoxelAlongX ( )
inline

Definition at line 129 of file IORTMatrix.hh.

References numberOfVoxelAlongX.

G4int IORTMatrix::GetNumberOfVoxelAlongY ( )
inline

Definition at line 130 of file IORTMatrix.hh.

References numberOfVoxelAlongY.

G4int IORTMatrix::GetNumberOfVoxelAlongZ ( )
inline

Definition at line 131 of file IORTMatrix.hh.

References numberOfVoxelAlongZ.

G4int IORTMatrix::GetNvoxel ( )
inline

Definition at line 127 of file IORTMatrix.hh.

References numberOfVoxelAlongZ.

G4int IORTMatrix::Index ( G4int  i,
G4int  j,
G4int  k 
)
inline

Definition at line 122 of file IORTMatrix.hh.

Referenced by Fill(), GetHitTrack(), StoreDoseFluenceAscii(), and StoreMatrix().

+ Here is the caller graph for this function:

void IORTMatrix::Initialize ( )

Definition at line 123 of file IORTMatrix.cc.

References Clear(), matrix, numberOfVoxelAlongX, numberOfVoxelAlongY, and numberOfVoxelAlongZ.

Referenced by GetInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void IORTMatrix::PrintNuclides ( )

Definition at line 136 of file IORTMatrix.cc.

References G4cout, G4endl, and ionStore.

void IORTMatrix::StoreDoseData ( )

Definition at line 280 of file IORTMatrix.cc.

References ionStore, name, and StoreMatrix().

+ Here is the call graph for this function:

void IORTMatrix::StoreDoseFluenceAscii ( G4String  filename = "")

Definition at line 291 of file IORTMatrix.cc.

References a, doseUnit, filename, G4cout, G4endl, Index(), ionStore, left, massOfVoxel, matrix, n, numberOfVoxelAlongX, numberOfVoxelAlongY, numberOfVoxelAlongZ, ofs, secondary, stdFile, and width.

+ Here is the call graph for this function:

void IORTMatrix::StoreFluenceData ( )

Definition at line 273 of file IORTMatrix.cc.

References ionStore, name, and StoreMatrix().

+ Here is the call graph for this function:

void IORTMatrix::StoreMatrix ( G4String  file,
void *  data,
size_t  psize 
)

Definition at line 241 of file IORTMatrix.cc.

References G4endl, Index(), n, numberOfVoxelAlongX, numberOfVoxelAlongY, numberOfVoxelAlongZ, and ofs.

Referenced by StoreDoseData(), and StoreFluenceData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void IORTMatrix::TotalEnergyDeposit ( )

Definition at line 399 of file IORTMatrix.cc.

Member Data Documentation

G4double IORTMatrix::doseUnit
private

Definition at line 148 of file IORTMatrix.hh.

Referenced by StoreDoseFluenceAscii().

G4String IORTMatrix::filename
private

Definition at line 142 of file IORTMatrix.hh.

Referenced by StoreDoseFluenceAscii().

G4int* IORTMatrix::hitTrack
private

Definition at line 141 of file IORTMatrix.hh.

Referenced by ClearHitTrack(), GetHitTrack(), IORTMatrix(), and ~IORTMatrix().

IORTMatrix * IORTMatrix::instance = NULL
staticprivate

Definition at line 134 of file IORTMatrix.hh.

Referenced by GetInstance().

std::vector<ion> IORTMatrix::ionStore
private
G4double IORTMatrix::massOfVoxel
private

Definition at line 138 of file IORTMatrix.hh.

Referenced by Fill(), IORTMatrix(), and StoreDoseFluenceAscii().

G4double* IORTMatrix::matrix
private
G4int IORTMatrix::numberOfVoxelAlongX
private
G4int IORTMatrix::numberOfVoxelAlongY
private
G4int IORTMatrix::numberOfVoxelAlongZ
private
std::ofstream IORTMatrix::ofs
private

Definition at line 143 of file IORTMatrix.hh.

Referenced by StoreDoseFluenceAscii(), and StoreMatrix().

G4bool IORTMatrix::secondary = false
static

Definition at line 83 of file IORTMatrix.hh.

Referenced by Fill(), and StoreDoseFluenceAscii().

G4String IORTMatrix::stdFile
private

Definition at line 142 of file IORTMatrix.hh.

Referenced by StoreDoseFluenceAscii().


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