ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "TestActionVPTimer.h"
10
11
12namespace 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>
38
39 private:
40
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
std::vector< VolID > VolTree
TestActionVPTimer::Report m_report
holds data to be reported at end of run
void TimerPrint(std::pair< VolTree, TestActionVPTimer::volumeData >, const double tTotal, const int depth=0) const
virtual std::unique_ptr< TestActionVPTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
void TreeOut(const VolTree &, const double tAtlas, int depth=0)
TestActionVPTimer::Config m_config
holds the runtime configuration
TestActionVPTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual StatusCode finalize() override
Triggers report merging from threads.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
std::string depth
tag string for intendation
Definition fastadd.cxx:46
Struct for passing around user actions.