ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsDataPreparation
src
details
PixelSpacePointFormationAlgBase.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSTRK_DATAPREPARATION_PIXELSPACEPOINTFORMATIONALG_H
6
#define ACTSTRK_DATAPREPARATION_PIXELSPACEPOINTFORMATIONALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
AthenaMonitoringKernel/GenericMonitoringTool.h
"
11
12
#include "
StoreGate/ReadHandleKey.h
"
13
#include "
StoreGate/WriteHandleKey.h
"
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
16
#include "
ActsToolInterfaces/IPixelSpacePointFormationTool.h
"
17
18
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
19
20
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
21
#include "
xAODInDetMeasurement/SpacePointContainer.h
"
22
#include "
xAODInDetMeasurement/SpacePointAuxContainer.h
"
23
24
#include <string>
25
26
#include "
src/Cache.h
"
27
28
namespace
ActsTrk
{
29
37
template
<
bool
useCache>
38
class
PixelSpacePointFormationAlgBase
:
public
AthReentrantAlgorithm
{
39
public
:
41
42
PixelSpacePointFormationAlgBase
(
const
std::string& name,
43
ISvcLocator* pSvcLocator);
44
virtual
~PixelSpacePointFormationAlgBase
() =
default
;
45
virtual
StatusCode
initialize
()
override
;
46
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
47
virtual
StatusCode
finalize
()
override
;
49
50
private
:
52
53
PixelSpacePointFormationAlgBase
() =
delete
;
54
PixelSpacePointFormationAlgBase
(
const
PixelSpacePointFormationAlgBase
&) =
delete
;
55
PixelSpacePointFormationAlgBase
&
operator=
(
const
PixelSpacePointFormationAlgBase
&) =
delete
;
57
59
60
SG::ReadHandleKey<xAOD::PixelClusterContainer>
m_pixelClusterContainerKey
{
this
,
"PixelClusters"
,
""
,
"name of the input pixel cluster container"
};
62
64
65
66
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_pixelDetEleCollKey
{
this
,
"PixelDetectorElements"
,
"ITkPixelDetectorElementCollection"
,
"Key of input SiDetectorElementCollection for Pixel"
};
68
70
71
SG::WriteHandleKey<xAOD::SpacePointContainer>
m_pixelSpacePointContainerKey
{
this
,
"PixelSpacePoints"
,
""
,
"name of the output pixel space point container"
};
73
75
76
77
ToolHandle<ActsTrk::IPixelSpacePointFormationTool>
m_spacePointMakerTool
{
this
,
"SpacePointFormationTool"
,
""
,
"Tool dedicated to the creation of pixel space points"
};
79
ToolHandle<GenericMonitoringTool>
m_monTool
{
this
,
"MonTool"
,
""
,
"Monitoring tool"
};
81
82
using
Cache_IDC
=
typename
Cache::Handles<xAOD::SpacePoint>::IDC
;
83
using
Cache_BackendUpdateHandleKey
=
typename
Cache::Handles<xAOD::SpacePoint>::BackendUpdateHandleKey
;
84
using
Cache_BackendUpdateHandle
=
typename
Cache::Handles<xAOD::SpacePoint>::BackendUpdateHandle
;
85
using
Cache_WriteHandleKey
=
typename
Cache::Handles<xAOD::SpacePoint>::WriteHandleKey
;
86
using
Cache_WriteHandle
=
typename
Cache::Handles<xAOD::SpacePoint>::WriteHandle
;
87
88
Cache_WriteHandleKey
m_SPCache
{
this
,
"SPCache"
,
""
};
89
Cache_BackendUpdateHandleKey
m_SPCacheBackend
{
this
,
"SPCacheBackend"
,
""
};
90
91
private
:
92
enum
EStat
{
93
kNClusters
,
94
kNSpacePoints
,
95
kNStat
96
};
97
98
mutable
std::array<std::atomic<unsigned int>,
kNStat
> m_stat
ATLAS_THREAD_SAFE
{};
99
};
100
101
}
102
103
#include "
PixelSpacePointFormationAlgBase.icc
"
104
105
#endif
// ACTSTRKSPACEPOINTFORMATION_PIXELSPACEPOINTFORMATIONALG_H
AthReentrantAlgorithm.h
Cache.h
PixelClusterContainer.h
SpacePointContainer.h
GenericMonitoringTool.h
IPixelSpacePointFormationTool.h
PixelSpacePointFormationAlgBase.icc
ReadCondHandleKey.h
SiDetectorElementCollection.h
SpacePointAuxContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ActsTrk::Cache::Handles::BackendUpdateHandle
SG::UpdateHandle< IDCBackend > BackendUpdateHandle
Definition
Cache.h:46
ActsTrk::Cache::Handles::BackendUpdateHandleKey
SG::UpdateHandleKey< IDCBackend > BackendUpdateHandleKey
Definition
Cache.h:45
ActsTrk::Cache::Handles::WriteHandle
SG::WriteHandle< IDC > WriteHandle
Definition
Cache.h:49
ActsTrk::Cache::Handles::IDC
IdentifiableContainer< CacheEntry< OT > > IDC
Definition
Cache.h:43
ActsTrk::Cache::Handles::WriteHandleKey
SG::WriteHandleKey< IDC > WriteHandleKey
Definition
Cache.h:48
ActsTrk::PixelSpacePointFormationAlgBase::m_pixelSpacePointContainerKey
SG::WriteHandleKey< xAOD::SpacePointContainer > m_pixelSpacePointContainerKey
Definition
PixelSpacePointFormationAlgBase.h:71
ActsTrk::PixelSpacePointFormationAlgBase::~PixelSpacePointFormationAlgBase
virtual ~PixelSpacePointFormationAlgBase()=default
ActsTrk::PixelSpacePointFormationAlgBase::PixelSpacePointFormationAlgBase
PixelSpacePointFormationAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
ActsTrk::PixelSpacePointFormationAlgBase::m_SPCacheBackend
Cache_BackendUpdateHandleKey m_SPCacheBackend
Definition
PixelSpacePointFormationAlgBase.h:89
ActsTrk::PixelSpacePointFormationAlgBase::m_spacePointMakerTool
ToolHandle< ActsTrk::IPixelSpacePointFormationTool > m_spacePointMakerTool
For space point formation.
Definition
PixelSpacePointFormationAlgBase.h:77
ActsTrk::PixelSpacePointFormationAlgBase::initialize
virtual StatusCode initialize() override
ActsTrk::PixelSpacePointFormationAlgBase::m_pixelClusterContainerKey
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_pixelClusterContainerKey
Definition
PixelSpacePointFormationAlgBase.h:60
ActsTrk::PixelSpacePointFormationAlgBase::Cache_IDC
typename Cache::Handles< xAOD::SpacePoint >::IDC Cache_IDC
Definition
PixelSpacePointFormationAlgBase.h:82
ActsTrk::PixelSpacePointFormationAlgBase::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
To get detector elements.
Definition
PixelSpacePointFormationAlgBase.h:66
ActsTrk::PixelSpacePointFormationAlgBase::operator=
PixelSpacePointFormationAlgBase & operator=(const PixelSpacePointFormationAlgBase &)=delete
ActsTrk::PixelSpacePointFormationAlgBase::finalize
virtual StatusCode finalize() override
ActsTrk::PixelSpacePointFormationAlgBase::m_SPCache
Cache_WriteHandleKey m_SPCache
Definition
PixelSpacePointFormationAlgBase.h:88
ActsTrk::PixelSpacePointFormationAlgBase::execute
virtual StatusCode execute(const EventContext &ctx) const override
ActsTrk::PixelSpacePointFormationAlgBase::Cache_WriteHandle
typename Cache::Handles< xAOD::SpacePoint >::WriteHandle Cache_WriteHandle
Definition
PixelSpacePointFormationAlgBase.h:86
ActsTrk::PixelSpacePointFormationAlgBase::Cache_WriteHandleKey
typename Cache::Handles< xAOD::SpacePoint >::WriteHandleKey Cache_WriteHandleKey
Definition
PixelSpacePointFormationAlgBase.h:85
ActsTrk::PixelSpacePointFormationAlgBase::Cache_BackendUpdateHandle
typename Cache::Handles< xAOD::SpacePoint >::BackendUpdateHandle Cache_BackendUpdateHandle
Definition
PixelSpacePointFormationAlgBase.h:84
ActsTrk::PixelSpacePointFormationAlgBase::EStat
EStat
Definition
PixelSpacePointFormationAlgBase.h:92
ActsTrk::PixelSpacePointFormationAlgBase::kNSpacePoints
@ kNSpacePoints
Definition
PixelSpacePointFormationAlgBase.h:94
ActsTrk::PixelSpacePointFormationAlgBase::kNStat
@ kNStat
Definition
PixelSpacePointFormationAlgBase.h:95
ActsTrk::PixelSpacePointFormationAlgBase::kNClusters
@ kNClusters
Definition
PixelSpacePointFormationAlgBase.h:93
ActsTrk::PixelSpacePointFormationAlgBase::Cache_BackendUpdateHandleKey
typename Cache::Handles< xAOD::SpacePoint >::BackendUpdateHandleKey Cache_BackendUpdateHandleKey
Definition
PixelSpacePointFormationAlgBase.h:83
ActsTrk::PixelSpacePointFormationAlgBase::ATLAS_THREAD_SAFE
std::array< std::atomic< unsigned int >, kNStat > m_stat ATLAS_THREAD_SAFE
Definition
PixelSpacePointFormationAlgBase.h:98
ActsTrk::PixelSpacePointFormationAlgBase::PixelSpacePointFormationAlgBase
PixelSpacePointFormationAlgBase()=delete
ActsTrk::PixelSpacePointFormationAlgBase::PixelSpacePointFormationAlgBase
PixelSpacePointFormationAlgBase(const PixelSpacePointFormationAlgBase &)=delete
ActsTrk::PixelSpacePointFormationAlgBase::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
For monitoring.
Definition
PixelSpacePointFormationAlgBase.h:79
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0