ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14// Local includes
15#include "G4SimTimer.h"
16
17namespace 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>
48
49 }; // class G4SimTimerTool
50
51} // namespace G4UA
52
53#endif
G4SimTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual StatusCode initialize() override
Initialize the tool.
virtual StatusCode finalize() override
Finalize and merge results from all worker threads.
virtual std::unique_ptr< G4SimTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create aciton for this thread.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.