ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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>
44
45 }; // class G4TrackCounterTool
46
47} // namespace G4UA
48
49#endif
G4TrackCounterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual StatusCode finalize() override final
Finalize and merge results from all threads.
virtual std::unique_ptr< G4TrackCounter > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
virtual StatusCode initialize() override final
Initialize tool.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.