ATLAS Offline Software
G4TrackCounterTool.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_G4TRACKCOUNTERTOOL_H
6 #define G4USERACTIONS__G4UA_G4TRACKCOUNTERTOOL_H
7 
8 // Infrastructure includes
10 
11 // Local includes
12 #include "G4TrackCounter.h"
13 
14 namespace G4UA
15 {
16 
24  class G4TrackCounterTool : public UserActionToolBase<G4TrackCounter>
25  {
26 
27  public:
28 
30  G4TrackCounterTool(const std::string& type, const std::string& name,
31  const IInterface* parent);
32 
34  virtual StatusCode initialize() override final;
35 
37  virtual StatusCode finalize() override final;
38 
39  protected:
40 
42  virtual std::unique_ptr<G4TrackCounter>
43  makeAndFillAction(G4AtlasUserActions&) override final;
44 
45  }; // class G4TrackCounterTool
46 
47 } // namespace G4UA
48 
49 #endif
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
UserActionToolBase.h
G4UA::G4TrackCounterTool
Tool which manages the G4TrackCounter action. This tool creates the G4TrackCounter for each thread an...
Definition: G4TrackCounterTool.h:25
G4UA::G4TrackCounterTool::makeAndFillAction
virtual std::unique_ptr< G4TrackCounter > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition: G4TrackCounterTool.cxx:54
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
G4UA::G4TrackCounterTool::G4TrackCounterTool
G4TrackCounterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: G4TrackCounterTool.cxx:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4TrackCounter.h
G4UA::G4TrackCounterTool::initialize
virtual StatusCode initialize() override final
Initialize tool.
Definition: G4TrackCounterTool.cxx:23
G4UA::G4TrackCounterTool::finalize
virtual StatusCode finalize() override final
Finalize and merge results from all threads.
Definition: G4TrackCounterTool.cxx:32