ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4DebuggingTools
src
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
5
#include "
Geant4SetupCheckerTool.h
"
6
7
namespace
G4UA
8
{
9
10
Geant4SetupCheckerTool::Geant4SetupCheckerTool
(
const
std::string&
type
,
11
const
std::string& name,
12
const
IInterface* parent)
13
:
UserActionToolBase
<
Geant4SetupChecker
>(
type
, name, 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>
22
Geant4SetupCheckerTool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
Geant4SetupCheckerTool.h
G4UA::Geant4SetupCheckerTool::m_file_location
std::string m_file_location
File location for reference file.
Definition
Geant4SetupCheckerTool.h:31
G4UA::Geant4SetupCheckerTool::m_test
bool m_test
Test the setup or write a reference file?
Definition
Geant4SetupCheckerTool.h:33
G4UA::Geant4SetupCheckerTool::makeAndFillAction
virtual std::unique_ptr< Geant4SetupChecker > makeAndFillAction(G4AtlasUserActions &) override final
Create an action for this thread.
Definition
Geant4SetupCheckerTool.cxx:22
G4UA::Geant4SetupCheckerTool::Geant4SetupCheckerTool
Geant4SetupCheckerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
Geant4SetupCheckerTool.cxx:10
G4UA::Geant4SetupChecker
Definition
Geant4SetupChecker.h:15
G4UA::UserActionToolBase< Geant4SetupChecker >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition
IUserActionTool.h:36
type
Generated on
for ATLAS Offline Software by
1.17.0