Geant4  10.02.p03
G4CellScoreComposer Class Reference

#include <G4CellScoreComposer.hh>

Collaboration diagram for G4CellScoreComposer:

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
 

Private Attributes

G4CellScoreValues fSCScoreValues
 

Detailed Description

Definition at line 51 of file G4CellScoreComposer.hh.

Constructor & Destructor Documentation

◆ G4CellScoreComposer()

G4CellScoreComposer::G4CellScoreComposer ( )

Definition at line 39 of file G4CellScoreComposer.cc.

39  :
41 {}
G4CellScoreValues fSCScoreValues

◆ ~G4CellScoreComposer()

G4CellScoreComposer::~G4CellScoreComposer ( )

Definition at line 43 of file G4CellScoreComposer.cc.

44 {}

Member Function Documentation

◆ EstimatorCalculation()

void G4CellScoreComposer::EstimatorCalculation ( const G4Step &  step)

Definition at line 46 of file G4CellScoreComposer.cc.

46  {
47 
48  G4StepPoint *p = aStep.GetPreStepPoint();
49  if (!p) {
50  G4Exception("G4CellScoreComposer::EstimatorCalculation","Det0191",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  v = 10e-9;
59  }
60 
61  fSCScoreValues.fSumSL += sl;
62  fSCScoreValues.fSumSLW += slw;
63  fSCScoreValues.fSumSLW_v += slw / v;
64  fSCScoreValues.fSumSLWE += slwe;
65  fSCScoreValues.fSumSLWE_v += slwe / v;
66 
67 }
G4CellScoreValues fSCScoreValues
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

◆ GetStandardCellScoreValues()

const G4CellScoreValues & G4CellScoreComposer::GetStandardCellScoreValues ( ) const

Definition at line 82 of file G4CellScoreComposer.cc.

Here is the caller graph for this function:

◆ NewTrackPopedUp()

void G4CellScoreComposer::NewTrackPopedUp ( )

Definition at line 71 of file G4CellScoreComposer.cc.

71  {
73 }
G4CellScoreValues fSCScoreValues

◆ SetCollisionWeight()

void G4CellScoreComposer::SetCollisionWeight ( G4double  weight)

Definition at line 75 of file G4CellScoreComposer.cc.

75  {
78 }
G4CellScoreValues fSCScoreValues
double weight
Definition: plottest35.C:25
Here is the call graph for this function:

◆ SetImportnace()

void G4CellScoreComposer::SetImportnace ( G4double  importance)

Definition at line 97 of file G4CellScoreComposer.cc.

97  {
98  fSCScoreValues.fImportance = importance;
99 }
G4CellScoreValues fSCScoreValues

◆ TrackEnters()

void G4CellScoreComposer::TrackEnters ( )

Definition at line 68 of file G4CellScoreComposer.cc.

68  {
70 }
G4CellScoreValues fSCScoreValues

Member Data Documentation

◆ fSCScoreValues

G4CellScoreValues G4CellScoreComposer::fSCScoreValues
mutableprivate

Definition at line 79 of file G4CellScoreComposer.hh.


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