ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
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
9
#include "
G4AtlasTools/UserActionToolBase.h
"
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
G4TrackCounter.h
UserActionToolBase.h
G4UA::G4TrackCounterTool::G4TrackCounterTool
G4TrackCounterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
G4TrackCounterTool.cxx:14
G4UA::G4TrackCounterTool::finalize
virtual StatusCode finalize() override final
Finalize and merge results from all threads.
Definition
G4TrackCounterTool.cxx:32
G4UA::G4TrackCounterTool::makeAndFillAction
virtual std::unique_ptr< G4TrackCounter > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition
G4TrackCounterTool.cxx:54
G4UA::G4TrackCounterTool::initialize
virtual StatusCode initialize() override final
Initialize tool.
Definition
G4TrackCounterTool.cxx:23
G4UA::UserActionToolBase< G4TrackCounter >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
type
Generated on
for ATLAS Offline Software by
1.17.0