ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4ProfilingTools
src
TestActionVPTimerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4PROFILINGTOOLS_G4UA__TESTACTIONVPTIMERTOOL_H
6
#define G4PROFILINGTOOLS_G4UA__TESTACTIONVPTIMERTOOL_H
7
8
#include "
G4AtlasTools/UserActionToolBase.h
"
9
#include "
TestActionVPTimer.h
"
10
11
12
namespace
G4UA
13
{
14
23
class
TestActionVPTimerTool
:
public
UserActionToolBase
<TestActionVPTimer>
24
{
25
26
public
:
28
TestActionVPTimerTool
(
const
std::string&
type
,
const
std::string& name,
29
const
IInterface* parent);
30
32
virtual
StatusCode
finalize
()
override
;
33
34
protected
:
36
virtual
std::unique_ptr<TestActionVPTimer>
37
makeAndFillAction
(
G4AtlasUserActions
&)
override
final
;
38
39
private
:
40
42
TestActionVPTimer::Config
m_config
;
44
TestActionVPTimer::Report
m_report
;
45
46
void
TimerPrint
(std::pair<VolTree, TestActionVPTimer::volumeData>,
47
const
double
tTotal,
48
const
int
depth
= 0)
const
;
49
// void TimerPrint(std::ofstream&,
50
// std::pair<VolTree, volData>,
51
// const int depth = 0) const; //!< (Modifiable) print function for a map element
52
void
TreeOut
(
const
VolTree
&,
const
double
tAtlas,
int
depth
= 0);
53
54
};
// class TestActionVPTimerTool
55
56
}
// namespace G4UA
57
58
#endif
TestActionVPTimer.h
UserActionToolBase.h
VolTree
std::vector< VolID > VolTree
Definition
VolumeTreeNavigator.h:36
G4UA::TestActionVPTimerTool::m_report
TestActionVPTimer::Report m_report
holds data to be reported at end of run
Definition
TestActionVPTimerTool.h:44
G4UA::TestActionVPTimerTool::TimerPrint
void TimerPrint(std::pair< VolTree, TestActionVPTimer::volumeData >, const double tTotal, const int depth=0) const
Definition
TestActionVPTimerTool.cxx:144
G4UA::TestActionVPTimerTool::makeAndFillAction
virtual std::unique_ptr< TestActionVPTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition
TestActionVPTimerTool.cxx:54
G4UA::TestActionVPTimerTool::TreeOut
void TreeOut(const VolTree &, const double tAtlas, int depth=0)
Definition
TestActionVPTimerTool.cxx:128
G4UA::TestActionVPTimerTool::m_config
TestActionVPTimer::Config m_config
holds the runtime configuration
Definition
TestActionVPTimerTool.h:42
G4UA::TestActionVPTimerTool::TestActionVPTimerTool
TestActionVPTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
TestActionVPTimerTool.cxx:40
G4UA::TestActionVPTimerTool::finalize
virtual StatusCode finalize() override
Triggers report merging from threads.
Definition
TestActionVPTimerTool.cxx:65
G4UA::UserActionToolBase< TestActionVPTimer >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
depth
std::string depth
tag string for intendation
Definition
fastadd.cxx:46
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::TestActionVPTimer::Config
Definition
TestActionVPTimer.h:58
G4UA::TestActionVPTimer::Report
Definition
TestActionVPTimer.h:103
type
Generated on
for ATLAS Offline Software by
1.17.0