1 |
cafagna |
1.1 |
|
2 |
|
|
#ifndef SteppingAction_h
|
3 |
|
|
#define SteppingAction_h 1
|
4 |
|
|
|
5 |
|
|
#include "G4UserSteppingAction.hh"
|
6 |
|
|
#include "globals.hh"
|
7 |
|
|
|
8 |
|
|
class RunAction;
|
9 |
|
|
class DetectorConstruction;
|
10 |
|
|
|
11 |
|
|
class SteppingAction : public G4UserSteppingAction
|
12 |
|
|
{
|
13 |
|
|
public:
|
14 |
|
|
SteppingAction(DetectorConstruction* myDC , RunAction* myRU);
|
15 |
|
|
virtual ~SteppingAction();
|
16 |
|
|
|
17 |
|
|
virtual void UserSteppingAction(const G4Step*);
|
18 |
|
|
private:
|
19 |
|
|
G4bool drawFlag;
|
20 |
|
|
DetectorConstruction* myDetector;
|
21 |
|
|
RunAction* runAction;
|
22 |
|
|
// RunAction::Edep[90];
|
23 |
|
|
public:
|
24 |
|
|
inline void SetDrawFlag(G4bool val)
|
25 |
|
|
{ drawFlag = val; };
|
26 |
|
|
};
|
27 |
|
|
|
28 |
|
|
#endif
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
// 2005 by G.I.Vasilyev
|
32 |
|
|
|