Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
G4VPrimitiveScorer Class Referenceabstract

#include <G4VPrimitiveScorer.hh>

Inheritance diagram for G4VPrimitiveScorer:
CexmcPrimitiveScorer G4PSCellCharge G4PSCellFlux G4PSCylinderSurfaceCurrent G4PSCylinderSurfaceFlux G4PSDoseDeposit G4PSEnergyDeposit G4PSFlatSurfaceCurrent G4PSFlatSurfaceFlux G4PSMinKinEAtGeneration G4PSNofCollision G4PSNofSecondary G4PSNofStep G4PSPassageCellCurrent G4PSPassageCellFlux G4PSPassageTrackLength G4PSPopulation G4PSSphereSurfaceCurrent G4PSSphereSurfaceFlux G4PSStepChecker G4PSTermination G4PSTrackCounter G4PSTrackLength

Public Member Functions

 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()
 
G4int GetCollectionID (G4int)
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
void SetUnit (const G4String &unit)
 
const G4StringGetUnit () const
 
G4double GetUnitValue () const
 
void SetMultiFunctionalDetector (G4MultiFunctionalDetector *d)
 
G4MultiFunctionalDetectorGetMultiFunctionalDetector () const
 
G4String GetName () const
 
void SetFilter (G4VSDFilter *f)
 
G4VSDFilterGetFilter () const
 
void SetVerboseLevel (G4int vl)
 
G4int GetVerboseLevel () const
 
void SetNijk (G4int i, G4int j, G4int k)
 

Protected Member Functions

virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)=0
 
virtual G4int GetIndex (G4Step *)
 
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 

Protected Attributes

G4String primitiveName
 
G4MultiFunctionalDetectordetector
 
G4VSDFilterfilter
 
G4int verboseLevel
 
G4int indexDepth
 
G4String unitName
 
G4double unitValue
 
G4int fNi
 
G4int fNj
 
G4int fNk
 

Friends

class G4MultiFunctionalDetector
 

Detailed Description

Definition at line 50 of file G4VPrimitiveScorer.hh.

Constructor & Destructor Documentation

G4VPrimitiveScorer::G4VPrimitiveScorer ( G4String  name,
G4int  depth = 0 
)

Definition at line 37 of file G4VPrimitiveScorer.cc.

G4VPrimitiveScorer::~G4VPrimitiveScorer ( )
virtual

Definition at line 42 of file G4VPrimitiveScorer.cc.

43 {;}

Member Function Documentation

void G4VPrimitiveScorer::CheckAndSetUnit ( const G4String unit,
const G4String category 
)
protected

Definition at line 76 of file G4VPrimitiveScorer.cc.

References G4Exception(), G4UnitDefinition::GetCategory(), GetName(), GetUnit(), G4UnitDefinition::GetValueOf(), JustWarning, unitName, and unitValue.

Referenced by G4PSCellCharge::SetUnit(), G4PSEnergyDeposit::SetUnit(), G4PSDoseDeposit::SetUnit(), G4PSPassageTrackLength::SetUnit(), G4PSMinKinEAtGeneration::SetUnit(), G4PSPassageCellFlux::SetUnit(), G4PSTrackLength::SetUnit(), G4PSCellFlux::SetUnit(), G4PSSphereSurfaceCurrent::SetUnit(), G4PSCylinderSurfaceFlux::SetUnit(), G4PSSphereSurfaceFlux::SetUnit(), G4PSCylinderSurfaceCurrent::SetUnit(), G4PSFlatSurfaceCurrent::SetUnit(), and G4PSFlatSurfaceFlux::SetUnit().

77  {
78  if ( G4UnitDefinition::GetCategory(unit) == category){
79  unitName = unit;
81  } else {
82  G4String msg = "Invalid unit ["+unit+"] (Current unit is [" +GetUnit()+"] ) requested for " + GetName();
83  G4Exception("G4VPrimitiveScorer::CheckAndSetUnit","Det0151",JustWarning,msg);
84  }
85 }
G4String GetName() const
static G4double GetValueOf(const G4String &)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4String GetCategory(const G4String &)
const G4String & GetUnit() const
void G4VPrimitiveScorer::clear ( void  )
virtual
void G4VPrimitiveScorer::DrawAll ( void  )
virtual
void G4VPrimitiveScorer::EndOfEvent ( G4HCofThisEvent )
virtual
G4int G4VPrimitiveScorer::GetCollectionID ( G4int  )

