ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_G4
HGTD_G4_SD
src
HGTDSensorSDTool.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
// HGTDSensorSDTool.h, (c) ATLAS Detector software
8
9
#ifndef HGTD_G4_SD_HGTDSENSORSDTOOL_H
10
#define HGTD_G4_SD_HGTDSENSORSDTOOL_H
11
12
// Base class
13
#include "
G4AtlasTools/SensitiveDetectorBase.h
"
14
15
#include "
GeoModelInterfaces/IGeoDbTagSvc.h
"
16
17
// STL headers
18
#include <string>
19
20
class
G4VSensitiveDetector;
21
22
class
HGTDSensorSDTool
:
public
SensitiveDetectorBase
23
{
24
public
:
25
// Constructor
26
HGTDSensorSDTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent);
27
28
// Destructor
29
virtual
~HGTDSensorSDTool
() {}
30
31
protected
:
32
// Create the event-owned hit collection.
33
virtual
StatusCode
SetupEvent
(
HitCollectionMap
&)
override
final
;
34
// Record the event-owned hit collection to StoreGate.
35
virtual
StatusCode
Gather
(
HitCollectionMap
&)
override
final
;
36
// Make me an SD!
37
virtual
G4VSensitiveDetector*
makeSD
()
const
override final;
38
// property to toggle GeoModelXML
39
Gaudi
::
Property
<
bool
>
m_gmxSensor
{
this
,
"GmxSensor"
,
false
};
40
ServiceHandle<IGeoDbTagSvc>
m_geoDbTagSvc
{
this
,
"GeoDbTagSvc"
,
"GeoDbTagSvc"
,
""
};
41
};
42
43
#endif
// HGTD_G4_SD_HGTDSENSORSDTOOL_H
IGeoDbTagSvc.h
SensitiveDetectorBase.h
HGTDSensorSDTool::makeSD
virtual G4VSensitiveDetector * makeSD() const override final
Definition
HGTDSensorSDTool.cxx:41
HGTDSensorSDTool::SetupEvent
virtual StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.
Definition
HGTDSensorSDTool.cxx:28
HGTDSensorSDTool::m_gmxSensor
Gaudi::Property< bool > m_gmxSensor
Definition
HGTDSensorSDTool.h:39
HGTDSensorSDTool::m_geoDbTagSvc
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
Definition
HGTDSensorSDTool.h:40
HGTDSensorSDTool::HGTDSensorSDTool
HGTDSensorSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
HGTDSensorSDTool.cxx:23
HGTDSensorSDTool::Gather
virtual StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
Definition
HGTDSensorSDTool.cxx:35
HGTDSensorSDTool::~HGTDSensorSDTool
virtual ~HGTDSensorSDTool()
Definition
HGTDSensorSDTool.h:29
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
Property
Support class for PropertyMgr.
Definition
Property.h:23
SensitiveDetectorBase::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorBase.cxx:17
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
type
Generated on
for ATLAS Offline Software by
1.17.0