Geant4  10.00.p03
G4VScoringMesh Class Referenceabstract

#include <G4VScoringMesh.hh>

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

Public Member Functions

 G4VScoringMesh (const G4String &wName)
 
virtual ~G4VScoringMesh ()
 
virtual void Construct (G4VPhysicalVolume *fWorldPhys)=0
 
virtual 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
 

Protected Member Functions

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
 

Detailed Description

Definition at line 53 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 59 of file G4VScoringMesh.cc.

Member Function Documentation

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

Definition at line 314 of file G4VScoringMesh.cc.

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

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

+ 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 76 of file G4VScoringMesh.hh.

References fActive.

virtual void G4VScoringMesh::Construct ( G4VPhysicalVolume fWorldPhys)
pure virtual

Implemented in G4ScoringBox, and G4ScoringCylinder.

Referenced by G4RunManager::ConstructScoringWorlds().

+ 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 288 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 301 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 274 of file G4VScoringMesh.cc.

References fMap, fWorldName, G4cout, and G4endl.

G4bool G4VScoringMesh::FindPrimitiveScorer ( const G4String psname)

Definition at line 172 of file G4VScoringMesh.cc.

References fMap.

Referenced by G4ScoreQuantityMessenger::CheckMeshPS().

+ Here is the caller graph for this function:

G4String G4VScoringMesh::GetCurrentPSUnit ( )

Definition at line 187 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 218 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 197 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 103 of file G4VScoringMesh.cc.

References fNSegment.

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

+ Here is the caller graph for this function:

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

Definition at line 222 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 178 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 209 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 114 of file G4VScoringMesh.hh.

References fRotationMatrix.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

+ Here is the caller graph for this function:

MeshScoreMap G4VScoringMesh::GetScoreMap ( ) const
inline

Definition at line 156 of file G4VScoringMesh.hh.

References fMap.

Referenced by G4VSceneHandler::AddCompound(), G4PSHitsModel::DescribeYourselfTo(), G4VScoreWriter::DumpAllQuantitiesToFile(), G4VScoreWriter::DumpQuantityToFile(), RE03UserScoreWriter::DumpQuantityToFile(), Merge(), GammaKnifeController::PrepareHitsAccumulation(), and GammaKnifeController::StoreHits().

+ Here is the caller graph for this function:

MeshShape G4VScoringMesh::GetShape ( ) const
inline

Definition at line 79 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 83 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 106 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 70 of file G4VScoringMesh.hh.

References fWorldName.

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

+ Here is the caller graph for this function:

G4bool G4VScoringMesh::IsActive ( ) const
inline

Definition at line 73 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 132 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 233 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 349 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 159 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 64 of file G4VScoringMesh.cc.

References fMap, G4cout, G4endl, and verboseLevel.

Referenced by G4ScoringCylinder::Construct(), G4ScoringBox::Construct(), and WorkerConstruct().

+ Here is the caller graph for this function:

void G4VScoringMesh::RotateX ( G4double  delta)

Definition at line 106 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 111 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 116 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 89 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 164 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 199 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 145 of file G4VScoringMesh.hh.

References fDrawPSName.

void G4VScoringMesh::SetFilter ( G4VSDFilter filter)

Definition at line 144 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 195 of file G4VScoringMesh.hh.

Referenced by G4WorkerRunManager::ConstructScoringWorlds().

+ Here is the caller graph for this function:

void G4VScoringMesh::SetNullToCurrentPrimitiveScorer ( )
inline

Definition at line 151 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 92 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::SetPrimitiveScorer ( G4VPrimitiveScorer ps)

Definition at line 121 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 72 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:

void G4VScoringMesh::SetVerboseLevel ( G4int  vl)
inline

Definition at line 153 of file G4VScoringMesh.hh.

References verboseLevel.

Referenced by G4ScoringManager::RegisterScoringMesh().

+ Here is the caller graph for this function:

void G4VScoringMesh::WorkerConstruct ( G4VPhysicalVolume fWorldPhys)
virtual

Definition at line 335 of file G4VScoringMesh.cc.

References fConstructed, 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 170 of file G4VScoringMesh.hh.

Referenced by Activate(), and IsActive().

G4bool G4VScoringMesh::fConstructed
protected
G4String G4VScoringMesh::fDivisionAxisNames[3]
protected
G4String G4VScoringMesh::fDrawUnit
protected
G4double G4VScoringMesh::fDrawUnitValue
protected
std::map<G4String, G4THitsMap<G4double>* > G4VScoringMesh::fMap
protected
G4LogicalVolume* G4VScoringMesh::fMeshElementLogical
protected
MeshShape G4VScoringMesh::fShape
protected
G4bool G4VScoringMesh::nMeshIsSet
protected

Definition at line 184 of file G4VScoringMesh.hh.

Referenced by ReadyForQuantity(), and SetNumberOfSegments().

G4bool G4VScoringMesh::sizeIsSet
protected

Definition at line 183 of file G4VScoringMesh.hh.

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


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