Definition at line 45 of file G4VPrimitiveScorer.cc.

References detector, G4SDManager::GetCollectionID(), G4VSensitiveDetector::GetName(), G4SDManager::GetSDMpointer(), and primitiveName.

Referenced by G4PSCellCharge::Initialize(), G4PSEnergyDeposit::Initialize(), G4PSDoseDeposit::Initialize(), G4PSNofStep::Initialize(), G4PSMinKinEAtGeneration::Initialize(), G4PSTermination::Initialize(), G4PSTrackCounter::Initialize(), G4PSNofCollision::Initialize(), G4PSPassageTrackLength::Initialize(), G4PSPopulation::Initialize(), CexmcSimpleEnergyDeposit::Initialize(), G4PSPassageCellCurrent::Initialize(), CexmcTrackPoints::Initialize(), G4PSPassageCellFlux::Initialize(), G4PSTrackLength::Initialize(), G4PSNofSecondary::Initialize(), G4PSCellFlux::Initialize(), G4PSSphereSurfaceCurrent::Initialize(), G4PSCylinderSurfaceFlux::Initialize(), G4PSCylinderSurfaceCurrent::Initialize(), G4PSSphereSurfaceFlux::Initialize(), G4PSFlatSurfaceCurrent::Initialize(), and G4PSFlatSurfaceFlux::Initialize().

46 {
47  if(detector)
50  else
51  return -1;
52 }
G4int GetCollectionID(G4String colName)
Definition: G4SDManager.cc:131
static G4SDManager * GetSDMpointer()
Definition: G4SDManager.cc:40
G4MultiFunctionalDetector * detector
G4VSDFilter* G4VPrimitiveScorer::GetFilter ( ) const
inline

Definition at line 107 of file G4VPrimitiveScorer.hh.

References filter.

Referenced by G4VScoringMesh::List(), and G4VScoringMesh::SetFilter().

108  { return filter; }
G4int G4VPrimitiveScorer::GetIndex ( G4Step aStep)
protectedvirtual

Reimplemented in CexmcTrackPoints, CexmcSimpleEnergyDeposit, G4PSFlatSurfaceFlux3D, G4PSSphereSurfaceCurrent3D, G4PSSphereSurfaceFlux3D, RE02PSFlatSurfaceFlux, G4PSCylinderSurfaceCurrent3D, G4PSCylinderSurfaceFlux3D, G4PSFlatSurfaceCurrent3D, CexmcEnergyDepositInLeftRightSet, CexmcTrackPointsInLeftRightSet, RE02PSFlatSurfaceCurrent, G4PSCellFlux3D, CexmcEnergyDepositInCalorimeter, CexmcTrackPointsInCalorimeter, RE02PSCellFlux, G4PSPassageCellFlux3D, G4PSPassageTrackLength3D, G4PSTrackLength3D, G4PSCellCharge3D, G4PSMinKinEAtGeneration3D, RE02PSPassageCellFlux, G4PSDoseDeposit3D, G4PSTrackCounter3D, G4PSEnergyDeposit3D, G4PSNofCollision3D, G4PSPassageCellCurrent3D, G4PSPopulation3D, G4PSStepChecker3D, G4PSTermination3D, G4PSNofStep3D, RE02PSNofStep, RE02PSEnergyDeposit, and G4PSNofSecondary3D.

Definition at line 69 of file G4VPrimitiveScorer.cc.

References G4Step::GetPreStepPoint(), G4TouchableHistory::GetReplicaNumber(), G4StepPoint::GetTouchable(), and indexDepth.

Referenced by G4PSNofStep::ProcessHits(), G4PSStepChecker::ProcessHits(), G4PSTrackCounter::ProcessHits(), G4PSDoseDeposit::ProcessHits(), G4PSNofCollision::ProcessHits(), G4PSTermination::ProcessHits(), G4PSCellCharge::ProcessHits(), G4PSEnergyDeposit::ProcessHits(), G4PSPopulation::ProcessHits(), G4PSMinKinEAtGeneration::ProcessHits(), G4PSPassageCellCurrent::ProcessHits(), G4PSPassageTrackLength::ProcessHits(), G4PSPassageCellFlux::ProcessHits(), G4PSNofSecondary::ProcessHits(), G4PSTrackLength::ProcessHits(), G4PSCellFlux::ProcessHits(), G4PSSphereSurfaceCurrent::ProcessHits(), G4PSCylinderSurfaceFlux::ProcessHits(), G4PSFlatSurfaceCurrent::ProcessHits(), G4PSSphereSurfaceFlux::ProcessHits(), G4PSCylinderSurfaceCurrent::ProcessHits(), and G4PSFlatSurfaceFlux::ProcessHits().

