ATLAS Offline Software
Simulation
G4Atlas
G4AtlasTools
src
FastSimulationBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
G4AtlasTools/FastSimulationBase.h
"
6
7
// Geant4 includes used in functions
8
#include "G4AutoDelete.hh"
9
#include <G4Region.hh>
10
#include "G4RegionStore.hh"
11
#include "G4VFastSimulationModel.hh"
12
13
FastSimulationBase::FastSimulationBase
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
)
14
: base_class(
type
,
name
,
parent
)
15
{
16
}
17
18
G4Region*
FastSimulationBase::getRegion
()
const
19
{
20
if
(
m_regionName
.value().empty()) {
21
return
nullptr
;
22
}
23
return
G4RegionStore::GetInstance()->GetRegion(
m_regionName
.value());
24
}
25
26
27
// Athena method, used to get out the G4 geometry and set up the Fast Simulation Models
28
StatusCode
FastSimulationBase::initializeFastSim
(){
29
ATH_MSG_VERBOSE
(
name
() <<
"::initializeFastSim()"
);
30
31
// Instantiate the FastSimModel for this geant4 thread and register it for deletion
32
G4AutoDelete::Register(makeFastSimModel());
33
34
return
StatusCode::SUCCESS;
35
}
FastSimulationBase.h
FastSimulationBase::m_regionName
Gaudi::Property< std::string > m_regionName
The region to which this fast sim is assigned.
Definition:
FastSimulationBase.h:52
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition:
AthMsgStreamMacros.h:28
python.CaloAddPedShiftConfig.type
type
Definition:
CaloAddPedShiftConfig.py:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FastSimulationBase::FastSimulationBase
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
FastSimulationBase.cxx:13
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
FastSimulationBase::initializeFastSim
StatusCode initializeFastSim() override
Construct and setup the fast simulation model.
Definition:
FastSimulationBase.cxx:28
FastSimulationBase::getRegion
G4Region * getRegion() const
Definition:
FastSimulationBase.cxx:18
Generated on Tue Nov 25 2025 21:10:10 for ATLAS Offline Software by
1.8.18