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: B1SteppingAction.hh 74483 2013-10-09 13:37:06Z gcosmo $
|
||||
//
|
||||
/// \file B1SteppingAction.hh
|
||||
/// \brief Definition of the B1SteppingAction class
|
||||
@@ -34,43 +34,25 @@
|
||||
#include "G4UserSteppingAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class B1EventAction;
|
||||
|
||||
class G4LogicalVolume;
|
||||
|
||||
/// Stepping action class
|
||||
///
|
||||
/// It holds data member fEnergy for accumulating the energy deposit
|
||||
/// in a selected volume step by step.
|
||||
/// The selected volume is set from the detector construction via the
|
||||
/// SetVolume() function. The accumulated energy deposit is reset for each
|
||||
/// new event via the Reset() function from the event action.
|
||||
|
||||
class B1SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
B1SteppingAction();
|
||||
B1SteppingAction(B1EventAction* eventAction);
|
||||
virtual ~B1SteppingAction();
|
||||
|
||||
// static access method
|
||||
static B1SteppingAction* Instance();
|
||||
|
||||
// method from the base class
|
||||
virtual void UserSteppingAction(const G4Step*);
|
||||
|
||||
// reset accumulated energy
|
||||
void Reset();
|
||||
|
||||
// set methods
|
||||
void SetVolume(G4LogicalVolume* volume) { fVolume = volume; }
|
||||
|
||||
// get methods
|
||||
G4LogicalVolume* GetVolume() const { return fVolume; }
|
||||
G4double GetEnergy() const { return fEnergy; }
|
||||
|
||||
private:
|
||||
static B1SteppingAction* fgInstance;
|
||||
|
||||
G4LogicalVolume* fVolume;
|
||||
G4double fEnergy;
|
||||
B1EventAction* fEventAction;
|
||||
G4LogicalVolume* fScoringVolume;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user