ATLAS Offline Software
VolumeDebuggerTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "VolumeDebuggerTool.h"
6 
7 namespace G4UA
8 {
9 
11  const std::string& name,
12  const IInterface* parent)
14  {
15  declareProperty("OutputPath", m_config.path);
16  declareProperty("TargetVolume", m_config.targetVolume);
17  declareProperty("Resolution", m_config.res);
18  declareProperty("Tolerance", m_config.tol);
19  declareProperty("Verbose", m_config.verbose);
20  declareProperty("RunGeoTest", m_config.volumeCheck);
21  declareProperty("MaxCopiesToCheck", m_config.targetMaxCopiesToCheck);
22  declareProperty("DumpGDML", m_config.dumpGDML);
23  declareProperty("DumpPhysicsRegions", m_config.dumpPhysicsRegions);
24  declareProperty("PrintGeometry", m_config.printGeo);
25  }
26 
27  std::unique_ptr<VolumeDebugger>
29  {
30  ATH_MSG_DEBUG("Constructing a VolumeDebugger");
31  auto action = std::make_unique<VolumeDebugger>(m_config);
32  actionList.runActions.push_back( action.get() );
33  return action;
34  }
35 
36 } // namespace G4UA
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA::VolumeDebugger
a user action to debug G4 geometries
Definition: VolumeDebugger.h:37
G4UA::VolumeDebugger::Config::dumpGDML
bool dumpGDML
Definition: VolumeDebugger.h:50
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::VolumeDebugger::Config::res
int res
Definition: VolumeDebugger.h:45
G4UA::VolumeDebugger::Config::tol
float tol
Definition: VolumeDebugger.h:47
G4UA::VolumeDebugger::Config::printGeo
bool printGeo
Definition: VolumeDebugger.h:52
G4UA::VolumeDebugger::Config::dumpPhysicsRegions
bool dumpPhysicsRegions
Definition: VolumeDebugger.h:51
G4UA::VolumeDebugger::Config::volumeCheck
bool volumeCheck
Definition: VolumeDebugger.h:48
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
VolumeDebuggerTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::VolumeDebugger::Config::targetVolume
std::string targetVolume
Definition: VolumeDebugger.h:44
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::VolumeDebuggerTool::m_config
VolumeDebugger::Config m_config
holds the configuration received from the python side
Definition: VolumeDebuggerTool.h:32
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition: IUserActionTool.h:33
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::VolumeDebuggerTool::makeAndFillAction
virtual std::unique_ptr< VolumeDebugger > makeAndFillAction(G4AtlasUserActions &) override final
builds the action for a thread
Definition: VolumeDebuggerTool.cxx:28
G4UA::VolumeDebugger::Config::targetMaxCopiesToCheck
double targetMaxCopiesToCheck
Definition: VolumeDebugger.h:49
G4UA::VolumeDebugger::Config::path
std::string path
Definition: VolumeDebugger.h:43
G4UA::VolumeDebugger::Config::verbose
bool verbose
Definition: VolumeDebugger.h:46
G4UA::VolumeDebuggerTool::VolumeDebuggerTool
VolumeDebuggerTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool constructor
Definition: VolumeDebuggerTool.cxx:10