Geant4  10.02.p02
CML2SDWithVoxels Class Reference

#include <ML2SDWithVoxels.hh>

+ Inheritance diagram for CML2SDWithVoxels:
+ Collaboration diagram for CML2SDWithVoxels:

Public Member Functions

 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)
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (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
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Private Member Functions

void saveData (G4String Filename, Svoxel ***voxels)
 
G4int getIdFromVolumeName (G4String name)
 

Private Attributes

G4ThreeVector halfSize
 
G4ThreeVector centre
 
G4ThreeVector pos
 
G4double halfXVoxelDimensionX
 
G4double halfXVoxelDimensionY
 
G4double halfXVoxelDimensionZ
 
G4int NumberOfVoxelsAlongX
 
G4int NumberOfVoxelsAlongY
 
G4int NumberOfVoxelsAlongZ
 
Svoxel *** voxelsSum
 
Svoxel *** voxelsSingle
 
G4String fullOutFileData
 
G4String fullOutFileDataSingle
 
G4int nTotalEvents
 
G4int nSingleTotalEvents
 
G4int nParticle
 
G4int nParticleValatile
 
G4int saving_in_ROG_Voxels_every_events
 
G4int nRecycling
 
G4bool bActive
 
G4bool bSaveROG
 
G4double voxelMass
 
G4double density
 
G4double voxelVolume
 
std::vector< SvolumeNameIdvolumeNameIdLink
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 55 of file ML2SDWithVoxels.hh.

Constructor & Destructor Documentation

CML2SDWithVoxels::~CML2SDWithVoxels ( void  )

Definition at line 140 of file ML2SDWithVoxels.cc.

References bSaveROG, voxelsSingle, and voxelsSum.

Member Function Documentation

void CML2SDWithVoxels::EndOfEvent ( G4HCofThisEvent )
inlinevirtual

Reimplemented from G4VSensitiveDetector.

Definition at line 62 of file ML2SDWithVoxels.hh.

G4int CML2SDWithVoxels::getIdFromVolumeName ( G4String  name)
private

Definition at line 210 of file ML2SDWithVoxels.cc.

References volumeNameIdLink.

Referenced by ProcessHits().

+ Here is the caller graph for this function:

G4int CML2SDWithVoxels::getTotalNumberOfEvents ( )
inline

Definition at line 63 of file ML2SDWithVoxels.hh.

References nTotalEvents.

Referenced by CML2Ph_FullWater::getTotalNumberOfEvents(), and CML2Ph_BoxInBox::getTotalNumberOfEvents().

+ Here is the caller graph for this function:

void CML2SDWithVoxels::Initialize ( G4HCofThisEvent )
inlinevirtual

Reimplemented from G4VSensitiveDetector.

Definition at line 61 of file ML2SDWithVoxels.hh.

void CML2SDWithVoxels::resetVoxelsSingle ( )
void CML2SDWithVoxels::save ( )

Definition at line 222 of file ML2SDWithVoxels.cc.

References fullOutFileData, fullOutFileDataSingle, G4endl, nSingleTotalEvents, nTotalEvents, saveData(), voxelsSingle, and voxelsSum.

Referenced by ProcessHits(), and CML2PhantomConstruction::saveData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CML2SDWithVoxels::saveData ( G4String  Filename,
Svoxel ***  voxels 
)
private

Definition at line 231 of file ML2SDWithVoxels.cc.

References centre, Svoxel::depEnergy, Svoxel::depEnergy2, G4endl, halfSize, halfXVoxelDimensionX, halfXVoxelDimensionY, halfXVoxelDimensionZ, iz, joule, kg, mm, Svoxel::nEvents, nTotalEvents, NumberOfVoxelsAlongX, NumberOfVoxelsAlongY, NumberOfVoxelsAlongZ, Svoxel::pos, Svoxel::volumeId, and volumeNameIdLink.

Referenced by save().

+ Here is the caller graph for this function:

void CML2SDWithVoxels::setActive ( G4bool  act)
inline

Definition at line 64 of file ML2SDWithVoxels.hh.

References bActive.

void CML2SDWithVoxels::setFullOutFileDataSingle ( G4String  val)

Definition at line 278 of file ML2SDWithVoxels.cc.

References fullOutFileData, and fullOutFileDataSingle.

Referenced by CML2PhantomConstruction::setNewName().

+ Here is the caller graph for this function:

void CML2SDWithVoxels::setRecycling ( int  recycling)
inline

Definition at line 66 of file ML2SDWithVoxels.hh.

References nRecycling.

void CML2SDWithVoxels::setVolumeNameIdLink ( std::vector< SvolumeNameId volNameIdLink)
inline

Definition at line 67 of file ML2SDWithVoxels.hh.

References volumeNameIdLink.

Referenced by CML2PhantomConstruction::Construct().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool CML2SDWithVoxels::bActive
private

Definition at line 81 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), ProcessHits(), and setActive().