70 {
71  G4StepPoint* preStep = aStep->GetPreStepPoint();
73  return th->GetReplicaNumber(indexDepth);
74 }
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
G4int GetReplicaNumber(G4int depth=0) const
G4MultiFunctionalDetector* G4VPrimitiveScorer::GetMultiFunctionalDetector ( ) const
inline
G4String G4VPrimitiveScorer::GetName ( void  ) const
inline

Definition at line 103 of file G4VPrimitiveScorer.hh.

References primitiveName.

Referenced by B01Run::B01Run(), B02Run::B02Run(), B03Run::B03Run(), CexmcSensitiveDetectorMessenger::CexmcSensitiveDetectorMessenger(), CheckAndSetUnit(), DicomRun::ConstructMFD(), G4VScoringMesh::GetPrimitiveScorer(), G4PSCellCharge::Initialize(), G4PSEnergyDeposit::Initialize(), G4PSDoseDeposit::Initialize(), G4PSNofStep::Initialize(), G4PSTermination::Initialize(), G4PSTrackCounter::Initialize(), G4PSMinKinEAtGeneration::Initialize(), G4PSNofCollision::Initialize(), G4PSPassageTrackLength::Initialize(), G4PSPassageCellCurrent::Initialize(), G4PSPopulation::Initialize(), G4PSPassageCellFlux::Initialize(), G4PSTrackLength::Initialize(), G4PSNofSecondary::Initialize(), G4PSCellFlux::Initialize(), G4PSSphereSurfaceCurrent::Initialize(), G4PSCylinderSurfaceFlux::Initialize(), G4PSFlatSurfaceCurrent::Initialize(), G4PSCylinderSurfaceCurrent::Initialize(), G4PSSphereSurfaceFlux::Initialize(), G4PSFlatSurfaceFlux::Initialize(), G4VScoringMesh::List(), G4PSCellCharge::PrintAll(), G4PSEnergyDeposit::PrintAll(), G4PSDoseDeposit::PrintAll(), G4PSNofStep::PrintAll(), G4PSPassageTrackLength::PrintAll(), G4PSNofCollision::PrintAll(), G4PSTrackCounter::PrintAll(), G4PSTermination::PrintAll(), G4PSMinKinEAtGeneration::PrintAll(), G4PSPassageCellCurrent::PrintAll(), G4PSPopulation::PrintAll(), G4PSPassageCellFlux::PrintAll(), G4PSTrackLength::PrintAll(), G4PSNofSecondary::PrintAll(), G4PSCellFlux::PrintAll(), G4PSSphereSurfaceCurrent::PrintAll(), G4PSCylinderSurfaceFlux::PrintAll(), G4PSSphereSurfaceFlux::PrintAll(), G4PSCylinderSurfaceCurrent::PrintAll(), G4PSFlatSurfaceCurrent::PrintAll(), G4PSFlatSurfaceFlux::PrintAll(), RE02Run::RE02Run(), G4MultiFunctionalDetector::RegisterPrimitive(), G4MultiFunctionalDetector::RemovePrimitive(), G4VScoringMesh::SetFilter(), G4VScoringMesh::SetPrimitiveScorer(), G4PSNofStep::SetUnit(), G4PSTermination::SetUnit(), G4PSTrackCounter::SetUnit(), G4PSNofCollision::SetUnit(), G4PSPassageCellCurrent::SetUnit(), G4PSPopulation::SetUnit(), G4PSNofSecondary::SetUnit(), G4PSSphereSurfaceCurrent::SetUnit(), G4PSCylinderSurfaceFlux::SetUnit(), G4PSCylinderSurfaceCurrent::SetUnit(), G4PSSphereSurfaceFlux::SetUnit(), G4PSFlatSurfaceCurrent::SetUnit(), and G4PSFlatSurfaceFlux::SetUnit().

104  { return primitiveName; }
const G4String& G4VPrimitiveScorer::GetUnit ( ) const
inline
G4double G4VPrimitiveScorer::GetUnitValue ( ) const
inline
G4int G4VPrimitiveScorer::GetVerboseLevel ( ) const
inline

