diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-08-22 01:37:19 +0100 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-08-22 01:37:19 +0100 |
| commit | e3079fb2367c26f767be41e6c313d960c517bbcd (patch) | |
| tree | 509f081184a4179894ab8370ea06425d46729e9a /include/G4BeamTestSC4SD.h | |
| parent | ba4dd395d1f163983f7102ff9a6c513cfe17912e (diff) | |
| download | G4BeamTest-e3079fb2367c26f767be41e6c313d960c517bbcd.tar.gz G4BeamTest-e3079fb2367c26f767be41e6c313d960c517bbcd.zip | |
Thu 22 Aug 01:37:19 BST 2019
Diffstat (limited to 'include/G4BeamTestSC4SD.h')
| -rw-r--r-- | include/G4BeamTestSC4SD.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/G4BeamTestSC4SD.h b/include/G4BeamTestSC4SD.h new file mode 100644 index 0000000..d27c7e0 --- /dev/null +++ b/include/G4BeamTestSC4SD.h @@ -0,0 +1,42 @@ +#ifndef G4BeamTestSC4SD_h +#define G4BeamTestSC4SD_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 G4BeamTestSC4SD : public G4VSensitiveDetector +{ +public: + G4BeamTestSC4SD(const G4String& name, const G4String& hitsCollectionName); + virtual ~G4BeamTestSC4SD(); + + // 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 + + |
