ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
TrackWriteFastSim
src
StoppedParticleFastSimTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
StoppedParticleFastSimTool.h
"
6
#include "
TrackWriteFastSim/StoppedParticleFastSim.h
"
7
8
StoppedParticleFastSimTool::StoppedParticleFastSimTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent)
9
:
FastSimulationBase
(
type
,name,parent),
10
m_trackFastSimSDTool
(
"TrackFastSimSDTool"
)
11
{
12
}
13
14
StatusCode
StoppedParticleFastSimTool::initialize
()
15
{
16
CHECK
(
m_trackFastSimSDTool
.retrieve());
17
CHECK
(
m_trackFastSimSDTool
->initializeSD());
18
return
StatusCode::SUCCESS;
19
}
20
21
G4VFastSimulationModel*
StoppedParticleFastSimTool::makeFastSimModel
()
22
{
23
ATH_MSG_DEBUG
(
"Initializing Fast Sim Model"
);
24
25
// Create a fresh Fast Sim Model
26
return
new
StoppedParticleFastSim
(name(),
getRegion
(),
m_trackFastSimSDTool
->name());
27
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:28
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
StoppedParticleFastSimTool.h
StoppedParticleFastSim.h
FastSimulationBase::FastSimulationBase
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
FastSimulationBase.cxx:13
FastSimulationBase::getRegion
G4Region * getRegion() const
Definition
FastSimulationBase.cxx:18
StoppedParticleFastSimTool::initialize
StatusCode initialize() override final
Definition
StoppedParticleFastSimTool.cxx:14
StoppedParticleFastSimTool::StoppedParticleFastSimTool
StoppedParticleFastSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
StoppedParticleFastSimTool.cxx:8
StoppedParticleFastSimTool::m_trackFastSimSDTool
ToolHandle< ISensitiveDetector > m_trackFastSimSDTool
Definition
StoppedParticleFastSimTool.h:28
StoppedParticleFastSimTool::makeFastSimModel
virtual G4VFastSimulationModel * makeFastSimModel() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.
Definition
StoppedParticleFastSimTool.cxx:21
StoppedParticleFastSim
Definition
StoppedParticleFastSim.h:18
type
Generated on
for ATLAS Offline Software by
1.17.0