#include <ML2SDWithVoxels.hh>
|
| | CML2SDWithVoxels (G4String name, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG, G4ThreeVector centre, G4ThreeVector halfSize, G4int NumberOfVoxelsAlongX, G4int NumberOfVoxelsAlongY, G4int NumberOfVoxelsAlongZ) |
| |
| | ~CML2SDWithVoxels (void) |
| |
| G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *ROHist) |
| |
| void | Initialize (G4HCofThisEvent *) |
| |
| void | EndOfEvent (G4HCofThisEvent *) |
| |
| G4int | getTotalNumberOfEvents () |
| |
| void | setActive (G4bool act) |
| |
| void | save () |
| |
| void | setRecycling (int recycling) |
| |
| void | setVolumeNameIdLink (std::vector< SvolumeNameId > volNameIdLink) |
| |
| void | resetVoxelsSingle () |
| |
| void | setFullOutFileDataSingle (G4String val) |
| |
| | G4VSensitiveDetector (G4String name) |
| |
| | G4VSensitiveDetector (const G4VSensitiveDetector &right) |
| |
| virtual | ~G4VSensitiveDetector () |
| |
| G4VSensitiveDetector & | operator= (const G4VSensitiveDetector &right) |
| |
| G4int | operator== (const G4VSensitiveDetector &right) const |
| |
| G4int | operator!= (const G4VSensitiveDetector &right) const |
| |
| virtual void | clear () |
| |
| virtual void | DrawAll () |
| |
| virtual void | PrintAll () |
| |
| G4bool | Hit (G4Step *aStep) |
| |
| void | SetROgeometry (G4VReadOutGeometry *value) |
| |
| void | SetFilter (G4VSDFilter *value) |
| |
| G4int | GetNumberOfCollections () const |
| |
| G4String | GetCollectionName (G4int id) const |
| |
| void | SetVerboseLevel (G4int vl) |
| |
| void | Activate (G4bool activeFlag) |
| |
| G4bool | isActive () const |
| |
| G4String | GetName () const |
| |
| G4String | GetPathName () const |
| |
| G4String | GetFullPathName () const |
| |
| G4VReadOutGeometry * | GetROgeometry () const |
| |
| G4VSDFilter * | GetFilter () const |
| |
| virtual G4VSensitiveDetector * | Clone () const |
| |
Definition at line 55 of file ML2SDWithVoxels.hh.
◆ CML2SDWithVoxels()
Definition at line 49 of file ML2SDWithVoxels.cc.
69 sprintf(a,
"%d", seed);
void set(double x, double y, double z)
G4int NumberOfVoxelsAlongX
G4double halfXVoxelDimensionX
G4int NumberOfVoxelsAlongZ
G4int NumberOfVoxelsAlongY
G4String fullOutFileDataSingle
G4double depEnergyNormError
G4double halfXVoxelDimensionZ
G4double halfXVoxelDimensionY
G4VSensitiveDetector(G4String name)
G4int saving_in_ROG_Voxels_every_events
◆ ~CML2SDWithVoxels()
| CML2SDWithVoxels::~CML2SDWithVoxels |
( |
void |
| ) |
|
◆ EndOfEvent()
◆ getIdFromVolumeName()
◆ getTotalNumberOfEvents()
| G4int CML2SDWithVoxels::getTotalNumberOfEvents |
( |
| ) |
|
|
inline |
◆ Initialize()
◆ ProcessHits()
Implements G4VSensitiveDetector.
Definition at line 172 of file ML2SDWithVoxels.cc.
177 G4double energyDep = aStep->GetTotalEnergyDeposit();
187 density=aStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetMaterial()->GetDensity();
G4int GetReplicaNumber(G4int depth=0) const
G4int getIdFromVolumeName(G4String name)
G4int saving_in_ROG_Voxels_every_events
◆ resetVoxelsSingle()
| void CML2SDWithVoxels::resetVoxelsSingle |
( |
| ) |
|
Definition at line 148 of file ML2SDWithVoxels.cc.
void set(double x, double y, double z)
G4int NumberOfVoxelsAlongX
G4double halfXVoxelDimensionX
G4int NumberOfVoxelsAlongZ
G4int NumberOfVoxelsAlongY
G4double depEnergyNormError
G4double halfXVoxelDimensionZ
G4double halfXVoxelDimensionY
◆ save()
| void CML2SDWithVoxels::save |
( |
| ) |
|
Definition at line 222 of file ML2SDWithVoxels.cc.
224 std::cout<<
"n. of events collected in the whole ROG phantom for all geometries: "<<
nTotalEvents<<
G4endl;
225 std::cout<<
"n. of events collected in the whole ROG phantom for the current geometry: "<<
nSingleTotalEvents<<
G4endl;
G4String fullOutFileDataSingle
void saveData(G4String Filename, Svoxel ***voxels)
◆ saveData()
| void CML2SDWithVoxels::saveData |
( |
G4String |
Filename, |
|
|
Svoxel *** |
voxels |
|
) |
| |
|
private |
Definition at line 231 of file ML2SDWithVoxels.cc.
234 out.open(Filename, std::ios::out);
235 out <<
"Sensitive Detector-Voxels. Total number of events, [mm]->centreX centreY centreZ HalfSizeX HalfSizeY HalfSizeZ minX maxX, minY maxY, minZ maxZ, Dx, Dy, Dz, nX, nY, nZ: \n";
251 out <<
"Phys Volume x [mm], y [mm], z [mm], ix, iy, iz, Dose [Gy], Dose2 [Gy^2], nEvents" <<
G4endl;
259 if (voxels[ix][iy][
iz].nEvents>0)
G4int NumberOfVoxelsAlongX
std::vector< SvolumeNameId > volumeNameIdLink
static const double joule
G4double halfXVoxelDimensionX
G4int NumberOfVoxelsAlongZ
G4int NumberOfVoxelsAlongY
G4double halfXVoxelDimensionZ
G4double halfXVoxelDimensionY
◆ setActive()
| void CML2SDWithVoxels::setActive |
( |
G4bool |
act | ) |
|
|
inline |
◆ setFullOutFileDataSingle()
| void CML2SDWithVoxels::setFullOutFileDataSingle |
( |
G4String |
val | ) |
|
Definition at line 278 of file ML2SDWithVoxels.cc.
284 static unsigned int indGeom=0;
286 sprintf(cT,
"%d",indGeom);
G4String fullOutFileDataSingle
◆ setRecycling()
| void CML2SDWithVoxels::setRecycling |
( |
int |
recycling | ) |
|
|
inline |
◆ setVolumeNameIdLink()
| void CML2SDWithVoxels::setVolumeNameIdLink |
( |
std::vector< SvolumeNameId > |
volNameIdLink | ) |
|
|
inline |
◆ bActive
| G4bool CML2SDWithVoxels::bActive |
|
private |
◆ bSaveROG
| G4bool CML2SDWithVoxels::bSaveROG |
|
private |
◆ centre
◆ density
◆ fullOutFileData
| G4String CML2SDWithVoxels::fullOutFileData |
|
private |
◆ fullOutFileDataSingle
| G4String CML2SDWithVoxels::fullOutFileDataSingle |
|
private |
◆ halfSize
◆ halfXVoxelDimensionX
| G4double CML2SDWithVoxels::halfXVoxelDimensionX |
|
private |
◆ halfXVoxelDimensionY
| G4double CML2SDWithVoxels::halfXVoxelDimensionY |
|
private |
◆ halfXVoxelDimensionZ
| G4double CML2SDWithVoxels::halfXVoxelDimensionZ |
|
private |
◆ nParticle
| G4int CML2SDWithVoxels::nParticle |
|
private |
◆ nParticleValatile
| G4int CML2SDWithVoxels::nParticleValatile |
|
private |
◆ nRecycling
| G4int CML2SDWithVoxels::nRecycling |
|
private |
◆ nSingleTotalEvents
| G4int CML2SDWithVoxels::nSingleTotalEvents |
|
private |
◆ nTotalEvents
| G4int CML2SDWithVoxels::nTotalEvents |
|
private |
◆ NumberOfVoxelsAlongX
| G4int CML2SDWithVoxels::NumberOfVoxelsAlongX |
|
private |
◆ NumberOfVoxelsAlongY
| G4int CML2SDWithVoxels::NumberOfVoxelsAlongY |
|
private |
◆ NumberOfVoxelsAlongZ
| G4int CML2SDWithVoxels::NumberOfVoxelsAlongZ |
|
private |
◆ pos
◆ saving_in_ROG_Voxels_every_events
| G4int CML2SDWithVoxels::saving_in_ROG_Voxels_every_events |
|
private |
◆ volumeNameIdLink
◆ voxelMass
◆ voxelsSingle
| Svoxel *** CML2SDWithVoxels::voxelsSingle |
|
private |
◆ voxelsSum
| Svoxel*** CML2SDWithVoxels::voxelsSum |
|
private |
◆ voxelVolume
The documentation for this class was generated from the following files: