Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 51 of file G4CellScoreComposer.hh.

Constructor & Destructor Documentation

G4CellScoreComposer::G4CellScoreComposer ( )

Definition at line 39 of file G4CellScoreComposer.cc.

39  :
40  fSCScoreValues()
41 {}
G4CellScoreComposer::~G4CellScoreComposer ( )

Definition at line 43 of file G4CellScoreComposer.cc.

44 {}

Member Function Documentation

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 }
G4double GetWeight() const
const char * p
Definition: xmltok.h:285
G4double GetVelocity() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4double GetKineticEnergy() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

const G4CellScoreValues & G4CellScoreComposer::GetStandardCellScoreValues ( ) const

Definition at line 82 of file G4CellScoreComposer.cc.

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

Here is the caller graph for this function:

void G4CellScoreComposer::NewTrackPopedUp ( )

Definition at line 71 of file G4CellScoreComposer.cc.

71  {
72  fSCScoreValues.fSumPopulation++;
73 }
void G4CellScoreComposer::SetCollisionWeight ( G4double  weight)

Definition at line 75 of file G4CellScoreComposer.cc.

75  {
76  fSCScoreValues.fSumCollisions++;
77  fSCScoreValues.fSumCollisionsWeight+=weight;
78 }
void G4CellScoreComposer::SetImportnace ( G4double  importance)

Definition at line 97 of file G4CellScoreComposer.cc.

97  {
98  fSCScoreValues.fImportance = importance;
99 }
void G4CellScoreComposer::TrackEnters ( )

Definition at line 68 of file G4CellScoreComposer.cc.

68  {
69  fSCScoreValues.fSumTracksEntering++;
70 }

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