G4CellScorer Class Reference

#include <G4CellScorer.hh>

Inheritance diagram for G4CellScorer:

G4VCellScorer

Public Member Functions

 G4CellScorer ()
virtual ~G4CellScorer ()
virtual void ScoreAnExitingStep (const G4Step &aStep, const G4GeometryCell &gCell)
virtual void ScoreAnEnteringStep (const G4Step &aStep, const G4GeometryCell &gCell)
virtual void ScoreAnInVolumeStep (const G4Step &aStep, const G4GeometryCell &gCell)
const G4CellScoreComposerGetCellScoreComposer () const
const G4CellScoreValuesGetCellScoreValues () const

Detailed Description

Definition at line 51 of file G4CellScorer.hh.


Constructor & Destructor Documentation

G4CellScorer::G4CellScorer (  ) 

Definition at line 42 of file G4CellScorer.cc.

References G4cout, and G4endl.

00043 {
00044   G4cout << "--------------------------------------------------------" << G4endl
00045          << "WARNING: Class  <G4CellScorer>  is  now obsolete |" << G4endl
00046          << "         and will be removed starting from next Geant4 |" << G4endl
00047          << "         major release.  Please, consider switching to |" << G4endl
00048          << "         general purpose scoring functionality.        |" << G4endl
00049          << "--------------------------------------------------------"
00050          << G4endl;
00051 }

G4CellScorer::~G4CellScorer (  )  [virtual]

Definition at line 53 of file G4CellScorer.cc.

00054 {}


Member Function Documentation

const G4CellScoreComposer & G4CellScorer::GetCellScoreComposer (  )  const

Definition at line 96 of file G4CellScorer.cc.

00096                                                                     {
00097   return fCellScoreComposer;
00098 }

const G4CellScoreValues & G4CellScorer::GetCellScoreValues (  )  const

Definition at line 100 of file G4CellScorer.cc.

References G4CellScoreComposer::GetStandardCellScoreValues().

00100                                                                 {
00101   return fCellScoreComposer.GetStandardCellScoreValues();
00102 }

void G4CellScorer::ScoreAnEnteringStep ( const G4Step aStep,
const G4GeometryCell gCell 
) [virtual]

Implements G4VCellScorer.

Definition at line 62 of file G4CellScorer.cc.

References G4CellScoreComposer::TrackEnters().

00063                                                                         {
00064   // population counting
00065   ScorePopulation(post_gCell, aStep);
00066   // entering tracks
00067   fCellScoreComposer.TrackEnters();
00068 }

void G4CellScorer::ScoreAnExitingStep ( const G4Step aStep,
const G4GeometryCell gCell 
) [virtual]

Implements G4VCellScorer.

Definition at line 56 of file G4CellScorer.cc.

References G4CellScoreComposer::EstimatorCalculation().

00057                                                                       {
00058   fCellScoreComposer.EstimatorCalculation(aStep);
00059   ScorePopulation(pre_gCell, aStep);
00060 }

void G4CellScorer::ScoreAnInVolumeStep ( const G4Step aStep,
const G4GeometryCell gCell 
) [virtual]

Implements G4VCellScorer.

Definition at line 70 of file G4CellScorer.cc.

References G4CellScoreComposer::EstimatorCalculation(), fGeomBoundary, G4Step::GetPostStepPoint(), G4StepPoint::GetStepStatus(), G4Step::GetTrack(), G4Track::GetWeight(), and G4CellScoreComposer::SetCollisionWeight().

00071                                                                         {
00072   // population counting
00073   ScorePopulation(post_gCell, aStep);
00074   // collisions counting
00075   if (aStep.GetPostStepPoint()->GetStepStatus() != fGeomBoundary) {
00076     fCellScoreComposer.SetCollisionWeight(aStep.GetTrack()->GetWeight());
00077   }
00078 
00079   // counting for step length estimators
00080   fCellScoreComposer.EstimatorCalculation(aStep);
00081 
00082 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:37 2013 for Geant4 by  doxygen 1.4.7