ATLAS Offline Software
HighGranularityTimingDetector
HGTD_G4
HGTD_G4_SD
src
HGTDSensorSD.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// HGTDSensorSD.h, (c) ATLAS Detector software
8
9
#ifndef HGTD_G4_SD_HGTDSENSORSD_H
10
#define HGTD_G4_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
19
#include "
HGTD_Identifier/HGTD_ID.h
"
20
#include "
InDetSimEvent/SiHitCollection.h
"
21
22
// Geant4 headers
23
#include "G4ThreeVector.hh"
24
25
// G4 needed classes
26
class
G4Step;
27
class
G4HCofThisEvent;
28
29
class
HGTDSensorSD
:
public
G4VSensitiveDetector
30
{
31
32
public
:
33
34
// Constructor
35
HGTDSensorSD
(
const
std::string&
name
,
const
std::string& hitCollectionName);
36
37
// Destructor
38
virtual
~HGTDSensorSD
() {}
39
40
// Process the hits from G4
41
G4bool
ProcessHits
(G4Step*, G4TouchableHistory*)
override
final
;
42
43
// Initialize from G4
44
void
Initialize
(G4HCofThisEvent *)
override
final
;
45
46
private
:
47
48
SG::WriteHandle<SiHitCollection>
m_HitColl
;
49
50
};
51
52
#endif // HGTD_G4_SD_HGTDSENSORSD_H
HGTDSensorSD::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
Definition:
HGTDSensorSD.cxx:42
HGTDSensorSD::~HGTDSensorSD
virtual ~HGTDSensorSD()
Definition:
HGTDSensorSD.h:38
HGTDSensorSD::Initialize
void Initialize(G4HCofThisEvent *) override final
Definition:
HGTDSensorSD.cxx:37
HGTDSensorSD
Definition:
HGTDSensorSD.h:30
WriteHandle.h
Handle class for recording to StoreGate.
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
HGTD_ID.h
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
HGTDSensorSD::HGTDSensorSD
HGTDSensorSD(const std::string &name, const std::string &hitCollectionName)
Definition:
HGTDSensorSD.cxx:29
HGTDSensorSD::m_HitColl
SG::WriteHandle< SiHitCollection > m_HitColl
Definition:
HGTDSensorSD.h:48
SiHitCollection.h
Generated on Sun Dec 22 2024 21:11:09 for ATLAS Offline Software by
1.8.18