ATLAS Offline Software
Geant4SetupCheckerTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace G4UA
8 {
9 
11  const std::string& name,
12  const IInterface* parent)
14  m_file_location("reference_file.txt"),
15  m_test(true)
16  {
17  declareProperty("ReferenceFile",m_file_location);
18  declareProperty("RunTest",m_test);
19  }
20 
21  std::unique_ptr<Geant4SetupChecker>
23  {
24  ATH_MSG_DEBUG("Constructing a Geant4SetupChecker");
25  auto action = std::make_unique<Geant4SetupChecker>(m_file_location,m_test);
26  actionList.runActions.push_back( action.get() );
27  return action;
28  }
29 
30 } // namespace G4UA
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
Geant4SetupCheckerTool.h
G4UA::Geant4SetupCheckerTool::Geant4SetupCheckerTool
Geant4SetupCheckerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: Geant4SetupCheckerTool.cxx:10
G4UA::Geant4SetupCheckerTool::m_file_location
std::string m_file_location
File location for reference file.
Definition: Geant4SetupCheckerTool.h:31
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::Geant4SetupChecker
Definition: Geant4SetupChecker.h:15
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::Geant4SetupCheckerTool::makeAndFillAction
virtual std::unique_ptr< Geant4SetupChecker > makeAndFillAction(G4AtlasUserActions &) override final
Create an action for this thread.
Definition: Geant4SetupCheckerTool.cxx:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::Geant4SetupCheckerTool::m_test
bool m_test
Test the setup or write a reference file?
Definition: Geant4SetupCheckerTool.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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