ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Sim
MCTruthBase
src
MCTruthSteppingActionTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MCTruthBase_MCTruthSteppingActionTool_h
6
#define MCTruthBase_MCTruthSteppingActionTool_h
7
8
// Local includes
9
#include "
MCTruthSteppingAction.h
"
10
11
// Infrastructure includes
12
#include "
G4AtlasTools/UserActionToolBase.h
"
13
14
// STL includes
15
#include <string>
16
#include <map>
17
18
namespace
G4UA
19
{
20
26
class
MCTruthSteppingActionTool
:
public
UserActionToolBase
<MCTruthSteppingAction>
27
{
28
29
public
:
30
32
MCTruthSteppingActionTool
(
const
std::string&
type
,
const
std::string& name,
33
const
IInterface* parent);
34
36
virtual
StatusCode
initialize
()
override
final
;
37
38
protected
:
39
41
virtual
std::unique_ptr<MCTruthSteppingAction>
42
makeAndFillAction
(
G4AtlasUserActions
&)
override
final
;
43
45
StatusCode
BeginOfAthenaEvent
(
HitCollectionMap
&)
override
;
47
StatusCode
EndOfAthenaEvent
(
HitCollectionMap
&)
override
;
48
49
private
:
50
52
std::map<std::string, std::string>
m_volumeCollectionMap
;
53
55
int
m_secondarySavingLevel
;
56
58
int
m_subDetVolLevel
;
59
60
};
// class MCTruthSteppingActionTool
61
62
}
// namespace G4UA
63
64
#endif
MCTruthSteppingAction.h
UserActionToolBase.h
G4UA::MCTruthSteppingActionTool::makeAndFillAction
virtual std::unique_ptr< MCTruthSteppingAction > makeAndFillAction(G4AtlasUserActions &) override final
Setup the user action for current thread.
Definition
MCTruthSteppingActionTool.cxx:44
G4UA::MCTruthSteppingActionTool::m_secondarySavingLevel
int m_secondarySavingLevel
The saving level for secondaries.
Definition
MCTruthSteppingActionTool.h:55
G4UA::MCTruthSteppingActionTool::m_subDetVolLevel
int m_subDetVolLevel
The level in the G4 volume hierarchy at which we find the sub-detector.
Definition
MCTruthSteppingActionTool.h:58
G4UA::MCTruthSteppingActionTool::m_volumeCollectionMap
std::map< std::string, std::string > m_volumeCollectionMap
Map of volume name to output collection name.
Definition
MCTruthSteppingActionTool.h:52
G4UA::MCTruthSteppingActionTool::MCTruthSteppingActionTool
MCTruthSteppingActionTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
MCTruthSteppingActionTool.cxx:15
G4UA::MCTruthSteppingActionTool::initialize
virtual StatusCode initialize() override final
Initialize the tool.
Definition
MCTruthSteppingActionTool.cxx:34
G4UA::MCTruthSteppingActionTool::EndOfAthenaEvent
StatusCode EndOfAthenaEvent(HitCollectionMap &) override
Calls EndOfAthenaEvent.
Definition
MCTruthSteppingActionTool.cxx:64
G4UA::MCTruthSteppingActionTool::BeginOfAthenaEvent
StatusCode BeginOfAthenaEvent(HitCollectionMap &) override
Calls BeginOfAthenaEvent.
Definition
MCTruthSteppingActionTool.cxx:56
G4UA::UserActionToolBase< MCTruthSteppingAction >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
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