ATLAS Offline Software
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 
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 
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
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
egammaParameters::depth
@ depth
pointing depth of the shower as calculated in egammaqgcld
Definition: egammaParamDefs.h:276
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
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:139
G4UA::TestActionVPTimerTool::m_config
TestActionVPTimer::Config m_config
holds the runtime configuration
Definition: TestActionVPTimerTool.h:42
UserActionToolBase.h
G4UA::TestActionVPTimer::Config
Definition: TestActionVPTimer.h:58
G4UA::TestActionVPTimerTool::TreeOut
void TreeOut(const VolTree &, const double tAtlas, int depth=0)
Definition: TestActionVPTimerTool.cxx:123
TestActionVPTimer.h
G4UA::TestActionVPTimer::Report
Definition: TestActionVPTimer.h:103
G4UA::TestActionVPTimerTool::TestActionVPTimerTool
TestActionVPTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: TestActionVPTimerTool.cxx:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VolTree
std::vector< VolID > VolTree
Definition: VolumeTreeNavigator.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::TestActionVPTimerTool::finalize
virtual StatusCode finalize() override
Triggers report merging from threads.
Definition: TestActionVPTimerTool.cxx:65
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
G4UA::TestActionVPTimerTool
Tool which manages the TestActionVPTimer action.
Definition: TestActionVPTimerTool.h:24
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::TestActionVPTimerTool::makeAndFillAction
virtual std::unique_ptr< TestActionVPTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition: TestActionVPTimerTool.cxx:54