ATLAS Offline Software
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
16 #include "StoreGate/WriteHandle.h"
17 
18 //new LAr stuff
21 
22 // Geant4 headers
23 #include "G4ThreeVector.hh"
24 
25 // G4 needed classes
26 class G4Step;
27 class G4HCofThisEvent;
28 
29 namespace GeoModelIO{
30  class ReadGeoModel;
31 }
32 
33 class HGTDSensorGmxSD : public G4VSensitiveDetector
34 {
35 
36 public:
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 
50 private:
51 
53  GeoModelIO::ReadGeoModel * m_sqlreader;
54 
55 };
56 
57 #endif // HGTD_G4_Gmx_SD_HGTDSENSORSD_H
HGTDSensorGmxSD::m_sqlreader
GeoModelIO::ReadGeoModel * m_sqlreader
Definition: HGTDSensorGmxSD.h:53
HGTDSensorGmxSD::HGTDSensorGmxSD
HGTDSensorGmxSD(const std::string &name, const std::string &hitCollectionName, GeoModelIO::ReadGeoModel *sqlreader=nullptr)
Definition: HGTDSensorGmxSD.cxx:35
HGTDSensorGmxSD::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
Definition: HGTDSensorGmxSD.cxx:49
WriteHandle.h
Handle class for recording to StoreGate.
HGTDSensorGmxSD::~HGTDSensorGmxSD
virtual ~HGTDSensorGmxSD()
Definition: HGTDSensorGmxSD.h:42
GeoModelIO
Definition: IGeoDbTagSvc.h:12
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HGTD_ID.h
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
HGTDSensorGmxSD
Definition: HGTDSensorGmxSD.h:34
HGTDSensorGmxSD::Initialize
void Initialize(G4HCofThisEvent *) override final
Definition: HGTDSensorGmxSD.cxx:44
HGTDSensorGmxSD::m_HitColl
SG::WriteHandle< SiHitCollection > m_HitColl
Definition: HGTDSensorGmxSD.h:52
SiHitCollection.h