G4bool CML2SDWithVoxels::bSaveROG
private

Definition at line 81 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), ProcessHits(), and ~CML2SDWithVoxels().

G4ThreeVector CML2SDWithVoxels::centre
private

Definition at line 74 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4double CML2SDWithVoxels::density
private

Definition at line 82 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), and ProcessHits().

G4String CML2SDWithVoxels::fullOutFileData
private

Definition at line 79 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), save(), and setFullOutFileDataSingle().

G4String CML2SDWithVoxels::fullOutFileDataSingle
private

Definition at line 79 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), save(), and setFullOutFileDataSingle().

G4ThreeVector CML2SDWithVoxels::halfSize
private

Definition at line 74 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4double CML2SDWithVoxels::halfXVoxelDimensionX
private

Definition at line 76 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4double CML2SDWithVoxels::halfXVoxelDimensionY
private

Definition at line 76 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4double CML2SDWithVoxels::halfXVoxelDimensionZ
private

Definition at line 76 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4int CML2SDWithVoxels::nParticle
private

Definition at line 80 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels().

G4int CML2SDWithVoxels::nParticleValatile
private

Definition at line 80 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels().

G4int CML2SDWithVoxels::nRecycling
private

Definition at line 80 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), ProcessHits(), and setRecycling().

G4int CML2SDWithVoxels::nSingleTotalEvents
private

Definition at line 80 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), ProcessHits(), resetVoxelsSingle(), and save().

G4int CML2SDWithVoxels::nTotalEvents
private
G4int CML2SDWithVoxels::NumberOfVoxelsAlongX
private

Definition at line 77 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4int CML2SDWithVoxels::NumberOfVoxelsAlongY
private

Definition at line 77 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4int CML2SDWithVoxels::NumberOfVoxelsAlongZ
private

Definition at line 77 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), resetVoxelsSingle(), and saveData().

G4ThreeVector CML2SDWithVoxels::pos
private

Definition at line 75 of file ML2SDWithVoxels.hh.

G4int CML2SDWithVoxels::saving_in_ROG_Voxels_every_events
private

Definition at line 80 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), and ProcessHits().

std::vector<SvolumeNameId> CML2SDWithVoxels::volumeNameIdLink
private

Definition at line 83 of file ML2SDWithVoxels.hh.

Referenced by getIdFromVolumeName(), saveData(), and setVolumeNameIdLink().

G4double CML2SDWithVoxels::voxelMass
private

Definition at line 82 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), and ProcessHits().

Svoxel *** CML2SDWithVoxels::voxelsSingle
private
Svoxel*** CML2SDWithVoxels::voxelsSum
private

Definition at line 78 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), ProcessHits(), save(), and ~CML2SDWithVoxels().

G4double CML2SDWithVoxels::voxelVolume
private

Definition at line 82 of file ML2SDWithVoxels.hh.

Referenced by CML2SDWithVoxels(), and ProcessHits().


The documentation for this class was generated from the following files: