ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
8StoppedParticleFastSimTool::StoppedParticleFastSimTool(const std::string& type, const std::string& name, const IInterface *parent)
9 : FastSimulationBase(type,name,parent),
10 m_trackFastSimSDTool("TrackFastSimSDTool")
11{
12}
13
15{
16 CHECK(m_trackFastSimSDTool.retrieve());
17 CHECK(m_trackFastSimSDTool->initializeSD());
18 return StatusCode::SUCCESS;
19}
20
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}
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
G4Region * getRegion() const
StatusCode initialize() override final
StoppedParticleFastSimTool(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< ISensitiveDetector > m_trackFastSimSDTool
virtual G4VFastSimulationModel * makeFastSimModel() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.