Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CellScoreComposer Class Reference

#include <G4CellScoreComposer.hh>

Public Member Functions

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

Detailed Description

Definition at line 50 of file G4CellScoreComposer.hh.

Constructor & Destructor Documentation

◆ G4CellScoreComposer()

G4CellScoreComposer::G4CellScoreComposer ( )

Definition at line 38 of file G4CellScoreComposer.cc.

39 : fSCScoreValues()
40{}

◆ ~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
62 fSCScoreValues.fSumSL += sl;
63 fSCScoreValues.fSumSLW += slw;
64 fSCScoreValues.fSumSLW_v += slw / v;
65 fSCScoreValues.fSumSLWE += slwe;
66 fSCScoreValues.fSumSLWE_v += slwe / v;
67}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:59
double G4double
Definition: G4Types.hh:83
G4double GetVelocity() const
G4double GetKineticEnergy() const
G4double GetWeight() const

◆ GetStandardCellScoreValues()

const G4CellScoreValues & G4CellScoreComposer::GetStandardCellScoreValues ( ) const

Definition at line 77 of file G4CellScoreComposer.cc.

78{
79 if(fSCScoreValues.fSumSLW > 0.)
80 {
81 // divide by SumSLW or SumSLW_v ?
82 fSCScoreValues.fNumberWeightedEnergy =
83 fSCScoreValues.fSumSLWE_v / fSCScoreValues.fSumSLW_v;
84
85 fSCScoreValues.fFluxWeightedEnergy =
86 fSCScoreValues.fSumSLWE / fSCScoreValues.fSumSLW;
87
88 fSCScoreValues.fAverageTrackWeight =
89 fSCScoreValues.fSumSLW / fSCScoreValues.fSumSL;
90 }
91 return fSCScoreValues;
92}
G4double fNumberWeightedEnergy

Referenced by operator<<().

◆ NewTrackPopedUp()

void G4CellScoreComposer::NewTrackPopedUp ( )

Definition at line 69 of file G4CellScoreComposer.cc.

69{ fSCScoreValues.fSumPopulation++; }

◆ SetCollisionWeight()

void G4CellScoreComposer::SetCollisionWeight ( G4double  weight)

Definition at line 71 of file G4CellScoreComposer.cc.

72{
73 fSCScoreValues.fSumCollisions++;
74 fSCScoreValues.fSumCollisionsWeight += weight;
75}

◆ SetImportnace()

void G4CellScoreComposer::SetImportnace ( G4double  importance)

Definition at line 94 of file G4CellScoreComposer.cc.

95{
96 fSCScoreValues.fImportance = importance;
97}

◆ TrackEnters()

void G4CellScoreComposer::TrackEnters ( )

Definition at line 68 of file G4CellScoreComposer.cc.

68{ fSCScoreValues.fSumTracksEntering++; }

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