55 :filename(
"Let.out"),matrix(0)
63 "HadrontherapyMatrix not found. Firstly create an instance of it.");
74 detectorMat = pDet -> GetDetectorLogicalVolume() -> GetMaterial();
114 if (DE <= 0. || DX <=0.)
return;
116 G4int Z = particleDef -> GetAtomicNumber();
119 G4int PDGencoding = particleDef -> GetPDGEncoding();
120 PDGencoding -= PDGencoding%10;
141 G4int A = particleDef -> GetAtomicMass();
143 G4String fullName = particleDef -> GetParticleName();
144 G4String name = fullName.substr (0, fullName.find(
"[") );
148 (trackID == 1) ?
true:
false,
223 ofs << i <<
'\t' << j <<
'\t' << k <<
'\t';
243 #ifdef G4ANALYSIS_USE_ROOT
static G4bool doCalculation
void FillEnergySpectrum(G4int trackID, G4ParticleDefinition *particleDef, G4double DE, G4double DX, G4int i, G4int j, G4int k)
static HadrontherapyAnalysisManager * GetInstance()
Get the pointer to the analysis manager.
HadrontherapyMatrix * matrix
static HadrontherapyLet * GetInstance()
HadrontherapyPrimaryGeneratorAction * pPGA
static HadrontherapyMatrix * GetInstance()
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
HadrontherapyLet(HadrontherapyDetectorConstruction *)
std::vector< ionLet > ionLetStore
G4int numberOfVoxelAlongX
void Clear()
Clear all stored data.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4RunManager * GetRunManager()
A class for connecting the simulation to an analysis package.
static HadrontherapyLet * instance
G4int numberOfVoxelAlongZ
G4int numberOfVoxelAlongY