ATLAS Offline Software
Loading...
Searching...
No Matches
FastSimulationBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4ATLASTOOLS_FASTSIMULATIONBASE_H
6#define G4ATLASTOOLS_FASTSIMULATIONBASE_H
7
8// Base classes
12
13// Members
14#include <G4Region.hh>
15
16// STL library
17#include <string>
18
28class FastSimulationBase : public extends<AthAlgTool, IFastSimulation> {
29 public:
30 FastSimulationBase(const std::string& type, const std::string& name,
31 const IInterface *parent);
32
40 StatusCode initializeFastSim() override;
41
43 virtual StatusCode BeginOfAthenaEvent(HitCollectionMap&) override { return StatusCode::SUCCESS; }
44
46 virtual StatusCode EndOfAthenaEvent(HitCollectionMap&) override { return StatusCode::SUCCESS; }
47
48 protected:
49 // Helper to retrieve the region to which this fast simulation is assigned from the region store.
50 G4Region* getRegion() const;
51
53 Gaudi::Property<std::string> m_regionName{this, "RegionName", ""};
55 Gaudi::Property<bool> m_noRegions{this, "NoRegions", false};
56};
57
58#endif
Gaudi::Property< std::string > m_regionName
The region to which this fast sim is assigned.
virtual StatusCode BeginOfAthenaEvent(HitCollectionMap &) override
Begin of an athena event - do anything that needs to be done at the beginning of each athena event.
StatusCode initializeFastSim() override
Construct and setup the fast simulation model.
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode EndOfAthenaEvent(HitCollectionMap &) override
End of an athena event - do any tidying up required at the end of each athena event.
Gaudi::Property< bool > m_noRegions
This Fast Simulation has no regions associated with it.
G4Region * getRegion() const
Small wrapper around hit collection map to facilitate accessing the hit collection.