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//new LAr stuff
18
19// Geant4 headers
20#include "G4ThreeVector.hh"
21
22#include <string>
23
24// G4 needed classes
25class G4Step;
26class G4HCofThisEvent;
27
28namespace GeoModelIO{
29 class ReadGeoModel;
30}
31
32class HGTDSensorGmxSD : public G4VSensitiveDetector
33{
34
35public:
36
37 // Constructor
38 HGTDSensorGmxSD(const std::string& name, const std::string& hitCollectionName, GeoModelIO::ReadGeoModel * sqlreader=nullptr);
39
40 // Destructor
41 virtual ~HGTDSensorGmxSD() {}
42
43 // Process the hits from G4
44 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
45
46 // Initialize from G4
47 void Initialize(G4HCofThisEvent *) override final;
48
49private:
50
52
54 // Non-owning cache set by Initialize; HitCollectionMap owns the collection.
56 GeoModelIO::ReadGeoModel * m_sqlreader;
57
58};
59
60#endif // HGTD_G4_Gmx_SD_HGTDSENSORSD_H
AtlasHitsVector< SiHit > SiHitCollection
GeoModelIO::ReadGeoModel * m_sqlreader
std::string m_hitCollectionName
SiHitCollection * m_hitColl
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
virtual ~HGTDSensorGmxSD()
SiHitCollection * getHitCollection() const
HGTDSensorGmxSD(const std::string &name, const std::string &hitCollectionName, GeoModelIO::ReadGeoModel *sqlreader=nullptr)
void Initialize(G4HCofThisEvent *) override final