ATLAS Offline Software
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 
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
G4UA::G4SimTimerTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition: G4SimTimerTool.cxx:23
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA::G4SimTimerTool::finalize
virtual StatusCode finalize() override
Finalize and merge results from all worker threads.
Definition: G4SimTimerTool.cxx:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
UserActionToolBase.h
G4UA::G4SimTimerTool::makeAndFillAction
virtual std::unique_ptr< G4SimTimer > makeAndFillAction(G4AtlasUserActions &) override final
Create aciton for this thread.
Definition: G4SimTimerTool.cxx:55
G4UA::G4SimTimerTool
Tool which manages the G4SimTimer action.
Definition: G4SimTimerTool.h:29
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::G4SimTimerTool::G4SimTimerTool
G4SimTimerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: G4SimTimerTool.cxx:13
G4SimTimer.h