ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4FastSimulation
src
DeadMaterialShowerTool.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 "
DeadMaterialShowerTool.h
"
6
7
#include "
DeadMaterialShower.h
"
8
9
#include "CLHEP/Units/SystemOfUnits.h"
10
11
DeadMaterialShowerTool::DeadMaterialShowerTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent)
12
:
FastSimulationBase
(
type
,name,parent)
13
{
14
declareProperty(
"HighEnergy"
,
m_highEnergy
= 1000.0*CLHEP::GeV ,
"Kill everything but muons up to this energy"
);
15
declareProperty(
"LowEnergy"
,
m_lowEnergy
= 0.0*CLHEP::GeV ,
"Kill only electrons and positrons up to this energy"
);
16
declareProperty(
"ZCutoff"
,
m_zcutoff
= 5698.*CLHEP::mm ,
"Z-position to start killing everything but muons"
);
17
}
18
19
G4VFastSimulationModel*
DeadMaterialShowerTool::makeFastSimModel
()
20
{
21
ATH_MSG_DEBUG
(
"Initializing Fast Sim Model"
);
22
23
// Create a fresh Fast Sim Model
24
return
new
DeadMaterialShower
(name(),
getRegion
(),
m_highEnergy
,
m_lowEnergy
,
m_zcutoff
);
25
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
DeadMaterialShowerTool.h
DeadMaterialShower.h
DeadMaterialShowerTool::m_highEnergy
double m_highEnergy
Definition
DeadMaterialShowerTool.h:25
DeadMaterialShowerTool::makeFastSimModel
virtual G4VFastSimulationModel * makeFastSimModel() override final
Method to make the actual fast simulation model itself, which will be owned by the tool.
Definition
DeadMaterialShowerTool.cxx:19
DeadMaterialShowerTool::m_zcutoff
double m_zcutoff
!< Kill only electrons and positrons up to this energy
Definition
DeadMaterialShowerTool.h:27
DeadMaterialShowerTool::DeadMaterialShowerTool
DeadMaterialShowerTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition
DeadMaterialShowerTool.cxx:11
DeadMaterialShowerTool::m_lowEnergy
double m_lowEnergy
!< Kill everything but muons up to this energy
Definition
DeadMaterialShowerTool.h:26
DeadMaterialShower
Definition
DeadMaterialShower.h:17
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
type
Generated on
for ATLAS Offline Software by
1.17.0