#include <ML2ExpVoxels.hh>
Definition at line 51 of file ML2ExpVoxels.hh.
◆ CML2ExpVoxels()
CML2ExpVoxels::CML2ExpVoxels |
( |
G4bool |
bHasExperimentalData, |
|
|
G4int |
saving_in_Selected_Voxels_every_events, |
|
|
G4int |
seed, |
|
|
G4String |
FileExperimentalData, |
|
|
G4String |
FileExperimentalDataOut |
|
) |
| |
Definition at line 48 of file ML2ExpVoxels.cc.
53 sprintf(a,
"%d", seed);
void set(double x, double y, double z)
G4int saving_in_Selected_Voxels_every_events
G4bool bHasExperimentalData
◆ ~CML2ExpVoxels()
CML2ExpVoxels::~CML2ExpVoxels |
( |
void |
| ) |
|
◆ add() [1/2]
◆ add() [2/2]
void CML2ExpVoxels::add |
( |
const G4Step * |
aStep | ) |
|
Definition at line 165 of file ML2ExpVoxels.cc.
170 pos=aStep->GetPreStepPoint()->GetPosition();
171 depEnergy=aStep->GetTotalEnergyDeposit();
172 density=aStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetMaterial()->GetDensity();
184 for (
int i=0; i<(int)
voxels.size(); i++)
192 voxelVolume=
voxels[i].halfSize.getX()*
voxels[i].halfSize.getY()*
voxels[i].halfSize.getZ()*8.;
193 voxelMass=density*voxelVolume;
203 particle->
dir=aStep->GetPreStepPoint()->GetMomentumDirection();
204 particle->
pos=aStep->GetPreStepPoint()->GetPosition();
207 particle->
partPDGE=aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
G4int saving_in_Selected_Voxels_every_events
G4int primaryParticlePDGE
std::vector< Svoxel > voxels
static const G4double pos
◆ calculateNormalizedEd()
void CML2ExpVoxels::calculateNormalizedEd |
( |
std::vector< Svoxel > & |
voxels | ) |
|
|
private |
Definition at line 284 of file ML2ExpVoxels.cc.
296 cs+=
vox[i].depEnergy*
vox[i].expDose;
297 cc+=
vox[i].depEnergy*
vox[i].depEnergy;
305 dd=
vox[i].depEnergy*
vox[i].depEnergy;
306 d2=
vox[i].depEnergy2;
311 if (n>1){
vox[i].depEnergyNormError=
chi2Factor[j]*std::sqrt(v/(n-1));}
312 if (n==1){
vox[i].depEnergyNormError=
vox[i].depEnergyNorm;}
◆ getMaxNumberOfEvents()
G4int CML2ExpVoxels::getMaxNumberOfEvents |
( |
| ) |
|
◆ getMinNumberOfEvents()
G4int CML2ExpVoxels::getMinNumberOfEvents |
( |
| ) |
|
◆ getVoxels()
std::vector<Svoxel> CML2ExpVoxels::getVoxels |
( |
| ) |
|
|
inline |
◆ loadData()
G4bool CML2ExpVoxels::loadData |
( |
void |
| ) |
|
Definition at line 77 of file ML2ExpVoxels.cc.
92 in.getline(a,1000,
'\n');
104 in.getline(a,1000,
'\n');
149 std::cout <<
"ERROR I can't find the experimental data file" <<
G4endl;
static const double joule
G4bool bHasExperimentalData
void resetNEventsInVoxels()
G4double depEnergyNormError
std::vector< Svoxel > voxels
static const G4double pos
◆ resetNEventsInVoxels()
void CML2ExpVoxels::resetNEventsInVoxels |
( |
| ) |
|
Definition at line 159 of file ML2ExpVoxels.cc.
161 for (
int i=0; i<(int)
voxels.size(); i++ )
std::vector< Svoxel > voxels
◆ saveHeader()
void CML2ExpVoxels::saveHeader |
( |
| ) |
|
|
private |
Definition at line 243 of file ML2ExpVoxels.cc.
257 out <<
"% x [mm], y [mm], z [mm], Dx [mm], Dy [mm], Dz [mm], expDose [Gy], Calculated dose [Gy], Calculated dose2 [Gy^2], nEvents, normDose [Gy], normDoseError [Gy]";
◆ saveResults()
void CML2ExpVoxels::saveResults |
( |
void |
| ) |
|
Definition at line 262 of file ML2ExpVoxels.cc.
271 for (
int i=0; i<(int)
voxels.size(); i++)
void calculateNormalizedEd(std::vector< Svoxel > &voxels)
static const double joule
std::vector< Svoxel > voxels
◆ setRecycling()
void CML2ExpVoxels::setRecycling |
( |
int |
recycling | ) |
|
|
inline |
◆ bHasExperimentalData
G4bool CML2ExpVoxels::bHasExperimentalData |
|
private |
◆ chi2Factor
◆ fullFileIn
◆ fullFileOut
◆ generalData
◆ headerText1
◆ headerText2
◆ loopName
◆ maxZone
◆ minZone
◆ nCurves
G4int CML2ExpVoxels::nCurves |
|
private |
◆ nParticle
G4int CML2ExpVoxels::nParticle |
|
private |
◆ nRecycling
G4int CML2ExpVoxels::nRecycling |
|
private |
◆ nTotalEvents
G4int CML2ExpVoxels::nTotalEvents |
|
private |
◆ nVoxelsgeometry
G4int* CML2ExpVoxels::nVoxelsgeometry |
|
private |
◆ saving_in_Selected_Voxels_every_events
G4int CML2ExpVoxels::saving_in_Selected_Voxels_every_events |
|
private |
◆ seedName
◆ startCurve
G4int* CML2ExpVoxels::startCurve |
|
private |
◆ stopCurve
G4int * CML2ExpVoxels::stopCurve |
|
private |
◆ voxels
std::vector<Svoxel> CML2ExpVoxels::voxels |
|
private |
The documentation for this class was generated from the following files: