Geant4  10.01.p01
G4VScoringMesh Class Referenceabstract

#include <G4VScoringMesh.hh>

+ Inheritance diagram for G4VScoringMesh:
+ Collaboration diagram for G4VScoringMesh:

Public Member Functions

 G4VScoringMesh (const G4String &wName)
 
virtual ~G4VScoringMesh ()
 
void Construct (G4VPhysicalVolume *fWorldPhys)
 
void WorkerConstruct (G4VPhysicalVolume *fWorldPhys)
 
virtual void List () const
 
const G4StringGetWorldName () const
 
G4bool IsActive () const
 
void Activate (G4bool vl=true)
 
MeshShape GetShape () const
 
void Accumulate (G4THitsMap< G4double > *map)
 
void Merge (const G4VScoringMesh *scMesh)
 
void Dump ()
 
void DrawMesh (const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
 
void DrawMesh (const G4String &psName, G4int idxPlane, G4int iColumn, G4VScoreColorMap *colorMap)
 
virtual void Draw (std::map< G4int, G4double * > *map, G4VScoreColorMap *colorMap, G4int axflg=111)=0
 
virtual void DrawColumn (std::map< G4int, G4double * > *map, G4VScoreColorMap *colorMap, G4int idxProj, G4int idxColumn)=0
 
void ResetScore ()
 
void SetSize (G4double size[3])
 
G4ThreeVector GetSize () const
 
void SetCenterPosition (G4double centerPosition[3])
 
G4ThreeVector GetTranslation () const
 
void RotateX (G4double delta)
 
void RotateY (G4double delta)
 
void RotateZ (G4double delta)
 
G4RotationMatrix GetRotationMatrix () const
 
void SetNumberOfSegments (G4int nSegment[3])
 
void GetNumberOfSegments (G4int nSegment[3])
 
void SetPrimitiveScorer (G4VPrimitiveScorer *ps)
 
void SetFilter (G4VSDFilter *filter)
 
void SetCurrentPrimitiveScorer (const G4String &name)
 
G4bool FindPrimitiveScorer (const G4String &psname)
 
G4bool IsCurrentPrimitiveScorerNull ()
 
G4String GetPSUnit (const G4String &psname)
 
G4String GetCurrentPSUnit ()
 
void SetCurrentPSUnit (const G4String &unit)
 
G4double GetPSUnitValue (const G4String &psname)
 
void SetDrawPSName (const G4String &psname)
 
void GetDivisionAxisNames (G4String divisionAxisNames[3])
 
void SetNullToCurrentPrimitiveScorer ()
 
void SetVerboseLevel (G4int vl)
 
MeshScoreMap GetScoreMap () const
 
G4bool ReadyForQuantity () const
 
void SetMeshElementLogical (G4LogicalVolume *val)
 
G4LogicalVolumeGetMeshElementLogical () const
 
void SetParallelWorldProcess (G4ParallelWorldProcess *proc)
 
G4ParallelWorldProcessGetParallelWorldProcess () const
 
void GeometryHasBeenDestroyed ()
 

Protected Member Functions

virtual void SetupGeometry (G4VPhysicalVolume *fWorldPhys)=0
 
G4VPrimitiveScorerGetPrimitiveScorer (const G4String &name)
 

Protected Attributes

G4String fWorldName
 
G4VPrimitiveScorerfCurrentPS
 
G4bool fConstructed
 
G4bool fActive
 
MeshShape fShape
 
G4double fSize [3]
 
G4ThreeVector fCenterPosition
 
G4RotationMatrixfRotationMatrix
 
G4int fNSegment [3]
 
std::map< G4String, G4THitsMap
< G4double > * > 
fMap
 
G4MultiFunctionalDetectorfMFD
 
G4int verboseLevel
 
G4bool sizeIsSet
 
G4bool nMeshIsSet
 
G4String fDrawUnit
 
G4double fDrawUnitValue
 
G4String fDrawPSName
 
G4String fDivisionAxisNames [3]
 
G4LogicalVolumefMeshElementLogical
 
G4ParallelWorldProcessfParallelWorldProcess
 
G4bool fGeometryHasBeenDestroyed
 

Detailed Description

Definition at line 54 of file G4VScoringMesh.hh.

Constructor & Destructor Documentation

G4VScoringMesh::G4VScoringMesh ( const G4String wName)

Definition at line 46 of file G4VScoringMesh.cc.

References G4SDManager::AddNewDetector(), fDivisionAxisNames, fMFD, fNSegment, fSize, and G4SDManager::GetSDMpointer().

+ Here is the call graph for this function:

G4VScoringMesh::~G4VScoringMesh ( )
virtual

Definition at line 60 of file G4VScoringMesh.cc.

Member Function Documentation

void G4VScoringMesh::Accumulate ( G4THitsMap< G4double > *  map)

Definition at line 315 of file G4VScoringMesh.cc.

References fMap, G4cout, G4endl, G4VHitsCollection::GetName(), G4THitsMap< T >::GetSize(), G4THitsMap< T >::PrintAllHits(), and verboseLevel.

Referenced by G4ScoringManager::Accumulate(), GammaKnifeController::AccumulateAllHits(), and G4MPIScorerMerger::MergeOneMesh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::Activate ( G4bool  vl = true)
inline

Definition at line 81 of file G4VScoringMesh.hh.

References fActive.

void G4VScoringMesh::Construct ( G4VPhysicalVolume fWorldPhys)

Definition at line 336 of file G4VScoringMesh.cc.

References fConstructed, fGeometryHasBeenDestroyed, G4cout, G4endl, G4VPhysicalVolume::GetName(), ResetScore(), SetupGeometry(), and verboseLevel.

Referenced by G4RunManager::ConstructScoringWorlds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void G4VScoringMesh::Draw ( std::map< G4int, G4double * > *  map,
G4VScoreColorMap colorMap,
G4int  axflg = 111 
)
pure virtual

Implemented in G4ScoringBox, and G4ScoringCylinder.

Referenced by DrawMesh().

+ Here is the caller graph for this function:

virtual void G4VScoringMesh::DrawColumn ( std::map< G4int, G4double * > *  map,
G4VScoreColorMap colorMap,
G4int  idxProj,
G4int  idxColumn 
)
pure virtual

Implemented in G4ScoringBox, and G4ScoringCylinder.

Referenced by DrawMesh().

+ Here is the caller graph for this function:

void G4VScoringMesh::DrawMesh ( const G4String psName,
G4VScoreColorMap colorMap,
G4int  axflg = 111 
)

Definition at line 289 of file G4VScoringMesh.cc.

References Draw(), fDrawPSName, fDrawUnit, fDrawUnitValue, fMap, G4cerr, G4endl, GetPSUnit(), and GetPSUnitValue().

Referenced by G4VSceneHandler::AddCompound(), and G4ScoringManager::DrawMesh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::DrawMesh ( const G4String psName,
G4int  idxPlane,
G4int  iColumn,
G4VScoreColorMap colorMap 
)

Definition at line 302 of file G4VScoringMesh.cc.

References DrawColumn(), fDrawPSName, fDrawUnit, fDrawUnitValue, fMap, G4cerr, G4endl, GetPSUnit(), and GetPSUnitValue().

+ Here is the call graph for this function:

void G4VScoringMesh::Dump ( )

Definition at line 275 of file G4VScoringMesh.cc.

References fMap, fWorldName, G4cout, and G4endl.

G4bool G4VScoringMesh::FindPrimitiveScorer ( const G4String psname)

Definition at line 173 of file G4VScoringMesh.cc.

References fMap.

Referenced by G4ScoreQuantityMessenger::CheckMeshPS().

+ Here is the caller graph for this function:

void G4VScoringMesh::GeometryHasBeenDestroyed ( )
inline

Definition at line 213 of file G4VScoringMesh.hh.

Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4RunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

G4String G4VScoringMesh::GetCurrentPSUnit ( )

Definition at line 188 of file G4VScoringMesh.cc.

References fCurrentPS, G4cerr, G4endl, and G4VPrimitiveScorer::GetUnit().

Referenced by G4ScoreQuantityMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::GetDivisionAxisNames ( G4String  divisionAxisNames[3])

Definition at line 219 of file G4VScoringMesh.cc.

References fDivisionAxisNames.

Referenced by G4VScoreWriter::DumpAllQuantitiesToFile(), and G4VScoreWriter::DumpQuantityToFile().

+ Here is the caller graph for this function:

G4LogicalVolume* G4VScoringMesh::GetMeshElementLogical ( ) const
inline

Definition at line 202 of file G4VScoringMesh.hh.

References fMeshElementLogical.

Referenced by G4WorkerRunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

void G4VScoringMesh::GetNumberOfSegments ( G4int  nSegment[3])

Definition at line 104 of file G4VScoringMesh.cc.

References fNSegment.

Referenced by G4GMocrenFileSceneHandler::AddSolid(), G4ScoreQuantityMessenger::SetNewValue(), and G4VScoreWriter::SetScoringMesh().

+ Here is the caller graph for this function:

G4ParallelWorldProcess* G4VScoringMesh::GetParallelWorldProcess ( ) const
inline

Definition at line 211 of file G4VScoringMesh.hh.

References fParallelWorldProcess.

Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4RunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

G4VPrimitiveScorer * G4VScoringMesh::GetPrimitiveScorer ( const G4String name)
protected

Definition at line 223 of file G4VScoringMesh.cc.

References fMFD, G4VPrimitiveScorer::GetName(), G4MultiFunctionalDetector::GetNumberOfPrimitives(), and G4MultiFunctionalDetector::GetPrimitive().

Referenced by GetPSUnit(), GetPSUnitValue(), and SetCurrentPrimitiveScorer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4VScoringMesh::GetPSUnit ( const G4String psname)

Definition at line 179 of file G4VScoringMesh.cc.

References fMap, GetPrimitiveScorer(), and G4VPrimitiveScorer::GetUnit().

Referenced by DrawMesh(), G4VScoreWriter::DumpAllQuantitiesToFile(), and G4VScoreWriter::DumpQuantityToFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4VScoringMesh::GetPSUnitValue ( const G4String psname)

Definition at line 210 of file G4VScoringMesh.cc.

References fMap, GetPrimitiveScorer(), and G4VPrimitiveScorer::GetUnitValue().

Referenced by DrawMesh(), G4VScoreWriter::DumpAllQuantitiesToFile(), and G4VScoreWriter::DumpQuantityToFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RotationMatrix G4VScoringMesh::GetRotationMatrix ( ) const
inline

Definition at line 119 of file G4VScoringMesh.hh.

References fRotationMatrix.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

+ Here is the caller graph for this function:

MeshScoreMap G4VScoringMesh::GetScoreMap ( ) const
inline
MeshShape G4VScoringMesh::GetShape ( ) const
inline

Definition at line 84 of file G4VScoringMesh.hh.

References fShape.

Referenced by G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4ThreeVector G4VScoringMesh::GetSize ( ) const

Definition at line 84 of file G4VScoringMesh.cc.

References fSize, and sizeIsSet.

Referenced by G4GMocrenFileSceneHandler::AddSolid(), and G4ScoreQuantityMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4ThreeVector G4VScoringMesh::GetTranslation ( ) const
inline

Definition at line 111 of file G4VScoringMesh.hh.

References fCenterPosition.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

+ Here is the caller graph for this function:

const G4String& G4VScoringMesh::GetWorldName ( ) const
inline

Definition at line 75 of file G4VScoringMesh.hh.

References fWorldName.

Referenced by G4ScoringManager::Accumulate(), G4VScoreWriter::DumpAllQuantitiesToFile(), G4VScoreWriter::DumpQuantityToFile(), BrachyUserScoreWriter::DumpQuantityToFile(), RE03UserScoreWriter::DumpQuantityToFile(), G4MPIScorerMerger::MergeOneMesh(), and G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4bool G4VScoringMesh::IsActive ( ) const
inline

Definition at line 78 of file G4VScoringMesh.hh.

References fActive.

Referenced by G4VSceneHandler::AddCompound(), and G4PSHitsModel::DescribeYourselfTo().

+ Here is the caller graph for this function:

G4bool G4VScoringMesh::IsCurrentPrimitiveScorerNull ( )
inline

Definition at line 137 of file G4VScoringMesh.hh.

References fCurrentPS.

Referenced by G4ScoreQuantityMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoringMesh::List ( ) const
virtual

Reimplemented in G4ScoringBox, and G4ScoringCylinder.

Definition at line 234 of file G4VScoringMesh.cc.

References cm, fCenterPosition, fMFD, fNSegment, fRotationMatrix, G4cout, G4endl, G4VPrimitiveScorer::GetFilter(), G4VSDFilter::GetName(), G4VPrimitiveScorer::GetName(), G4MultiFunctionalDetector::GetNumberOfPrimitives(), and G4MultiFunctionalDetector::GetPrimitive().

Referenced by G4ScoringCylinder::List(), and G4ScoringBox::List().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::Merge ( const G4VScoringMesh scMesh)

Definition at line 372 of file G4VScoringMesh.cc.

References fMap, G4cout, G4endl, GetScoreMap(), and verboseLevel.

Referenced by G4ScoringManager::Merge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4VScoringMesh::ReadyForQuantity ( ) const
inline

Definition at line 164 of file G4VScoringMesh.hh.

References nMeshIsSet, and sizeIsSet.

Referenced by SetPrimitiveScorer().

+ Here is the caller graph for this function:

void G4VScoringMesh::ResetScore ( )

Definition at line 65 of file G4VScoringMesh.cc.

References fMap, G4cout, G4endl, and verboseLevel.

Referenced by Construct(), and WorkerConstruct().

+ Here is the caller graph for this function:

void G4VScoringMesh::RotateX ( G4double  delta)

Definition at line 107 of file G4VScoringMesh.cc.

References fRotationMatrix.

Referenced by GammaKnifeController::RotateBack(), GammaKnifeController::RotateForward(), and G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoringMesh::RotateY ( G4double  delta)

Definition at line 112 of file G4VScoringMesh.cc.

References fRotationMatrix.

Referenced by G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoringMesh::RotateZ ( G4double  delta)

Definition at line 117 of file G4VScoringMesh.cc.

References fRotationMatrix.

Referenced by GammaKnifeController::RotateBack(), GammaKnifeController::RotateForward(), and G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetCenterPosition ( G4double  centerPosition[3])

Definition at line 90 of file G4VScoringMesh.cc.

References fCenterPosition.

Referenced by G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetCurrentPrimitiveScorer ( const G4String name)

Definition at line 165 of file G4VScoringMesh.cc.

References fCurrentPS, G4cerr, G4endl, and GetPrimitiveScorer().

Referenced by G4ScoreQuantityMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::SetCurrentPSUnit ( const G4String unit)

Definition at line 200 of file G4VScoringMesh.cc.

References fCurrentPS, G4cerr, G4endl, and G4VPrimitiveScorer::SetUnit().

Referenced by G4ScoreQuantityMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::SetDrawPSName ( const G4String psname)
inline

Definition at line 150 of file G4VScoringMesh.hh.

References fDrawPSName.

void G4VScoringMesh::SetFilter ( G4VSDFilter filter)

Definition at line 145 of file G4VScoringMesh.cc.

References fCurrentPS, G4cerr, G4cout, G4endl, G4VPrimitiveScorer::GetFilter(), G4VSDFilter::GetName(), G4VPrimitiveScorer::GetName(), G4VPrimitiveScorer::SetFilter(), and verboseLevel.

Referenced by G4ScoreQuantityMessenger::FParticleCommand(), G4ScoreQuantityMessenger::FParticleWithEnergyCommand(), and G4ScoreQuantityMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::SetMeshElementLogical ( G4LogicalVolume val)
inline

Definition at line 200 of file G4VScoringMesh.hh.

Referenced by G4WorkerRunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetNullToCurrentPrimitiveScorer ( )
inline

Definition at line 156 of file G4VScoringMesh.hh.

References fCurrentPS.

Referenced by G4ScoreQuantityMessenger::CheckMeshPS().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetNumberOfSegments ( G4int  nSegment[3])

Definition at line 93 of file G4VScoringMesh.cc.

References fNSegment, G4Exception(), JustWarning, and nMeshIsSet.

Referenced by G4ScoringMessenger::MeshBinCommand().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::SetParallelWorldProcess ( G4ParallelWorldProcess proc)
inline

Definition at line 209 of file G4VScoringMesh.hh.

Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4RunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetPrimitiveScorer ( G4VPrimitiveScorer ps)

Definition at line 122 of file G4VScoringMesh.cc.

References fCurrentPS, fMap, fMFD, fNSegment, fWorldName, G4cerr, G4cout, G4endl, G4VPrimitiveScorer::GetName(), ReadyForQuantity(), G4MultiFunctionalDetector::RegisterPrimitive(), G4VPrimitiveScorer::SetNijk(), and verboseLevel.

Referenced by G4ScoreQuantityMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoringMesh::SetSize ( G4double  size[3])

Definition at line 73 of file G4VScoringMesh.cc.

References fSize, G4Exception(), JustWarning, and sizeIsSet.

Referenced by G4ScoringMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void G4VScoringMesh::SetupGeometry ( G4VPhysicalVolume fWorldPhys)
protectedpure virtual

Implemented in G4ScoringBox, and G4ScoringCylinder.

Referenced by Construct().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetVerboseLevel ( G4int  vl)
inline

Definition at line 158 of file G4VScoringMesh.hh.

References verboseLevel.

Referenced by G4ScoringManager::RegisterScoringMesh().

+ Here is the caller graph for this function:

void G4VScoringMesh::WorkerConstruct ( G4VPhysicalVolume fWorldPhys)

Definition at line 354 of file G4VScoringMesh.cc.

References fConstructed, fGeometryHasBeenDestroyed, fMeshElementLogical, fMFD, G4cout, G4endl, G4VPhysicalVolume::GetName(), ResetScore(), G4LogicalVolume::SetSensitiveDetector(), and verboseLevel.

Referenced by G4WorkerRunManager::ConstructScoringWorlds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4bool G4VScoringMesh::fActive
protected

Definition at line 175 of file G4VScoringMesh.hh.

Referenced by Activate(), and IsActive().

G4bool G4VScoringMesh::fConstructed
protected

Definition at line 174 of file G4VScoringMesh.hh.

Referenced by Construct(), and WorkerConstruct().

G4String G4VScoringMesh::fDivisionAxisNames[3]
protected
G4String G4VScoringMesh::fDrawUnit
protected
G4double G4VScoringMesh::fDrawUnitValue
protected
G4bool G4VScoringMesh::fGeometryHasBeenDestroyed
protected

Definition at line 207 of file G4VScoringMesh.hh.

Referenced by Construct(), and WorkerConstruct().

std::map<G4String, G4THitsMap<G4double>* > G4VScoringMesh::fMap
protected
G4LogicalVolume* G4VScoringMesh::fMeshElementLogical
protected
G4ParallelWorldProcess* G4VScoringMesh::fParallelWorldProcess
protected

Definition at line 206 of file G4VScoringMesh.hh.

Referenced by GetParallelWorldProcess().

MeshShape G4VScoringMesh::fShape
protected
G4bool G4VScoringMesh::nMeshIsSet
protected

Definition at line 189 of file G4VScoringMesh.hh.

Referenced by ReadyForQuantity(), and SetNumberOfSegments().

G4bool G4VScoringMesh::sizeIsSet
protected

Definition at line 188 of file G4VScoringMesh.hh.

Referenced by GetSize(), ReadyForQuantity(), and SetSize().


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