Definition at line 111 of file G4VPrimitiveScorer.hh.

References verboseLevel.

Referenced by CexmcSimpleEnergyDeposit::EndOfEvent(), and CexmcTrackPoints::EndOfEvent().

112  { return verboseLevel; }
void G4VPrimitiveScorer::Initialize ( G4HCofThisEvent )
virtual
void G4VPrimitiveScorer::PrintAll ( void  )
virtual
virtual G4bool G4VPrimitiveScorer::ProcessHits ( G4Step ,
G4TouchableHistory  
)
protectedpure virtual
void G4VPrimitiveScorer::SetFilter ( G4VSDFilter f)
inline
void G4VPrimitiveScorer::SetMultiFunctionalDetector ( G4MultiFunctionalDetector d)
inline

Definition at line 99 of file G4VPrimitiveScorer.hh.

References detector.

Referenced by G4MultiFunctionalDetector::RegisterPrimitive(), and G4MultiFunctionalDetector::RemovePrimitive().

100  { detector = d; }
G4MultiFunctionalDetector * detector
void G4VPrimitiveScorer::SetNijk ( G4int  i,
G4int  j,
G4int  k 
)
inline

Definition at line 125 of file G4VPrimitiveScorer.hh.

References fNi, fNj, and fNk.

Referenced by G4VScoringMesh::SetPrimitiveScorer().

void G4VPrimitiveScorer::SetUnit ( const G4String unit)
inline

Definition at line 81 of file G4VPrimitiveScorer.hh.

References unitName.

Referenced by G4VScoringMesh::SetCurrentPSUnit().

81 { unitName = unit; }
void G4VPrimitiveScorer::SetVerboseLevel ( G4int  vl)
inline

Definition at line 109 of file G4VPrimitiveScorer.hh.

References verboseLevel.

Referenced by CexmcSensitiveDetectorMessenger::SetNewValue().

110  { verboseLevel = vl; }

Friends And Related Function Documentation

friend class G4MultiFunctionalDetector
friend

Definition at line 52 of file G4VPrimitiveScorer.hh.

Field Documentation

G4MultiFunctionalDetector* G4VPrimitiveScorer::detector
protected
G4VSDFilter* G4VPrimitiveScorer::filter
protected

Definition at line 91 of file G4VPrimitiveScorer.hh.

Referenced by GetFilter(), and SetFilter().

G4int G4VPrimitiveScorer::fNi
protected
G4int G4VPrimitiveScorer::fNj
protected

Definition at line 123 of file G4VPrimitiveScorer.hh.

Referenced by G4PSCellCharge3D::G4PSCellCharge3D(), G4PSCellFlux3D::G4PSCellFlux3D(), G4PSCylinderSurfaceCurrent3D::G4PSCylinderSurfaceCurrent3D(), G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D(), G4PSDoseDeposit3D::G4PSDoseDeposit3D(), G4PSEnergyDeposit3D::G4PSEnergyDeposit3D(), G4PSFlatSurfaceCurrent3D::G4PSFlatSurfaceCurrent3D(), G4PSFlatSurfaceFlux3D::G4PSFlatSurfaceFlux3D(), G4PSMinKinEAtGeneration3D::G4PSMinKinEAtGeneration3D(), G4PSNofCollision3D::G4PSNofCollision3D(), G4PSNofSecondary3D::G4PSNofSecondary3D(), G4PSNofStep3D::G4PSNofStep3D(), G4PSPassageCellCurrent3D::G4PSPassageCellCurrent3D(), G4PSPassageCellFlux3D::G4PSPassageCellFlux3D(), G4PSPassageTrackLength3D::G4PSPassageTrackLength3D(), G4PSPopulation3D::G4PSPopulation3D(), G4PSSphereSurfaceCurrent3D::G4PSSphereSurfaceCurrent3D(), G4PSSphereSurfaceFlux3D::G4PSSphereSurfaceFlux3D(), G4PSStepChecker3D::G4PSStepChecker3D(), G4PSTermination3D::G4PSTermination3D(), G4PSTrackCounter3D::G4PSTrackCounter3D(), G4PSTrackLength3D::G4PSTrackLength3D(), G4PSNofSecondary3D::GetIndex(), G4PSNofStep3D::GetIndex(), G4PSTermination3D::GetIndex(), G4PSPopulation3D::GetIndex(), G4PSStepChecker3D::GetIndex(), G4PSEnergyDeposit3D::GetIndex(), G4PSNofCollision3D::GetIndex(), G4PSPassageCellCurrent3D::GetIndex(), G4PSTrackCounter3D::GetIndex(), G4PSDoseDeposit3D::GetIndex(), G4PSMinKinEAtGeneration3D::GetIndex(), G4PSCellCharge3D::GetIndex(), G4PSTrackLength3D::GetIndex(), G4PSPassageTrackLength3D::GetIndex(), G4PSPassageCellFlux3D::GetIndex(), G4PSCellFlux3D::GetIndex(), G4PSFlatSurfaceCurrent3D::GetIndex(), G4PSCylinderSurfaceFlux3D::GetIndex(), G4PSCylinderSurfaceCurrent3D::GetIndex(), G4PSSphereSurfaceCurrent3D::GetIndex(), G4PSFlatSurfaceFlux3D::GetIndex(), G4PSSphereSurfaceFlux3D::GetIndex(), and SetNijk().

