58 if (!
matrix)
G4Exception(
"HadrontherapyLet::HadrontherapyLet",
"Hadrontherapy0005",
FatalException,
"HadrontherapyMatrix not found. Firstly create an instance of it.");
69 detectorMat = pDet -> GetDetectorLogicalVolume() -> GetMaterial();
108 if (DE <= 0. || DX <=0.)
return;
110 G4int Z = particleDef -> GetAtomicNumber();
113 G4int PDGencoding = particleDef -> GetPDGEncoding();
114 PDGencoding -= PDGencoding%10;
135 G4int A = particleDef -> GetAtomicMass();
137 G4String fullName = particleDef -> GetParticleName();
138 G4String name = fullName.substr (0, fullName.find(
"[") );
142 (trackID == 1) ?
true:
false,
217 ofs << i <<
'\t' << j <<
'\t' << k <<
'\t';
237 #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