ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Atlas
G4AtlasTools
G4AtlasTools
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
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
G4AtlasInterfaces/IFastSimulation.h
"
11
#include "
HitManagement/HitCollectionMap.h
"
12
13
// Members
14
#include <G4Region.hh>
15
16
// STL library
17
#include <string>
18
28
class
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
AthAlgTool.h
HitCollectionMap.h
IFastSimulation.h
FastSimulationBase::m_regionName
Gaudi::Property< std::string > m_regionName
The region to which this fast sim is assigned.
Definition
FastSimulationBase.h:53
FastSimulationBase::BeginOfAthenaEvent
virtual StatusCode BeginOfAthenaEvent(HitCollectionMap &) override
Begin of an athena event - do anything that needs to be done at the beginning of each athena event.
Definition
FastSimulationBase.h:43
FastSimulationBase::initializeFastSim
StatusCode initializeFastSim() override
Construct and setup the fast simulation model.
Definition
FastSimulationBase.cxx:28
FastSimulationBase::FastSimulationBase
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
FastSimulationBase.cxx:13
FastSimulationBase::EndOfAthenaEvent
virtual StatusCode EndOfAthenaEvent(HitCollectionMap &) override
End of an athena event - do any tidying up required at the end of each athena event.
Definition
FastSimulationBase.h:46
FastSimulationBase::m_noRegions
Gaudi::Property< bool > m_noRegions
This Fast Simulation has no regions associated with it.
Definition
FastSimulationBase.h:55
FastSimulationBase::getRegion
G4Region * getRegion() const
Definition
FastSimulationBase.cxx:18
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
type
Generated on
for ATLAS Offline Software by
1.17.0