G4int G4VPrimitiveScorer::fNk
protected

Definition at line 123 of file G4VPrimitiveScorer.hh.

Referenced by G4PSCellCharge3D::G4PSCellCharge3D(), G4PSCellFlux3D::G4PSCellFlux3D(), G4PSCylinderSurfaceCurrent3D::G4PSCylinderSurfaceCurrent3D(), G4PSCylinderSurfaceFlux3D::G4PSCylinderSurfaceFlux3D(), G4PSDoseDeposit3D::G4PSDoseDeposit3D(), G4PSEnergyDeposit3D::G4PSEnergyDeposit3D(), G4PSFlatSurfaceCurrent3D::G4PSFlatSurfaceCurrent3D(), G4PSFlatSurfaceFlux3D::G4PSFlatSurfaceFlux3D(), G4PSMinKinEAtGeneration3D::G4PSMinKinEAtGeneration3D(), G4PSNofCollision3D::G4PSNofCollision3D(), G4PSNofSecondary3D::G4PSNofSecondary3D(), G4PSNofStep3D::G4PSNofStep3D(), G4PSPassageCellCurrent3D::G4PSPassageCellCurrent3D(), G4PSPassageCellFlux3D::G4PSPassageCellFlux3D(), G4PSPassageTrackLength3D::G4PSPassageTrackLength3D(), G4PSPopulation3D::G4PSPopulation3D(), G4PSSphereSurfaceCurrent3D::G4PSSphereSurfaceCurrent3D(), G4PSSphereSurfaceFlux3D::G4PSSphereSurfaceFlux3D(), G4PSStepChecker3D::G4PSStepChecker3D(), G4PSTermination3D::G4PSTermination3D(), G4PSTrackCounter3D::G4PSTrackCounter3D(), G4PSTrackLength3D::G4PSTrackLength3D(), G4PSNofSecondary3D::GetIndex(), G4PSNofStep3D::GetIndex(), G4PSTermination3D::GetIndex(), G4PSPopulation3D::GetIndex(), G4PSStepChecker3D::GetIndex(), G4PSEnergyDeposit3D::GetIndex(), G4PSNofCollision3D::GetIndex(), G4PSPassageCellCurrent3D::GetIndex(), G4PSTrackCounter3D::GetIndex(), G4PSDoseDeposit3D::GetIndex(), G4PSMinKinEAtGeneration3D::GetIndex(), G4PSCellCharge3D::GetIndex(), G4PSTrackLength3D::GetIndex(), G4PSPassageTrackLength3D::GetIndex(), G4PSPassageCellFlux3D::GetIndex(), G4PSCellFlux3D::GetIndex(), G4PSFlatSurfaceCurrent3D::GetIndex(), G4PSCylinderSurfaceFlux3D::GetIndex(), G4PSCylinderSurfaceCurrent3D::GetIndex(), G4PSSphereSurfaceCurrent3D::GetIndex(), G4PSFlatSurfaceFlux3D::GetIndex(), G4PSSphereSurfaceFlux3D::GetIndex(), and SetNijk().

G4int G4VPrimitiveScorer::indexDepth
protected
G4String G4VPrimitiveScorer::primitiveName
protected
G4String G4VPrimitiveScorer::unitName
protected
G4double G4VPrimitiveScorer::unitValue
protected
G4int G4VPrimitiveScorer::verboseLevel
protected

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