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
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 // Geant4 ACTSFatras G4 Tool
44 PublicToolHandle<IActsFatrasG4Tool> m_ActsFatrasG4Tool{this, "ActsFatrasG4Tool", "ActsFatrasG4Tool", ""};
45
46 // ==============================
47 // Write handles owned by this tool
48 // ==============================
50 this,
51 "PixelCollectionName",
52 "PixelHits_ActsFatrasG4",
53 "StoreGate key for Pixel SiHitCollection"
54 };
55
57 this,
58 "SCTCollectionName",
59 "SCT_Hits_ActsFatrasG4",
60 "StoreGate key for SCT SiHitCollection"
61 };
62};
63
64#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.
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual G4VFastSimulationModel * makeFastSimModel() override final
SG::WriteHandleKey< SiHitCollection > m_sctHitsKey
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.