ATLAS Offline Software
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
(),
m_trackFastSimSDName
,
m_etaCut
,
m_timeCut
);
26
}
NeutronFastSimTool::NeutronFastSimTool
NeutronFastSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
NeutronFastSimTool.cxx:9
NeutronFastSimTool::m_timeCut
double m_timeCut
!< Eta cut for primaries
Definition:
NeutronFastSimTool.h:28
FastSimulationBase
Definition:
FastSimulationBase.h:26
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
NeutronFastSim.h
NeutronFastSim
Definition:
NeutronFastSim.h:17
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
NeutronFastSimTool::m_etaCut
double m_etaCut
Definition:
NeutronFastSimTool.h:27
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
NeutronFastSimTool.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
NeutronFastSimTool::m_trackFastSimSDName
std::string m_trackFastSimSDName
Definition:
NeutronFastSimTool.h:26
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
Generated on Mon Dec 23 2024 21:15:50 for ATLAS Offline Software by
1.8.18