ATLAS Offline Software
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 
8 StoppedParticleFastSimTool::StoppedParticleFastSimTool(const std::string& type, const std::string& name, const IInterface *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(),m_trackFastSimSDTool->name());
27 }
FastSimulationBase
Definition: FastSimulationBase.h:26
StoppedParticleFastSim.h
StoppedParticleFastSimTool::StoppedParticleFastSimTool
StoppedParticleFastSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: StoppedParticleFastSimTool.cxx:8
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
StoppedParticleFastSimTool::m_trackFastSimSDTool
ToolHandle< ISensitiveDetector > m_trackFastSimSDTool
Definition: StoppedParticleFastSimTool.h:28
StoppedParticleFastSimTool.h
StoppedParticleFastSim
Definition: StoppedParticleFastSim.h:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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
StoppedParticleFastSimTool::initialize
StatusCode initialize() override final
Definition: StoppedParticleFastSimTool.cxx:14