51 :filename(
"Let.out"),matrix(0)
59 "HadrontherapyMatrix not found. Firstly create an instance of it.");
70 detectorMat = pDet -> GetDetectorLogicalVolume() -> GetMaterial();
110 if (DE <= 0. || DX <=0.)
return;
112 G4int Z = particleDef -> GetAtomicNumber();
115 G4int PDGencoding = particleDef -> GetPDGEncoding();
116 PDGencoding -= PDGencoding%10;
137 G4int A = particleDef -> GetAtomicMass();
139 G4String fullName = particleDef -> GetParticleName();
140 G4String name = fullName.substr (0, fullName.find(
"[") );
144 (trackID == 1) ?
true:
false,
219 ofs << i <<
'\t' << j <<
'\t' << k <<
'\t';
239 #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
HadrontherapyLet(HadrontherapyDetectorConstruction *)
std::vector< ionLet > ionLetStore
G4int numberOfVoxelAlongX
void Clear()
Clear all stored data.
static const G4double A[nN]
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