aboutsummaryrefslogtreecommitdiffstats
path: root/include/G4BeamTestSiSD.h
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2018-11-20 17:26:02 +0000
committershivesh <s.p.mandalia@qmul.ac.uk>2018-11-20 17:26:02 +0000
commitd0533d03d0c85f2f993f1793a6b9ea2af3391207 (patch)
tree682c2fefe2d113319f21c07bded00fed5245e19b /include/G4BeamTestSiSD.h
parent738c2f88939a041fbc8b6b9cfa3c547b86bc6e42 (diff)
downloadG4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.tar.gz
G4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.zip
Tue 20 Nov 17:26:02 GMT 2018
Diffstat (limited to 'include/G4BeamTestSiSD.h')
-rw-r--r--include/G4BeamTestSiSD.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/G4BeamTestSiSD.h b/include/G4BeamTestSiSD.h
new file mode 100644
index 0000000..20992c0
--- /dev/null
+++ b/include/G4BeamTestSiSD.h
@@ -0,0 +1,42 @@
+#ifndef G4BeamTestSiSD_h
+#define G4BeamTestSiSD_h 1
+
+#include "G4VSensitiveDetector.hh"
+
+#include "G4BeamTestSiHit.h"
+
+#include <vector>
+
+class G4Step;
+class G4HCofThisEvent;
+
+//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+
+/// B2Tracker sensitive detector class
+///
+/// The hits are accounted in hits in ProcessHits() function which is called
+/// by Geant4 kernel at each step. A hit is created with each step with non zero
+/// energy deposit.
+
+class G4BeamTestSiSD : public G4VSensitiveDetector
+{
+public:
+ G4BeamTestSiSD(const G4String& name,
+ const G4String& hitsCollectionName);
+ virtual ~G4BeamTestSiSD();
+
+ // methods from base class
+ virtual void Initialize(G4HCofThisEvent* hitCollection);
+ virtual G4bool ProcessHits(G4Step* step, G4TouchableHistory* history);
+ virtual void EndOfEvent(G4HCofThisEvent* hitCollection);
+
+
+private:
+ G4BeamTestSiHitsCollection* fHitsCollection;
+
+};
+
+//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+
+#endif
+