ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
G4SimTimerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4USERACTIONS_G4UA_G4SIMTIMERTOOL_H
6
#define G4USERACTIONS_G4UA_G4SIMTIMERTOOL_H
7
8
// System includes
9
#include <string>
10
11
// Infrastructure includes
12
#include "
G4AtlasTools/UserActionToolBase.h
"
13
14
// Local includes
15
#include "
G4SimTimer.h
"
16
17
namespace
G4UA
18
{
19
28
class
G4SimTimerTool
:
public
UserActionToolBase
<G4SimTimer>
29
{
30
31
public
:
32
34
G4SimTimerTool
(
const
std::string&
type
,
const
std::string& name,
35
const
IInterface* parent);
36
38
virtual
StatusCode
initialize
()
override
;
39
41
virtual
StatusCode
finalize
()
override
;
42
43
protected
:
44
46
virtual
std::unique_ptr<G4SimTimer>
47
makeAndFillAction
(
G4AtlasUserActions
&)
override
final
;
48
49
};
// class G4SimTimerTool
50
51
}
// namespace G4UA
52
53
#endif
G4SimTimer.h
UserActionToolBase.h
G4UA::G4SimTimerTool::G4SimTimerTool
G4SimTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
G4SimTimerTool.cxx:13
G4UA::G4SimTimerTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
G4SimTimerTool.cxx:23
G4UA::G4SimTimerTool::finalize
virtual StatusCode finalize() override
Finalize and merge results from all worker threads.
Definition
G4SimTimerTool.cxx:32
G4UA::G4SimTimerTool::makeAndFillAction
virtual std::unique_ptr< G4SimTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create aciton for this thread.
Definition
G4SimTimerTool.cxx:55
G4UA::UserActionToolBase< G4SimTimer >::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
type
Generated on
for ATLAS Offline Software by
1.14.0