aboutsummaryrefslogtreecommitdiffstats
path: root/include/G4BeamTestUserStackingAction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/G4BeamTestUserStackingAction.h')
-rw-r--r--include/G4BeamTestUserStackingAction.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/G4BeamTestUserStackingAction.h b/include/G4BeamTestUserStackingAction.h
new file mode 100644
index 0000000..556f3d1
--- /dev/null
+++ b/include/G4BeamTestUserStackingAction.h
@@ -0,0 +1,28 @@
+#ifndef G4BeamTestUserStackingAction_H
+#define G4BeamTestUserStackingAction_H 1
+
+#include "globals.hh"
+#include "G4UserStackingAction.hh"
+
+//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+
+class G4BeamTestUserStackingAction : public G4UserStackingAction
+{
+ public:
+ G4BeamTestUserStackingAction();
+ virtual ~G4BeamTestUserStackingAction();
+
+ public:
+ virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
+ virtual void NewStage();
+ virtual void PrepareNewEvent();
+
+ private:
+ G4int fScintillationCounter;
+ G4int fCerenkovCounter;
+};
+
+//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+
+#endif
+