ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonG4
MuonSimHitSorting
src
MuonSimHitSortingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONSIMHITSORTING_MUONSIMHITSORTINGALG_H
5
#define MUONSIMHITSORTING_MUONSIMHITSORTINGALG_H
6
7
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
8
#include <
StoreGate/ReadHandleKeyArray.h
>
9
#include <
StoreGate/WriteHandleKey.h
>
10
#include <
xAODMuonSimHit/MuonSimHitContainer.h
>
11
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
12
13
class
MuonSimHitSortingAlg
:
public
AthReentrantAlgorithm
{
14
public
:
15
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
16
17
~MuonSimHitSortingAlg
() =
default
;
18
19
StatusCode
execute
(
const
EventContext& ctx)
const override
;
20
StatusCode
initialize
()
override
;
21
private
:
22
SG::ReadHandleKeyArray<xAOD::MuonSimHitContainer>
m_readKeys
{
this
,
"InContainers"
, {}};
23
SG::WriteHandleKey<xAOD::MuonSimHitContainer>
m_writeKey
{
this
,
"OutContainer"
,
""
};
24
25
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
26
Gaudi::Property<bool>
m_writeDeepCopy
{
this
,
"deepCopy"
,
false
,
27
"If set to true. A new xAOD container is created instead of a VIEW_ELEMENTS version"
};
28
Gaudi::Property<bool>
m_removeDuplicates
{
this
,
"removeDuplicates"
,
true
,
29
"If set to true. Duplcates of primary hits in the same sensitive detector are removed"
};
30
};
31
32
33
#endif
AthReentrantAlgorithm.h
IMuonIdHelperSvc.h
MuonSimHitContainer.h
ReadHandleKeyArray.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MuonSimHitSortingAlg
Definition
MuonSimHitSortingAlg.h:13
MuonSimHitSortingAlg::m_removeDuplicates
Gaudi::Property< bool > m_removeDuplicates
Definition
MuonSimHitSortingAlg.h:28
MuonSimHitSortingAlg::m_readKeys
SG::ReadHandleKeyArray< xAOD::MuonSimHitContainer > m_readKeys
Definition
MuonSimHitSortingAlg.h:22
MuonSimHitSortingAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
MuonSimHitSortingAlg.cxx:26
MuonSimHitSortingAlg::m_writeKey
SG::WriteHandleKey< xAOD::MuonSimHitContainer > m_writeKey
Definition
MuonSimHitSortingAlg.h:23
MuonSimHitSortingAlg::m_writeDeepCopy
Gaudi::Property< bool > m_writeDeepCopy
Definition
MuonSimHitSortingAlg.h:26
MuonSimHitSortingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MuonSimHitSortingAlg.h:25
MuonSimHitSortingAlg::~MuonSimHitSortingAlg
~MuonSimHitSortingAlg()=default
MuonSimHitSortingAlg::initialize
StatusCode initialize() override
Definition
MuonSimHitSortingAlg.cxx:16
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0