#include "G4AtlasTools/RegionCreator.h"
|
Gaudi::Property< std::string > | m_regionName {this, "RegionName", "", "Region name (same as the Tool name if not set)"} |
|
Gaudi::Property< double > | m_gammaCut {this, "GammaCut", 1.*Gaudi::Units::mm, "Cut to be applied for gammas"} |
|
Gaudi::Property< double > | m_electronCut {this, "ElectronCut", 1., "Cut to be applied for electrons"} |
|
Gaudi::Property< double > | m_positronCut {this, "PositronCut", 1., "Cut to be applied for positrons"} |
|
Gaudi::Property< double > | m_protonCut {this, "ProtonCut", 1., "Cut to be applied for gammas"} |
|
Gaudi::Property< std::vector< std::string > > | m_logicalVolumes {this, "VolumeList", {}, "List of volumes to be included in this region"} |
|
BooleanProperty | m_dumpRegion {this, "DumpRegion", false, ""} |
|
Concrete Tool to create G4 Physics Regions
- Author
- ADA
- Date
- 2015-03-23
Definition at line 25 of file RegionCreator.h.
◆ RegionCreator()
RegionCreator::RegionCreator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~RegionCreator()
RegionCreator::~RegionCreator |
( |
| ) |
|
|
inline |
◆ Construct()
void RegionCreator::Construct |
( |
| ) |
|
|
override |
Definition at line 38 of file RegionCreator.cxx.
45 G4LogicalVolumeStore* logStore=G4LogicalVolumeStore::GetInstance();
47 size_t nVolumesCurrent{0};
48 for (
auto*
it: *logStore)
51 if (vol ==
static_cast<const std::string&
>(
it->GetName()))
54 it->SetRegion(theRegion);
55 theRegion->AddRootLogicalVolume(
it);
58 if (nVolumesCurrent==0) {
59 ATH_MSG_WARNING(
"No volumes matching \"" << vol <<
"\" found in G4 LogicalVolumeStore. " <<
m_regionName.value() <<
" G4PhysicsRegion may not behave as intended.");
61 nVolumes += nVolumesCurrent;
67 G4ProductionCuts*
cuts=
new G4ProductionCuts();
74 theRegion->SetProductionCuts(
cuts);
◆ Dump()
void RegionCreator::Dump |
( |
| ) |
|
|
override |
◆ initialize()
StatusCode RegionCreator::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_dumpRegion
BooleanProperty RegionCreator::m_dumpRegion {this, "DumpRegion", false, ""} |
|
private |
◆ m_electronCut
Gaudi::Property<double> RegionCreator::m_electronCut {this, "ElectronCut", 1., "Cut to be applied for electrons"} |
|
private |
◆ m_gammaCut
Gaudi::Property<double> RegionCreator::m_gammaCut {this, "GammaCut", 1.*Gaudi::Units::mm, "Cut to be applied for gammas"} |
|
private |
◆ m_logicalVolumes
Gaudi::Property<std::vector<std::string> > RegionCreator::m_logicalVolumes {this, "VolumeList", {}, "List of volumes to be included in this region"} |
|
private |
◆ m_positronCut
Gaudi::Property<double> RegionCreator::m_positronCut {this, "PositronCut", 1., "Cut to be applied for positrons"} |
|
private |
◆ m_protonCut
Gaudi::Property<double> RegionCreator::m_protonCut {this, "ProtonCut", 1., "Cut to be applied for gammas"} |
|
private |
◆ m_regionName
Gaudi::Property<std::string> RegionCreator::m_regionName {this, "RegionName", "", "Region name (same as the Tool name if not set)"} |
|
private |
The documentation for this class was generated from the following files: