G4CellScorer.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // ----------------------------------------------------------------------
00030 // Class G4CellScorer
00031 //
00032 // Class description:
00033 //
00034 // This class does standard scoring for a cell. The cell may be a 
00035 // physical volume or replica in the mass or a parallel geometry.
00036 // One object of this class per cell is used.
00037 // See intercoms/include/G4VCellScorer.hh
00038 // 
00039 
00040 // Author: Michael Dressel (Michael.Dressel@cern.ch)
00041 // ----------------------------------------------------------------------
00042 
00043 #ifndef G4CellScorer_hh
00044 #define G4CellScorer_hh G4CellScorer_hh
00045 
00046 #include "G4VCellScorer.hh"
00047 #include "G4TrackLogger.hh"
00048 #include "G4CellScoreComposer.hh"
00049 #include "G4CellScoreValues.hh"
00050 
00051 class G4CellScorer : public G4VCellScorer {
00052 public:  // with description
00053 
00054   G4CellScorer();
00055 
00056   virtual ~G4CellScorer();
00057 
00058   virtual void ScoreAnExitingStep(const G4Step &aStep, 
00059                                   const G4GeometryCell &gCell);
00060    // to update scores related with the exiting of a cell 
00061 
00062   virtual void ScoreAnEnteringStep(const G4Step &aStep, 
00063                                    const G4GeometryCell &gCell);
00064     //  to update scores related with the entering of a cell
00065 
00066   virtual void ScoreAnInVolumeStep(const G4Step &aStep, 
00067                                    const G4GeometryCell &gCell);
00068     // to update scores related with the stepping inside the cell
00069 
00070   const G4CellScoreComposer &GetCellScoreComposer() const;
00071     // return the G4CellScoreComposer 
00072 
00073   const G4CellScoreValues &GetCellScoreValues() const;
00074     // return scores in G4CellScoreValues
00075 
00076 private:
00077   void ScorePopulation(const G4GeometryCell &post_gCell, 
00078                        const G4Step &aStep);
00079   G4CellScoreComposer fCellScoreComposer;
00080   G4TrackLogger fTrackLogger;
00081 };
00082 
00083 
00084 
00085 #endif

Generated on Mon May 27 17:47:51 2013 for Geant4 by  doxygen 1.4.7