ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_G4
HGTD_G4_SD
src
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
16
#include "
HGTD_Identifier/HGTD_ID.h
"
17
#include "
InDetSimEvent/SiHitCollection.h
"
18
19
// Geant4 headers
20
#include "G4ThreeVector.hh"
21
22
#include <string>
23
24
// G4 needed classes
25
class
G4Step;
26
class
G4HCofThisEvent;
27
28
namespace
GeoModelIO
{
29
class
ReadGeoModel;
30
}
31
32
class
HGTDSensorGmxSD
:
public
G4VSensitiveDetector
33
{
34
35
public
:
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
49
private
:
50
51
SiHitCollection
*
getHitCollection
()
const
;
52
53
std::string
m_hitCollectionName
;
54
// Non-owning cache set by Initialize; HitCollectionMap owns the collection.
55
SiHitCollection
*
m_hitColl
{};
56
GeoModelIO::ReadGeoModel *
m_sqlreader
;
57
58
};
59
60
#endif
// HGTD_G4_Gmx_SD_HGTDSENSORSD_H
HGTD_ID.h
SiHitCollection.h
SiHitCollection
AtlasHitsVector< SiHit > SiHitCollection
Definition
SiHitCollection.h:14
HGTDSensorGmxSD::m_sqlreader
GeoModelIO::ReadGeoModel * m_sqlreader
Definition
HGTDSensorGmxSD.h:56
HGTDSensorGmxSD::m_hitCollectionName
std::string m_hitCollectionName
Definition
HGTDSensorGmxSD.h:53
HGTDSensorGmxSD::m_hitColl
SiHitCollection * m_hitColl
Definition
HGTDSensorGmxSD.h:55
HGTDSensorGmxSD::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
Definition
HGTDSensorGmxSD.cxx:51
HGTDSensorGmxSD::~HGTDSensorGmxSD
virtual ~HGTDSensorGmxSD()
Definition
HGTDSensorGmxSD.h:41
HGTDSensorGmxSD::getHitCollection
SiHitCollection * getHitCollection() const
Definition
HGTDSensorGmxSD.cxx:146
HGTDSensorGmxSD::HGTDSensorGmxSD
HGTDSensorGmxSD(const std::string &name, const std::string &hitCollectionName, GeoModelIO::ReadGeoModel *sqlreader=nullptr)
Definition
HGTDSensorGmxSD.cxx:37
HGTDSensorGmxSD::Initialize
void Initialize(G4HCofThisEvent *) override final
Definition
HGTDSensorGmxSD.cxx:46
GeoModelIO
Definition
IGeoDbTagSvc.h:12
Generated on
for ATLAS Offline Software by
1.17.0