ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4FastSimulation
src
FatrasG4Tool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4FASTSIMULATION_FATRASG4TOOL_H
6
#define G4FASTSIMULATION_FATRASG4TOOL_H
7
8
#include "
HitManagement/HitCollectionMap.h
"
9
10
/* Fast simulation base include */
11
#include "
G4AtlasTools/FastSimulationBase.h
"
12
13
/* Geant4 ACTSFatras G4 Tool */
14
#include "
G4AtlasInterfaces/IActsFatrasG4Tool.h
"
15
16
// Hits writing
17
#include "
StoreGate/WriteHandleKey.h
"
18
#include "
InDetSimEvent/SiHitCollection.h
"
19
#include "
InDetSimEvent/SiHit.h
"
20
21
class
G4VFastSimulationModel;
22
class
FatrasG4Tool
:
public
FastSimulationBase
23
{
24
public
:
25
26
FatrasG4Tool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent);
27
28
protected
:
32
33
// ==============================
34
// Exposed FastSimulation lifecycle hooks
35
// ==============================
36
virtual
StatusCode
initializeFastSim
()
override
final
;
37
virtual
StatusCode
BeginOfAthenaEvent
(
HitCollectionMap
&)
override
final
;
38
virtual
StatusCode
EndOfAthenaEvent
(
HitCollectionMap
&)
override
final
;
39
40
virtual
G4VFastSimulationModel*
makeFastSimModel
()
override
final
;
41
42
private
:
43
44
// Flag to enable G4 transportation
45
Gaudi::Property<bool>
m_doG4Transport
{
this
,
"doG4Transport"
,
false
,
"Flag to enable G4 transportation"
};
46
47
// Geant4 ACTSFatras G4 Tool
48
PublicToolHandle<IActsFatrasG4Tool>
m_ActsFatrasG4Tool
{
this
,
"ActsFatrasG4Tool"
,
"ActsFatrasG4Tool"
,
""
};
49
50
// ==============================
51
// Write handles owned by this tool
52
// ==============================
53
SG::WriteHandleKey<SiHitCollection>
m_pixelHitsKey
{
54
this
,
55
"PixelCollectionName"
,
56
"PixelHits_ActsFatrasG4"
,
57
"StoreGate key for Pixel SiHitCollection"
58
};
59
60
SG::WriteHandleKey<SiHitCollection>
m_sctHitsKey
{
61
this
,
62
"SCTCollectionName"
,
63
"SCT_Hits_ActsFatrasG4"
,
64
"StoreGate key for SCT SiHitCollection"
65
};
66
};
67
68
#endif
//G4FASTSIMULATION_FATRASG4TOOL_H
FastSimulationBase.h
HitCollectionMap.h
IActsFatrasG4Tool.h
SiHitCollection.h
SiHit.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
FastSimulationBase::FastSimulationBase
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
FastSimulationBase.cxx:13
FatrasG4Tool::initializeFastSim
virtual StatusCode initializeFastSim() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.
Definition
FatrasG4Tool.cxx:13
FatrasG4Tool::BeginOfAthenaEvent
virtual StatusCode BeginOfAthenaEvent(HitCollectionMap &) override final
Begin of an athena event - do anything that needs to be done at the beginning of each athena event.
Definition
FatrasG4Tool.cxx:22
FatrasG4Tool::m_ActsFatrasG4Tool
PublicToolHandle< IActsFatrasG4Tool > m_ActsFatrasG4Tool
Definition
FatrasG4Tool.h:48
FatrasG4Tool::m_pixelHitsKey
SG::WriteHandleKey< SiHitCollection > m_pixelHitsKey
Definition
FatrasG4Tool.h:53
FatrasG4Tool::EndOfAthenaEvent
virtual StatusCode EndOfAthenaEvent(HitCollectionMap &) override final
End of an athena event - do any tidying up required at the end of each athena event.
Definition
FatrasG4Tool.cxx:42
FatrasG4Tool::makeFastSimModel
virtual G4VFastSimulationModel * makeFastSimModel() override final
Definition
FatrasG4Tool.cxx:35
FatrasG4Tool::m_sctHitsKey
SG::WriteHandleKey< SiHitCollection > m_sctHitsKey
Definition
FatrasG4Tool.h:60
FatrasG4Tool::FatrasG4Tool
FatrasG4Tool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition
FatrasG4Tool.cxx:8
FatrasG4Tool::m_doG4Transport
Gaudi::Property< bool > m_doG4Transport
Definition
FatrasG4Tool.h:45
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
type
Generated on
for ATLAS Offline Software by
1.17.0