#include <IORTMatrix.hh>
|
| ~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="") |
|
void | StoreDoseFluenceRoot () |
|
G4int | Index (G4int i, G4int j, G4int k) |
|
G4double * | GetMatrix () |
|
G4int | GetNvoxel () |
|
G4int | GetNumberOfVoxelAlongX () |
|
G4int | GetNumberOfVoxelAlongY () |
|
G4int | GetNumberOfVoxelAlongZ () |
|
Definition at line 66 of file IORTMatrix.hh.
◆ IORTMatrix()
IORTMatrix::IORTMatrix |
( |
G4int |
numberOfVoxelAlongX, |
|
|
G4int |
numberOfVoxelAlongY, |
|
|
G4int |
numberOfVoxelAlongZ, |
|
|
G4double |
massOfVoxel |
|
) |
| |
|
private |
Definition at line 74 of file IORTMatrix.cc.
89 G4cout <<
"IORTMatrix: Memory space to store physical dose into " <<
91 " voxels has been allocated " <<
G4endl;
93 else G4Exception(
"IORTMatrix::IORTMatrix()",
"IORT0005",
FatalException,
"Error: can't allocate memory to store physical dose!");
G4int numberOfVoxelAlongY
G4GLOB_DLL std::ostream G4cout
G4int numberOfVoxelAlongX
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4int numberOfVoxelAlongZ
◆ ~IORTMatrix()
IORTMatrix::~IORTMatrix |
( |
| ) |
|
◆ Clear()
void IORTMatrix::Clear |
( |
| ) |
|
◆ ClearHitTrack()
void IORTMatrix::ClearHitTrack |
( |
| ) |
|
Definition at line 145 of file IORTMatrix.cc.
G4int numberOfVoxelAlongY
G4int numberOfVoxelAlongX
G4int numberOfVoxelAlongZ
◆ Fill() [1/2]
Definition at line 161 of file IORTMatrix.cc.
167 if ( (energyDeposit <=0. && !fluence) || !
secondary)
return false;
169 G4int PDGencoding = particleDef -> GetPDGEncoding();
170 PDGencoding -= PDGencoding%10;
173 for (
size_t l=0; l <
ionStore.size(); l++)
175 if (
ionStore[l].PDGencoding == PDGencoding )
177 if ( ((trackID == 1) && (
ionStore[l].isPrimary)) || ((trackID !=1) && (!
ionStore[l].isPrimary)))
188 G4int Z = particleDef-> GetAtomicNumber();
189 G4int A = particleDef-> GetAtomicMass();
191 G4String fullName = particleDef -> GetParticleName();
192 G4String name = fullName.substr (0, fullName.find(
"[") );
196 (trackID == 1) ?
true:
false,
G4int numberOfVoxelAlongY
double A(double temperature)
G4int numberOfVoxelAlongX
std::vector< ion > ionStore
G4int numberOfVoxelAlongZ
G4int Index(G4int i, G4int j, G4int k)
◆ Fill() [2/2]
Definition at line 386 of file IORTMatrix.cc.
G4int Index(G4int i, G4int j, G4int k)
◆ GetHitTrack()
Definition at line 150 of file IORTMatrix.cc.
G4int Index(G4int i, G4int j, G4int k)
◆ GetInstance() [1/2]
◆ GetInstance() [2/2]
Definition at line 67 of file IORTMatrix.cc.
static IORTMatrix * instance
IORTMatrix(G4int numberOfVoxelAlongX, G4int numberOfVoxelAlongY, G4int numberOfVoxelAlongZ, G4double massOfVoxel)
◆ GetMatrix()
◆ GetNumberOfVoxelAlongX()
G4int IORTMatrix::GetNumberOfVoxelAlongX |
( |
| ) |
|
|
inline |
◆ GetNumberOfVoxelAlongY()
G4int IORTMatrix::GetNumberOfVoxelAlongY |
( |
| ) |
|
|
inline |
◆ GetNumberOfVoxelAlongZ()
G4int IORTMatrix::GetNumberOfVoxelAlongZ |
( |
| ) |
|
|
inline |
◆ GetNvoxel()
G4int IORTMatrix::GetNvoxel |
( |
| ) |
|
|
inline |
Definition at line 125 of file IORTMatrix.hh.
G4int numberOfVoxelAlongY
G4int numberOfVoxelAlongX
G4int numberOfVoxelAlongZ
◆ Index()
Definition at line 120 of file IORTMatrix.hh.
G4int numberOfVoxelAlongY
G4int numberOfVoxelAlongZ
◆ Initialize()
void IORTMatrix::Initialize |
( |
| ) |
|
Definition at line 123 of file IORTMatrix.cc.
G4int numberOfVoxelAlongY
G4int numberOfVoxelAlongX
G4int numberOfVoxelAlongZ
◆ PrintNuclides()
void IORTMatrix::PrintNuclides |
( |
| ) |
|
Definition at line 136 of file IORTMatrix.cc.
138 for (
size_t i=0; i<
ionStore.size(); i++)
G4GLOB_DLL std::ostream G4cout
std::vector< ion > ionStore
◆ StoreDoseData()
void IORTMatrix::StoreDoseData |
( |
| ) |
|
Definition at line 280 of file IORTMatrix.cc.
283 for (
size_t i=0; i <
ionStore.size(); i++){
void StoreMatrix(G4String file, void *data, size_t psize)
std::vector< ion > ionStore
◆ StoreDoseFluenceAscii()
void IORTMatrix::StoreDoseFluenceAscii |
( |
G4String |
filename = "" | ) |
|
Definition at line 291 of file IORTMatrix.cc.
297 G4cout <<
"Dose is being written to " << filename <<
G4endl;
298 ofs.open(filename, std::ios::out);
305 ofs << std::setw(
width) <<
"Dose(MeV/g)";
308 for (
size_t l=0; l <
ionStore.size(); l++)
343 ofs << i <<
'\t' << j <<
'\t' << k <<
'\t';
348 for (
size_t l=0; l <
ionStore.size(); l++)
G4int numberOfVoxelAlongY
G4GLOB_DLL std::ostream G4cout
G4int numberOfVoxelAlongX
std::vector< ion > ionStore
G4int numberOfVoxelAlongZ
G4int Index(G4int i, G4int j, G4int k)
◆ StoreDoseFluenceRoot()
void IORTMatrix::StoreDoseFluenceRoot |
( |
| ) |
|
Definition at line 362 of file IORTMatrix.cc.
370 for (
size_t l=0; l <
ionStore.size(); l++)
374 analysis -> FillVoxelFragmentTuple( i, j, k,
G4int numberOfVoxelAlongY
double A(double temperature)
G4int numberOfVoxelAlongX
static IORTAnalysisManager * GetInstance()
std::vector< ion > ionStore
G4int numberOfVoxelAlongZ
G4int Index(G4int i, G4int j, G4int k)
◆ StoreFluenceData()
void IORTMatrix::StoreFluenceData |
( |
| ) |
|
Definition at line 273 of file IORTMatrix.cc.
275 for (
size_t i=0; i <
ionStore.size(); i++){
void StoreMatrix(G4String file, void *data, size_t psize)
std::vector< ion > ionStore
◆ StoreMatrix()
void IORTMatrix::StoreMatrix |
( |
G4String |
file, |
|
|
void * |
data, |
|
|
size_t |
psize |
|
) |
| |
Definition at line 241 of file IORTMatrix.cc.
245 ofs.open(file, std::ios::out);
254 if (psize ==
sizeof(
unsigned int))
256 unsigned int* pdata = (
unsigned int*)data;
257 if (pdata[n])
ofs << i <<
'\t' << j <<
'\t' <<
258 k <<
'\t' << pdata[
n] <<
G4endl;
263 if (pdata[n])
ofs << i <<
'\t' << j <<
'\t' <<
264 k <<
'\t' << pdata[
n] <<
G4endl;
G4int numberOfVoxelAlongY
G4int numberOfVoxelAlongX
G4int numberOfVoxelAlongZ
G4int Index(G4int i, G4int j, G4int k)
◆ TotalEnergyDeposit()
void IORTMatrix::TotalEnergyDeposit |
( |
| ) |
|
◆ doseUnit
◆ filename
◆ hitTrack
G4int* IORTMatrix::hitTrack |
|
private |
◆ instance
◆ ionStore
std::vector<ion> IORTMatrix::ionStore |
|
private |
◆ massOfVoxel
◆ matrix
◆ numberOfVoxelAlongX
G4int IORTMatrix::numberOfVoxelAlongX |
|
private |
◆ numberOfVoxelAlongY
G4int IORTMatrix::numberOfVoxelAlongY |
|
private |
◆ numberOfVoxelAlongZ
G4int IORTMatrix::numberOfVoxelAlongZ |
|
private |
◆ ofs
std::ofstream IORTMatrix::ofs |
|
private |
◆ secondary
G4bool IORTMatrix::secondary = false |
|
static |
◆ stdFile
The documentation for this class was generated from the following files: