Geant4  10.03
G4ScoreQuantityMessenger Class Reference

#include <G4ScoreQuantityMessenger.hh>

+ Inheritance diagram for G4ScoreQuantityMessenger:
+ Collaboration diagram for G4ScoreQuantityMessenger:

Public Member Functions

 G4ScoreQuantityMessenger (G4ScoringManager *SManager)
 
 ~G4ScoreQuantityMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
G4String GetCurrentValue (G4UIcommand *)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Protected Member Functions

void FillTokenVec (G4String newValues, G4TokenVec &token)
 
void FParticleCommand (G4VScoringMesh *mesh, G4TokenVec &token)
 
void FParticleWithEnergyCommand (G4VScoringMesh *mesh, G4TokenVec &token)
 
G4bool CheckMeshPS (G4VScoringMesh *mesh, G4String &psname)
 
- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 

Private Member Functions

void QuantityCommands ()
 
void FilterCommands ()
 

Private Attributes

G4ScoringManager * fSMan
 
G4UIdirectory * quantityDir
 
G4UIcmdWithAString * qTouchCmd
 
G4UIcmdWithoutParameter * qGetUnitCmd
 
G4UIcmdWithAString * qSetUnitCmd
 
G4UIcommand * qCellChgCmd
 
G4UIcommand * qCellFluxCmd
 
G4UIcommand * qPassCellFluxCmd
 
G4UIcommand * qeDepCmd
 
G4UIcommand * qdoseDepCmd
 
G4UIcommand * qnOfStepCmd
 
G4UIcommand * qnOfSecondaryCmd
 
G4UIcommand * qTrackLengthCmd
 
G4UIcommand * qPassCellCurrCmd
 
G4UIcommand * qPassTrackLengthCmd
 
G4UIcommand * qFlatSurfCurrCmd
 
G4UIcommand * qFlatSurfFluxCmd
 
G4UIcommand * qNofCollisionCmd
 
G4UIcommand * qPopulationCmd
 
G4UIcommand * qTrackCountCmd
 
G4UIcommand * qTerminationCmd
 
G4UIcommand * qMinKinEAtGeneCmd
 
G4UIcommand * qStepCheckerCmd
 
G4UIdirectory * filterDir
 
G4UIcmdWithAString * fchargedCmd
 
G4UIcmdWithAString * fneutralCmd
 
G4UIcommand * fkinECmd
 
G4UIcommand * fparticleCmd
 
G4UIcommand * fparticleKinECmd
 

Additional Inherited Members

- Protected Attributes inherited from G4UImessenger
G4UIdirectory * baseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 59 of file G4ScoreQuantityMessenger.hh.

Constructor & Destructor Documentation

G4ScoreQuantityMessenger::G4ScoreQuantityMessenger ( G4ScoringManager *  SManager)

Definition at line 91 of file G4ScoreQuantityMessenger.cc.

References FilterCommands(), and QuantityCommands().

+ Here is the call graph for this function:

Member Function Documentation

G4bool G4ScoreQuantityMessenger::CheckMeshPS ( G4VScoringMesh *  mesh,
G4String &  psname 
)
protected

Definition at line 539 of file G4ScoreQuantityMessenger.cc.

References G4VScoringMesh::FindPrimitiveScorer(), G4cout, G4endl, G4UIcommand::GetCommandPath(), qTouchCmd, and G4VScoringMesh::SetNullToCurrentPrimitiveScorer().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ScoreQuantityMessenger::FillTokenVec ( G4String  newValues,
G4TokenVec &  token 
)
protected

Definition at line 501 of file G4ScoreQuantityMessenger.cc.

Referenced by SetNewValue().

+ Here is the caller graph for this function:

void G4ScoreQuantityMessenger::FilterCommands ( )
private

Definition at line 98 of file G4ScoreQuantityMessenger.cc.

References DBL_MAX, G4UImessenger::DtoS(), fchargedCmd, filterDir, fkinECmd, fneutralCmd, fparticleCmd, fparticleKinECmd, G4UIparameter::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), G4UIcmdWithAString::SetParameterName(), and smax.

Referenced by G4ScoreQuantityMessenger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ScoreQuantityMessenger::FParticleCommand ( G4VScoringMesh *  mesh,
G4TokenVec &  token 
)
protected

Definition at line 511 of file G4ScoreQuantityMessenger.cc.

References G4InuclParticleNames::name(), and G4VScoringMesh::SetFilter().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ScoreQuantityMessenger::FParticleWithEnergyCommand ( G4VScoringMesh *  mesh,
G4TokenVec &  token 
)
protected

Definition at line 526 of file G4ScoreQuantityMessenger.cc.

References G4SDParticleWithEnergyFilter::add(), G4UnitDefinition::GetValueOf(), G4InuclParticleNames::name(), G4VScoringMesh::SetFilter(), and G4UImessenger::StoD().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4ScoreQuantityMessenger::GetCurrentValue ( G4UIcommand *  )
virtual

Reimplemented from G4UImessenger.

Definition at line 494 of file G4ScoreQuantityMessenger.cc.

void G4ScoreQuantityMessenger::QuantityCommands ( )
private

Definition at line 83 of file G4ScoreQuantityMessengerQCmd.cc.

References qCellChgCmd, qCellFluxCmd, qdoseDepCmd, qeDepCmd, qFlatSurfCurrCmd, qFlatSurfFluxCmd, qGetUnitCmd, qMinKinEAtGeneCmd, qNofCollisionCmd, qnOfSecondaryCmd, qnOfStepCmd, qPassCellCurrCmd, qPassCellFluxCmd, qPassTrackLengthCmd, qPopulationCmd, qSetUnitCmd, qStepCheckerCmd, qTerminationCmd, qTouchCmd, qTrackCountCmd, qTrackLengthCmd, quantityDir, G4UIparameter::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), and G4UIcmdWithAString::SetParameterName().

Referenced by G4ScoreQuantityMessenger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ScoreQuantityMessenger::SetNewValue ( G4UIcommand *  command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 215 of file G4ScoreQuantityMessenger.cc.

References boxMesh, CheckMeshPS(), cylinderMesh, G4PSFlatSurfaceCurrent::DivideByArea(), G4PSFlatSurfaceFlux::DivideByArea(), G4PSTrackLength::DivideByVelocity(), fchargedCmd, FillTokenVec(), fkinECmd, fneutralCmd, fparticleCmd, FParticleCommand(), fparticleKinECmd, FParticleWithEnergyCommand(), fSMan, G4cerr, G4cout, G4endl, G4UIcommand::GetCommandPath(), G4ScoringManager::GetCurrentMesh(), G4VScoringMesh::GetCurrentPSUnit(), G4VScoringMesh::GetNumberOfSegments(), G4VScoringMesh::GetShape(), G4VScoringMesh::GetSize(), G4UnitDefinition::GetValueOf(), G4VScoringMesh::IsCurrentPrimitiveScorerNull(), G4PSTrackLength::MultiplyKineticEnergy(), G4InuclParticleNames::name(), ps, qCellChgCmd, qCellFluxCmd, qdoseDepCmd, qeDepCmd, qFlatSurfCurrCmd, qFlatSurfFluxCmd, qGetUnitCmd, qMinKinEAtGeneCmd, qNofCollisionCmd, qnOfSecondaryCmd, qnOfStepCmd, qPassCellCurrCmd, qPassCellFluxCmd, qPassTrackLengthCmd, qPopulationCmd, qSetUnitCmd, qStepCheckerCmd, qTerminationCmd, qTouchCmd, qTrackCountCmd, qTrackLengthCmd, G4PSNofStep::SetBoundaryFlag(), G4VScoringMesh::SetCurrentPrimitiveScorer(), G4VScoringMesh::SetCurrentPSUnit(), G4PSDoseDepositForCylinder3D::SetCylinderSize(), G4PSPassageCellFluxForCylinder3D::SetCylinderSize(), G4PSCellFluxForCylinder3D::SetCylinderSize(), G4VScoringMesh::SetFilter(), G4PSDoseDepositForCylinder3D::SetNumberOfSegments(), G4PSPassageCellFluxForCylinder3D::SetNumberOfSegments(), G4PSCellFluxForCylinder3D::SetNumberOfSegments(), G4VScoringMesh::SetPrimitiveScorer(), G4PSCellCharge::SetUnit(), G4PSEnergyDeposit::SetUnit(), G4PSDoseDeposit::SetUnit(), G4PSPassageTrackLength::SetUnit(), G4PSMinKinEAtGeneration::SetUnit(), G4PSPassageCellFlux::SetUnit(), G4PSTrackLength::SetUnit(), G4PSCellFlux::SetUnit(), G4PSFlatSurfaceCurrent::SetUnit(), G4PSFlatSurfaceFlux::SetUnit(), G4UImessenger::StoB(), G4UImessenger::StoD(), G4UImessenger::StoI(), G4PSPassageCellCurrent::Weighted(), G4PSPassageTrackLength::Weighted(), G4PSTrackLength::Weighted(), G4PSTermination::Weighted(), G4PSNofCollision::Weighted(), G4PSTrackCounter::Weighted(), G4PSPopulation::Weighted(), G4PSFlatSurfaceCurrent::Weighted(), and G4PSFlatSurfaceFlux::Weighted().

Member Data Documentation

G4UIcmdWithAString* G4ScoreQuantityMessenger::fchargedCmd
private
G4UIdirectory* G4ScoreQuantityMessenger::filterDir
private

Definition at line 120 of file G4ScoreQuantityMessenger.hh.

Referenced by FilterCommands(), and ~G4ScoreQuantityMessenger().

G4UIcommand* G4ScoreQuantityMessenger::fkinECmd
private
G4UIcmdWithAString* G4ScoreQuantityMessenger::fneutralCmd
private
G4UIcommand* G4ScoreQuantityMessenger::fparticleCmd
private
G4UIcommand* G4ScoreQuantityMessenger::fparticleKinECmd
private
G4ScoringManager* G4ScoreQuantityMessenger::fSMan
private

Definition at line 85 of file G4ScoreQuantityMessenger.hh.

Referenced by SetNewValue().

G4UIcommand* G4ScoreQuantityMessenger::qCellChgCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qCellFluxCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qdoseDepCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qeDepCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qFlatSurfCurrCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qFlatSurfFluxCmd
private
G4UIcmdWithoutParameter* G4ScoreQuantityMessenger::qGetUnitCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qMinKinEAtGeneCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qNofCollisionCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qnOfSecondaryCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qnOfStepCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qPassCellCurrCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qPassCellFluxCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qPassTrackLengthCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qPopulationCmd
private
G4UIcmdWithAString* G4ScoreQuantityMessenger::qSetUnitCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qStepCheckerCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qTerminationCmd
private
G4UIcmdWithAString* G4ScoreQuantityMessenger::qTouchCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qTrackCountCmd
private
G4UIcommand* G4ScoreQuantityMessenger::qTrackLengthCmd
private
G4UIdirectory* G4ScoreQuantityMessenger::quantityDir
private

Definition at line 88 of file G4ScoreQuantityMessenger.hh.

Referenced by QuantityCommands(), and ~G4ScoreQuantityMessenger().


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