ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10/* Fast simulation base include */
12
13/* Geant4 ACTSFatras G4 Tool */
15
16// Hits writing
19#include "InDetSimEvent/SiHit.h"
20
21class G4VFastSimulationModel;
23{
24public:
25
26 FatrasG4Tool(const std::string& type, const std::string& name, const IInterface *parent);
27
28protected:
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 // ==============================
54 this,
55 "PixelCollectionName",
56 "PixelHits_ActsFatrasG4",
57 "StoreGate key for Pixel SiHitCollection"
58 };
59
61 this,
62 "SCTCollectionName",
63 "SCT_Hits_ActsFatrasG4",
64 "StoreGate key for SCT SiHitCollection"
65 };
66};
67
68#endif //G4FASTSIMULATION_FATRASG4TOOL_H
Property holding a SG store/key/clid from which a WriteHandle is made.
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initializeFastSim() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.
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.
PublicToolHandle< IActsFatrasG4Tool > m_ActsFatrasG4Tool
SG::WriteHandleKey< SiHitCollection > m_pixelHitsKey
virtual StatusCode EndOfAthenaEvent(HitCollectionMap &) override final
End of an athena event - do any tidying up required at the end of each athena event.
virtual G4VFastSimulationModel * makeFastSimModel() override final
SG::WriteHandleKey< SiHitCollection > m_sctHitsKey
FatrasG4Tool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Gaudi::Property< bool > m_doG4Transport
Small wrapper around hit collection map to facilitate accessing the hit collection.
Property holding a SG store/key/clid from which a WriteHandle is made.