Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B1EventAction.hh 75216 2013-10-29 16:08:11Z gcosmo $
|
||||
//
|
||||
/// \file B1EventAction.hh
|
||||
/// \brief Definition of the B1EventAction class
|
||||
@@ -34,15 +34,8 @@
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class B1SteppingAction;
|
||||
|
||||
/// Event action class
|
||||
///
|
||||
/// It holds data member fEnergySum and fEnergy2Sum for accumulating
|
||||
/// the event energy deposit its square event by event.
|
||||
/// These data are then used in the run action to compute the dose.
|
||||
/// The accumulated energy and enrgy square sums are reset for each
|
||||
/// new run via the Reset() function from the run action.
|
||||
|
||||
class B1EventAction : public G4UserEventAction
|
||||
{
|
||||
@@ -50,24 +43,13 @@ class B1EventAction : public G4UserEventAction
|
||||
B1EventAction();
|
||||
virtual ~B1EventAction();
|
||||
|
||||
// static access method
|
||||
static B1EventAction* Instance();
|
||||
|
||||
virtual void BeginOfEventAction(const G4Event* event);
|
||||
virtual void EndOfEventAction(const G4Event* event);
|
||||
|
||||
void Reset();
|
||||
void AddEdep(G4double edep) { fEdep += edep; }
|
||||
|
||||
// get methods
|
||||
G4double GetEnergySum() const { return fEnergySum; }
|
||||
G4double GetEnergy2Sum() const { return fEnergy2Sum; }
|
||||
|
||||
private:
|
||||
static B1EventAction* fgInstance;
|
||||
|
||||
G4int fPrintModulo;
|
||||
G4double fEnergySum;
|
||||
G4double fEnergy2Sum;
|
||||
G4double fEdep;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user