ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Utilities
TrackWriteFastSim
src
NeutronFastSimTool.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 "
NeutronFastSimTool.h
"
6
7
#include "
TrackWriteFastSim/NeutronFastSim.h
"
8
9
NeutronFastSimTool::NeutronFastSimTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent)
10
:
FastSimulationBase
(
type
,name,parent),
11
m_trackFastSimSDName
(
"TrackFastSimSDTool"
),
12
m_etaCut
(6.0),
13
m_timeCut
(150.)
14
{
15
declareProperty(
"TrackFastSimSDName"
,
m_trackFastSimSDName
);
16
declareProperty(
"PrimaryEtaCut"
,
m_etaCut
);
17
declareProperty(
"NeutronTimeCut"
,
m_timeCut
);
18
}
19
20
G4VFastSimulationModel*
NeutronFastSimTool::makeFastSimModel
()
21
{
22
ATH_MSG_DEBUG
(
"Initializing Fast Sim Model"
);
23
24
// Create a fresh Fast Sim Model
25
return
new
NeutronFastSim
(name(),
getRegion
(),
m_trackFastSimSDName
,
m_etaCut
,
m_timeCut
);
26
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
NeutronFastSimTool.h
NeutronFastSim.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
NeutronFastSimTool::m_timeCut
double m_timeCut
!< Eta cut for primaries
Definition
NeutronFastSimTool.h:28
NeutronFastSimTool::NeutronFastSimTool
NeutronFastSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
NeutronFastSimTool.cxx:9
NeutronFastSimTool::makeFastSimModel
virtual G4VFastSimulationModel * makeFastSimModel() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.
Definition
NeutronFastSimTool.cxx:20
NeutronFastSimTool::m_etaCut
double m_etaCut
Definition
NeutronFastSimTool.h:27
NeutronFastSimTool::m_trackFastSimSDName
std::string m_trackFastSimSDName
Definition
NeutronFastSimTool.h:26
NeutronFastSim
Definition
NeutronFastSim.h:18
type
Generated on
for ATLAS Offline Software by
1.14.0