ATLAS Offline Software
Loading...
Searching...
No Matches
HGTDSensorGmxSD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6// HGTDSensorSD.h, (c) ATLAS Detector software
8
9#ifndef HGTD_G4_Gmx_SD_HGTDSENSORSD_H
10#define HGTD_G4_Gmx_SD_HGTDSENSORSD_H
11
12// Base class
13#include "G4VSensitiveDetector.hh"
14
15// use of the hits
17
18//new LAr stuff
21
22// Geant4 headers
23#include "G4ThreeVector.hh"
24
25// G4 needed classes
26class G4Step;
27class G4HCofThisEvent;
28
29namespace GeoModelIO{
30 class ReadGeoModel;
31}
32
33class HGTDSensorGmxSD : public G4VSensitiveDetector
34{
35
36public:
37
38 // Constructor
39 HGTDSensorGmxSD(const std::string& name, const std::string& hitCollectionName, GeoModelIO::ReadGeoModel * sqlreader=nullptr);
40
41 // Destructor
42 virtual ~HGTDSensorGmxSD() {}
43
44 // Process the hits from G4
45 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
46
47 // Initialize from G4
48 void Initialize(G4HCofThisEvent *) override final;
49
50private:
51
53 GeoModelIO::ReadGeoModel * m_sqlreader;
54
55};
56
57#endif // HGTD_G4_Gmx_SD_HGTDSENSORSD_H
Handle class for recording to StoreGate.
GeoModelIO::ReadGeoModel * m_sqlreader
SG::WriteHandle< SiHitCollection > m_HitColl
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
virtual ~HGTDSensorGmxSD()
HGTDSensorGmxSD(const std::string &name, const std::string &hitCollectionName, GeoModelIO::ReadGeoModel *sqlreader=nullptr)
void Initialize(G4HCofThisEvent *) override final