Geant4  10.01.p01
HadrontherapyMatrix Class Reference

#include <HadrontherapyMatrix.hh>

+ Collaboration diagram for HadrontherapyMatrix:

Public Member Functions

 ~HadrontherapyMatrix ()
 
void PrintNuclides ()
 
void ClearHitTrack ()
 
G4intGetHitTrack (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)
 
G4doubleGetMatrix ()
 
G4int GetNvoxel ()
 
G4int GetNumberOfVoxelAlongX ()
 
G4int GetNumberOfVoxelAlongY ()
 
G4int GetNumberOfVoxelAlongZ ()
 

Static Public Member Functions

static HadrontherapyMatrixGetInstance ()
 
static HadrontherapyMatrixGetInstance (G4int nX, G4int nY, G4int nZ, G4double mass)
 

Static Public Attributes

static G4bool secondary = false
 

Private Member Functions

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

Private Attributes

G4int numberOfVoxelAlongX
 
G4int numberOfVoxelAlongY
 
G4int numberOfVoxelAlongZ
 
G4double massOfVoxel
 
G4doublematrix
 
G4inthitTrack
 
G4String stdFile
 
G4String filename
 
std::ofstream ofs
 
std::vector< ionionStore
 
G4double doseUnit
 

Static Private Attributes

static HadrontherapyMatrixinstance = NULL
 

Detailed Description

Definition at line 61 of file HadrontherapyMatrix.hh.

Constructor & Destructor Documentation

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

Definition at line 63 of file HadrontherapyMatrix.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:

HadrontherapyMatrix::~HadrontherapyMatrix ( )

Definition at line 91 of file HadrontherapyMatrix.cc.

References Clear(), hitTrack, and matrix.

+ Here is the call graph for this function:

Member Function Documentation

void HadrontherapyMatrix::Clear ( )

Definition at line 100 of file HadrontherapyMatrix.cc.

References ionStore.

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

+ Here is the caller graph for this function:

void HadrontherapyMatrix::ClearHitTrack ( )

Definition at line 134 of file HadrontherapyMatrix.cc.

References hitTrack, numberOfVoxelAlongX, numberOfVoxelAlongY, and numberOfVoxelAlongZ.

Referenced by HadrontherapyMatrix().

+ Here is the caller graph for this function:

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

Definition at line 150 of file HadrontherapyMatrix.cc.

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

+ Here is the call graph for this function:

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

Definition at line 379 of file HadrontherapyMatrix.cc.

References Index(), and matrix.

+ Here is the call graph for this function:

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

Definition at line 139 of file HadrontherapyMatrix.cc.

References hitTrack, and Index().

+ Here is the call graph for this function:

HadrontherapyMatrix * HadrontherapyMatrix::GetInstance ( )
static

Definition at line 50 of file HadrontherapyMatrix.cc.

References instance.

Referenced by HadrontherapyEventAction::EndOfEventAction(), HadrontherapyLet::HadrontherapyLet(), main(), HadrontherapyDetectorSD::ProcessHits(), HadrontherapyAnalysisFileMessenger::SetNewValue(), and HadrontherapyDetectorConstruction::UpdateGeometry().

+ Here is the caller graph for this function:

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

Definition at line 56 of file HadrontherapyMatrix.cc.

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

+ Here is the call graph for this function:

G4double* HadrontherapyMatrix::GetMatrix ( )
inline

Definition at line 120 of file HadrontherapyMatrix.hh.

References matrix.

G4int HadrontherapyMatrix::GetNumberOfVoxelAlongX ( )
inline

Definition at line 124 of file HadrontherapyMatrix.hh.

References numberOfVoxelAlongX.

G4int HadrontherapyMatrix::GetNumberOfVoxelAlongY ( )
inline

Definition at line 125 of file HadrontherapyMatrix.hh.

References numberOfVoxelAlongY.

G4int HadrontherapyMatrix::GetNumberOfVoxelAlongZ ( )
inline

Definition at line 126 of file HadrontherapyMatrix.hh.

References numberOfVoxelAlongZ.

G4int HadrontherapyMatrix::GetNvoxel ( )
inline

Definition at line 122 of file HadrontherapyMatrix.hh.

References numberOfVoxelAlongZ.

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

Definition at line 117 of file HadrontherapyMatrix.hh.

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

+ Here is the caller graph for this function:

void HadrontherapyMatrix::Initialize ( )

Definition at line 112 of file HadrontherapyMatrix.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 HadrontherapyMatrix::PrintNuclides ( )

Definition at line 125 of file HadrontherapyMatrix.cc.

References G4cout, G4endl, and ionStore.

void HadrontherapyMatrix::StoreDoseData ( )

Definition at line 269 of file HadrontherapyMatrix.cc.

References ionStore, name, and StoreMatrix().

+ Here is the call graph for this function:

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

Definition at line 280 of file HadrontherapyMatrix.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 HadrontherapyMatrix::StoreFluenceData ( )

Definition at line 262 of file HadrontherapyMatrix.cc.

References ionStore, name, and StoreMatrix().

+ Here is the call graph for this function:

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

Definition at line 230 of file HadrontherapyMatrix.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 HadrontherapyMatrix::TotalEnergyDeposit ( )

Definition at line 388 of file HadrontherapyMatrix.cc.

References doseUnit, HadrontherapyAnalysisManager::GetInstance(), Index(), massOfVoxel, matrix, n, numberOfVoxelAlongX, numberOfVoxelAlongY, and numberOfVoxelAlongZ.

+ Here is the call graph for this function:

Member Data Documentation

G4double HadrontherapyMatrix::doseUnit
private

Definition at line 143 of file HadrontherapyMatrix.hh.

Referenced by StoreDoseFluenceAscii(), and TotalEnergyDeposit().

G4String HadrontherapyMatrix::filename
private

Definition at line 137 of file HadrontherapyMatrix.hh.

Referenced by StoreDoseFluenceAscii().

G4int* HadrontherapyMatrix::hitTrack
private
HadrontherapyMatrix * HadrontherapyMatrix::instance = NULL
staticprivate

Definition at line 129 of file HadrontherapyMatrix.hh.

Referenced by GetInstance().

std::vector<ion> HadrontherapyMatrix::ionStore
private
G4double HadrontherapyMatrix::massOfVoxel
private
G4double* HadrontherapyMatrix::matrix
private
G4int HadrontherapyMatrix::numberOfVoxelAlongX
private
G4int HadrontherapyMatrix::numberOfVoxelAlongY
private
G4int HadrontherapyMatrix::numberOfVoxelAlongZ
private
std::ofstream HadrontherapyMatrix::ofs
private

Definition at line 138 of file HadrontherapyMatrix.hh.

Referenced by StoreDoseFluenceAscii(), and StoreMatrix().

G4bool HadrontherapyMatrix::secondary = false
static

Definition at line 78 of file HadrontherapyMatrix.hh.

Referenced by Fill(), and StoreDoseFluenceAscii().

G4String HadrontherapyMatrix::stdFile
private

Definition at line 137 of file HadrontherapyMatrix.hh.

Referenced by StoreDoseFluenceAscii().


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