Geant4-11
Public Member Functions | Private Attributes
G4CellScoreComposer Class Reference

#include <G4CellScoreComposer.hh>

Public Member Functions

void EstimatorCalculation (const G4Step &step)
 
 G4CellScoreComposer ()
 
const G4CellScoreValuesGetStandardCellScoreValues () const
 
void NewTrackPopedUp ()
 
void SetCollisionWeight (G4double weight)
 
void SetImportnace (G4double importance)
 
void TrackEnters ()
 
 ~G4CellScoreComposer ()
 

Private Attributes

G4CellScoreValues fSCScoreValues
 

Detailed Description

Definition at line 50 of file G4CellScoreComposer.hh.

Constructor & Destructor Documentation

◆ G4CellScoreComposer()

G4CellScoreComposer::G4CellScoreComposer ( )

Definition at line 38 of file G4CellScoreComposer.cc.

40{}
G4CellScoreValues fSCScoreValues

◆ ~G4CellScoreComposer()

G4CellScoreComposer::~G4CellScoreComposer ( )

Definition at line 42 of file G4CellScoreComposer.cc.

42{}

Member Function Documentation

◆ EstimatorCalculation()

void G4CellScoreComposer::EstimatorCalculation ( const G4Step step)

Definition at line 44 of file G4CellScoreComposer.cc.

45{
46 G4StepPoint* p = aStep.GetPreStepPoint();
47 if(!p)
48 {
49 G4Exception("G4CellScoreComposer::EstimatorCalculation", "Det0191",
50 FatalException, " no pointer to pre PreStepPoint!");
51 }
52 G4double sl = aStep.GetStepLength();
53 G4double slw = sl * p->GetWeight();
54 G4double slwe = slw * p->GetKineticEnergy();
55
56 G4double v = p->GetVelocity();
57 if(!(v > 0.))
58 {
59 v = 10e-9;
60 }
61
64 fSCScoreValues.fSumSLW_v += slw / v;
66 fSCScoreValues.fSumSLWE_v += slwe / v;
67}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
double G4double
Definition: G4Types.hh:83
G4double GetVelocity() const
G4double GetKineticEnergy() const
G4double GetWeight() const

References FatalException, fSCScoreValues, G4CellScoreValues::fSumSL, G4CellScoreValues::fSumSLW, G4CellScoreValues::fSumSLW_v, G4CellScoreValues::fSumSLWE, G4CellScoreValues::fSumSLWE_v, G4Exception(), G4StepPoint::GetKineticEnergy(), G4Step::GetPreStepPoint(), G4Step::GetStepLength(), G4StepPoint::GetVelocity(), and G4StepPoint::GetWeight().

◆ GetStandardCellScoreValues()

const G4CellScoreValues & G4CellScoreComposer::GetStandardCellScoreValues ( ) const

◆ NewTrackPopedUp()

void G4CellScoreComposer::NewTrackPopedUp ( )

◆ SetCollisionWeight()

void G4CellScoreComposer::SetCollisionWeight ( G4double  weight)

◆ SetImportnace()

void G4CellScoreComposer::SetImportnace ( G4double  importance)

Definition at line 94 of file G4CellScoreComposer.cc.

95{
96 fSCScoreValues.fImportance = importance;
97}

References G4CellScoreValues::fImportance, and fSCScoreValues.

◆ TrackEnters()

void G4CellScoreComposer::TrackEnters ( )

Field Documentation

◆ fSCScoreValues

G4CellScoreValues G4CellScoreComposer::fSCScoreValues
mutableprivate

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