ATLAS Offline Software
Loading...
Searching...
No Matches
ForwardTransportModelTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9ForwardTransportModelTool::ForwardTransportModelTool(const std::string& type, const std::string& name, const IInterface *parent)
10 : FastSimulationBase(type,name,parent)
11{
12 declareProperty("ForwardTransportSvcName", m_FwdTrSvcName="ForwardTransportSvc", "");
13}
14
16{
17 ATH_MSG_DEBUG( "Initializing Fast Sim Model" );
18
19 int verboseLevel(0);
20 if(msgLvl(MSG::VERBOSE)) verboseLevel = 10;
21 else if(msgLvl(MSG::DEBUG)) verboseLevel = 5;
22 // Create a fresh Fast Sim Model
23 return new ForwardTransportModel(name(), getRegion(), verboseLevel, m_FwdTrSvcName);
24
25}
#define ATH_MSG_DEBUG(x)
FastSimulationBase(const std::string &type, const std::string &name, const IInterface *parent)
G4Region * getRegion() const
ForwardTransportModelTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual G4VFastSimulationModel * makeFastSimModel() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.