|
ATLAS Offline Software
|
Class for fast simulation option service.
More...
#include <LArG4FastSimSvc.h>
Class for fast simulation option service.
- Author
- Wolfgang Ehrenfeld, University of Hamburg, Germany
-
Zachary Marshal
Definition at line 42 of file LArG4FastSimSvc.h.
◆ LArG4FastSimSvc()
LArG4FastSimSvc::LArG4FastSimSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
sl |
|
) |
| |
Standard Constructor.
Definition at line 19 of file LArG4FastSimSvc.cxx.
20 : base_class(
name,sl),
26 declareProperty(
"EFlagToShowerLib",
m_e_FlagShowerLib =
true,
"Switch for e+/- frozen showers");
30 declareProperty(
"GFlagToShowerLib",
m_g_FlagShowerLib =
true,
"Switch for photon frozen showers");
34 declareProperty(
"NeutFlagToShowerLib",
m_Neut_FlagShowerLib =
true,
"Switch for neutron frozen showers");
38 declareProperty(
"PionFlagToShowerLib",
m_Pion_FlagShowerLib =
true,
"Switch for neutron frozen showers");
42 declareProperty(
"ContainLow",
m_containLow =
true,
"Switch for containment at low eta");
43 declareProperty(
"ContainHigh",
m_containHigh =
true,
"Switch for containment at high eta");
44 declareProperty(
"ContainCrack",
m_containCrack =
true,
"Switch for containment in the crack region");
46 declareProperty(
"GeneratedStartingPointsFile",
m_generated_starting_points_file =
"",
"Name of file for generated SPs. Do not touch until you want to produce a new library");
50 enum DETECTOR {
EMB=100000,
EMEC=200000,
FCAL1=300000,
FCAL2=400000,FCAL3=500000,HECLOC=600000,
HEC=700000};
◆ ~LArG4FastSimSvc()
LArG4FastSimSvc::~LArG4FastSimSvc |
( |
| ) |
|
|
virtual |
◆ ContainCrack()
bool LArG4FastSimSvc::ContainCrack |
( |
| ) |
const |
|
inlinevirtual |
◆ ContainHigh()
bool LArG4FastSimSvc::ContainHigh |
( |
| ) |
const |
|
inlinevirtual |
◆ ContainLow()
bool LArG4FastSimSvc::ContainLow |
( |
| ) |
const |
|
inlinevirtual |
◆ DetectorTag()
int LArG4FastSimSvc::DetectorTag |
( |
| ) |
const |
|
inlinevirtual |
◆ finalize()
StatusCode LArG4FastSimSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 104 of file LArG4FastSimSvc.cxx.
106 msg(MSG::INFO) <<
"Finalizing fast simulation service. " <<
endmsg;
111 return StatusCode::SUCCESS;
◆ flagToShowerLib()
bool LArG4FastSimSvc::flagToShowerLib |
( |
const G4ParticleDefinition & |
particleType | ) |
const |
|
inlinevirtual |
get switch for frozen showers
Definition at line 108 of file LArG4FastSimSvc.h.
110 if ( &
particleType == G4Electron::ElectronDefinition() ||
113 }
else if ( &
particleType == G4Gamma::GammaDefinition() ) {
115 }
else if ( &
particleType == G4Neutron::NeutronDefinition() ) {
117 }
else if ( &
particleType == G4PionPlus::PionPlusDefinition() ||
◆ generateFSStartingPoint()
bool LArG4FastSimSvc::generateFSStartingPoint |
( |
const HepMC::GenEvent * |
ge | ) |
|
|
virtual |
◆ generateFSStartingPoints()
bool LArG4FastSimSvc::generateFSStartingPoints |
( |
| ) |
const |
|
inlinevirtual |
◆ generateFSStartingPointsRatio()
float LArG4FastSimSvc::generateFSStartingPointsRatio |
( |
| ) |
const |
|
inlinevirtual |
◆ initialize()
StatusCode LArG4FastSimSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 69 of file LArG4FastSimSvc.cxx.
71 msg(MSG::INFO) <<
"Initializing" <<
endmsg;
73 if (
name().
find(
"EMB") != std::string::npos) {
75 }
else if (
name().
find(
"EMEC") != std::string::npos) {
77 }
else if (
name().
find(
"FCAL2") != std::string::npos) {
79 }
else if (
name().
find(
"FCAL") != std::string::npos) {
81 }
else if (
name().
find(
"HEC") != std::string::npos) {
83 }
else if (
name().
find(
"DeadMaterial") != std::string::npos) {
100 return StatusCode::SUCCESS;
◆ maxEneToShowerLib()
double LArG4FastSimSvc::maxEneToShowerLib |
( |
const G4ParticleDefinition & |
particleType | ) |
const |
|
inlinevirtual |
get lower energy limit for frozen showers
Definition at line 137 of file LArG4FastSimSvc.h.
139 if ( &
particleType == G4Electron::ElectronDefinition() ||
142 }
else if ( &
particleType == G4Gamma::GammaDefinition() ) {
144 }
else if ( &
particleType == G4Neutron::NeutronDefinition() ) {
146 }
else if ( &
particleType == G4PionPlus::PionPlusDefinition() ||
◆ minEneToShowerLib()
double LArG4FastSimSvc::minEneToShowerLib |
( |
const G4ParticleDefinition & |
particleType | ) |
const |
|
inlinevirtual |
get upper energy limit for frozen showers
Definition at line 122 of file LArG4FastSimSvc.h.
124 if ( &
particleType == G4Electron::ElectronDefinition() ||
127 }
else if ( &
particleType == G4Gamma::GammaDefinition() ) {
129 }
else if ( &
particleType == G4Neutron::NeutronDefinition() ) {
131 }
else if ( &
particleType == G4PionPlus::PionPlusDefinition() ||
◆ print()
void LArG4FastSimSvc::print |
( |
| ) |
const |
|
private |
dump object content
Definition at line 115 of file LArG4FastSimSvc.cxx.
117 msg(MSG::INFO) <<
"List of Frozen Shower options:" <<
endmsg;
124 msg(MSG::INFO) <<
"Electrons energy range [MeV] for Frozen Showers ["
127 msg(MSG::INFO) <<
"Electrons wont be parameterized" <<
endmsg;
131 msg(MSG::INFO) <<
"Photons energy range [MeV] for Frozen Showers ["
134 msg(MSG::INFO) <<
"Photons wont be parameterized" <<
endmsg;
138 msg(MSG::INFO) <<
"Neutrons energy range [MeV] for Frozen Showers ["
141 msg(MSG::INFO) <<
"Neutrons wont be parameterized" <<
endmsg;
145 msg(MSG::INFO) <<
"Containment check at low eta: " << (this->
m_containLow ?
"YES" :
"NO") << endmsg;
146 msg(MSG::INFO) <<
"Containment check at crack eta: " << (this->
m_containCrack ?
"YES" :
"NO") << endmsg;
147 msg(MSG::INFO) <<
"Containment check at high eta: " << (this->
m_containHigh ?
"YES" :
"NO") << endmsg;
◆ SvcFactory< LArG4FastSimSvc >
◆ m_containCrack
bool LArG4FastSimSvc::m_containCrack |
|
private |
◆ m_containHigh
bool LArG4FastSimSvc::m_containHigh |
|
private |
◆ m_containLow
bool LArG4FastSimSvc::m_containLow |
|
private |
◆ m_detector_tag
int LArG4FastSimSvc::m_detector_tag |
|
private |
◆ m_detector_tag_str
std::string LArG4FastSimSvc::m_detector_tag_str |
|
private |
◆ m_detmap
std::map<std::string,int> LArG4FastSimSvc::m_detmap |
|
private |
◆ m_e_FlagShowerLib
bool LArG4FastSimSvc::m_e_FlagShowerLib |
|
private |
◆ m_e_MaxEneShowerLib
double LArG4FastSimSvc::m_e_MaxEneShowerLib |
|
private |
upper energy limit for electron frozen showers
Definition at line 78 of file LArG4FastSimSvc.h.
◆ m_e_MinEneShowerLib
double LArG4FastSimSvc::m_e_MinEneShowerLib |
|
private |
lower energy limit for electron frozen showers
Definition at line 77 of file LArG4FastSimSvc.h.
◆ m_g_FlagShowerLib
bool LArG4FastSimSvc::m_g_FlagShowerLib |
|
private |
◆ m_g_MaxEneShowerLib
double LArG4FastSimSvc::m_g_MaxEneShowerLib |
|
private |
◆ m_g_MinEneShowerLib
double LArG4FastSimSvc::m_g_MinEneShowerLib |
|
private |
◆ m_generate_starting_points
bool LArG4FastSimSvc::m_generate_starting_points |
|
private |
◆ m_generated_starting_points_file
StringProperty LArG4FastSimSvc::m_generated_starting_points_file |
|
private |
◆ m_generated_starting_points_ratio
float LArG4FastSimSvc::m_generated_starting_points_ratio |
|
private |
◆ m_Neut_FlagShowerLib
bool LArG4FastSimSvc::m_Neut_FlagShowerLib |
|
private |
◆ m_Neut_MaxEneShowerLib
double LArG4FastSimSvc::m_Neut_MaxEneShowerLib |
|
private |
◆ m_Neut_MinEneShowerLib
double LArG4FastSimSvc::m_Neut_MinEneShowerLib |
|
private |
◆ m_Pion_FlagShowerLib
bool LArG4FastSimSvc::m_Pion_FlagShowerLib |
|
private |
◆ m_Pion_MaxEneShowerLib
double LArG4FastSimSvc::m_Pion_MaxEneShowerLib |
|
private |
◆ m_Pion_MinEneShowerLib
double LArG4FastSimSvc::m_Pion_MinEneShowerLib |
|
private |
◆ m_starting_points_file
HepMC::IO_GenEvent* LArG4FastSimSvc::m_starting_points_file |
|
private |
The documentation for this class was generated from the following files:
bool m_containLow
switch for containment check at low eta
std::string m_detector_tag_str
double m_e_MinEneShowerLib
lower energy limit for electron frozen showers
StringProperty m_generated_starting_points_file
switch for shower starting point record
std::string find(const std::string &s)
return a remapped string
int m_detector_tag
name for the detector tag for the ShowerLibSvc
double m_Neut_MinEneShowerLib
lower energy limit for neutron frozen showers
void print() const
dump object content
std::map< std::string, int > m_detmap
bool m_containHigh
switch for containment check at high eta
HepMC::IO_GenEvent * m_starting_points_file
bool m_containCrack
switch for containment check in crack region
double m_Pion_MinEneShowerLib
lower energy limit for pion frozen showers
double m_g_MaxEneShowerLib
lower energy limit for photon frozen showers
double m_Pion_MaxEneShowerLib
upper energy limit for pion frozen showers
float m_generated_starting_points_ratio
switch for shower starting point record
bool m_Neut_FlagShowerLib
switch for neutron frozen showers
bool m_Pion_FlagShowerLib
switch for pion frozen showers
bool m_generate_starting_points
bool m_g_FlagShowerLib
switch for photon frozen showers
bool m_e_FlagShowerLib
switch for electron frozen showers
double m_g_MinEneShowerLib
upper energy limit for photon frozen showers
double m_Neut_MaxEneShowerLib
upper energy limit for neutron frozen showers
double m_e_MaxEneShowerLib
upper energy limit for electron frozen showers