ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace 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
#define ATH_MSG_DEBUG(x)
std::string m_file_location
File location for reference file.
bool m_test
Test the setup or write a reference file?
virtual std::unique_ptr< Geant4SetupChecker > makeAndFillAction(G4AtlasUserActions &) override final
Create an action for this thread.
Geant4SetupCheckerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.
std::vector< G4UserRunAction * > runActions