aboutsummaryrefslogtreecommitdiffstats
path: root/include/G4BeamTestUserSteppingAction.h
blob: c4cc863eee5873493e1b6e772538d7217aba710d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef G4BEAMTESTUSERSTEPPINGACTION_H_INCLUDED
#define G4BEAMTESTUSERSTEPPINGACTION_H_INCLUDED
#include "G4UserSteppingAction.hh"
#include "globals.hh"

/**
 * Implementation of G4UserSteppingAction. This class kills gammas below threshold (set by G4BeamTestTank).
 */
class G4BeamTestUserSteppingAction : public G4UserSteppingAction {

  public:
    G4BeamTestUserSteppingAction();
   ~G4BeamTestUserSteppingAction() {}

    void UserSteppingAction(const G4Step*);

  private:
    G4int fScintillationCounter;
    G4int fCerenkovCounter;
    G4int fEventNumber;
};

#endif  // G4BEAMTESTUSERSTEPPINGACTION_H_INCLUDED