ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetMeasurementUtilities
src
InDetToXAODSpacePointConversion.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef INDETTOXAOD_SPACEPOINT_CONVERSION_H
6
#define INDETTOXAOD_SPACEPOINT_CONVERSION_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
10
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
11
#include "
xAODInDetMeasurement/PixelClusterAuxContainer.h
"
12
13
#include "
xAODInDetMeasurement/StripClusterContainer.h
"
14
#include "
xAODInDetMeasurement/StripClusterAuxContainer.h
"
15
16
#include "
xAODInDetMeasurement/SpacePointContainer.h
"
17
#include "
xAODInDetMeasurement/SpacePointAuxContainer.h
"
18
19
#include "
TrkSpacePoint/SpacePointContainer.h
"
20
#include "
TrkSpacePoint/SpacePointOverlapCollection.h
"
21
22
#include "
InDetIdentifier/PixelID.h
"
23
#include "
InDetIdentifier/SCT_ID.h
"
24
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
25
26
#include <unordered_map>
27
28
namespace
InDet
{
29
30
class
InDetToXAODSpacePointConversion
:
31
public
AthReentrantAlgorithm
{
32
public
:
34
InDetToXAODSpacePointConversion
(
const
std::string &name, ISvcLocator *pSvcLocator);
35
36
//@name Usual algorithm methods
38
virtual
StatusCode
initialize
()
override
;
39
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
41
42
private
:
43
StatusCode
convertPixel
(
const
EventContext& ctx,
44
xAOD::PixelClusterContainer
* cluster_xaod_container)
const
;
45
StatusCode
convertStrip
(
const
EventContext& ctx,
46
xAOD::StripClusterContainer
* cluster_xaod_container,
47
std::unordered_map<Identifier, std::size_t>& mapClusters)
const
;
48
StatusCode
convertStripOverlap
(
const
EventContext& ctx,
49
xAOD::StripClusterContainer
* cluster_xaod_container,
50
std::unordered_map<Identifier, std::size_t>& mapClusters)
const
;
51
52
private
:
53
SG::ReadHandleKey< ::SpacePointContainer >
m_inSpacepointsPixel
{
this
,
"InputPixelSpacePointsName"
,
"ITkPixelSpacePoints"
,
54
"Input Pixel space points container"
};
55
SG::ReadHandleKey< ::SpacePointContainer >
m_inSpacepointsStrip
{
this
,
"InputStripSpacePointsName"
,
"ITkStripSpacePoints"
,
56
"Input Strip space points container"
};
57
SG::ReadHandleKey< ::SpacePointOverlapCollection >
m_inSpacepointsOverlap
{
this
,
"InputStripOverlapSpacePointsName"
,
"ITkOverlapSpacePoints"
,
58
"Input Strip overlap space points container"
};
59
60
SG::WriteHandleKey< xAOD::PixelClusterContainer >
m_outClustersPixel
{
this
,
"OutputPixelClustersName"
,
"ITkPixelClusters"
,
61
"Output Pixel cluster container"
};
62
SG::WriteHandleKey< xAOD::StripClusterContainer >
m_outClustersStrip
{
this
,
"OutputStripClustersName"
,
"ITkStripClusters"
,
63
"Output Strip cluster container"
};
64
65
SG::WriteHandleKey< xAOD::SpacePointContainer >
m_outSpacepointsPixel
{
this
,
"OutputPixelSpacePointsName"
,
"ITkPixelSpacePoints"
,
66
"Output Pixel space points container"
};
67
SG::WriteHandleKey< xAOD::SpacePointContainer >
m_outSpacepointsStrip
{
this
,
"OutputStripSpacePointsName"
,
"ITkStripSpacePoints"
,
68
"Output Strip space points container"
};
69
SG::WriteHandleKey< xAOD::SpacePointContainer >
m_outSpacepointsOverlap
{
this
,
"OutputStripOverlapSpacePointsName"
,
"ITkStripOverlapSpacePoints"
,
70
"Output Strip Overlap space points container"
};
71
72
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_pixelDetEleCollKey
{
this
,
"PixelDetEleCollKey"
,
"ITkPixelDetectorElementCollection"
,
"Key of SiDetectorElementCollection for Pixel"
};
73
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_stripDetEleCollKey
{
this
,
"StripDetEleCollKey"
,
"ITkStripDetectorElementCollection"
,
"Key of SiDetectorElementCollection for Strip"
};
74
75
Gaudi::Property<bool>
m_convertClusters
{
this
,
"ConvertClusters"
,
false
};
76
Gaudi::Property<bool>
m_processPixel
{
this
,
"ProcessPixel"
,
true
};
77
Gaudi::Property<bool>
m_processStrip
{
this
,
"ProcessStrip"
,
true
};
78
79
const
PixelID
*
m_pixelID
{
nullptr
};
80
const
SCT_ID
*
m_stripID
{
nullptr
};
81
};
82
83
}
84
85
#endif
86
AthReentrantAlgorithm.h
PixelClusterContainer.h
SpacePointContainer.h
PixelClusterAuxContainer.h
PixelID.h
This is an Identifier helper class for the Pixel subdetector.
SCT_ID.h
This is an Identifier helper class for the SCT subdetector.
SiDetectorElementCollection.h
SpacePointAuxContainer.h
SpacePointOverlapCollection.h
StripClusterAuxContainer.h
StripClusterContainer.h
SpacePointContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
InDet::InDetToXAODSpacePointConversion::convertPixel
StatusCode convertPixel(const EventContext &ctx, xAOD::PixelClusterContainer *cluster_xaod_container) const
Definition
InDetToXAODSpacePointConversion.cxx:94
InDet::InDetToXAODSpacePointConversion::m_pixelID
const PixelID * m_pixelID
Definition
InDetToXAODSpacePointConversion.h:79
InDet::InDetToXAODSpacePointConversion::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
InDetToXAODSpacePointConversion.cxx:48
InDet::InDetToXAODSpacePointConversion::m_outSpacepointsPixel
SG::WriteHandleKey< xAOD::SpacePointContainer > m_outSpacepointsPixel
Definition
InDetToXAODSpacePointConversion.h:65
InDet::InDetToXAODSpacePointConversion::m_inSpacepointsPixel
SG::ReadHandleKey< ::SpacePointContainer > m_inSpacepointsPixel
Definition
InDetToXAODSpacePointConversion.h:53
InDet::InDetToXAODSpacePointConversion::initialize
virtual StatusCode initialize() override
Definition
InDetToXAODSpacePointConversion.cxx:22
InDet::InDetToXAODSpacePointConversion::InDetToXAODSpacePointConversion
InDetToXAODSpacePointConversion(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
InDetToXAODSpacePointConversion.cxx:17
InDet::InDetToXAODSpacePointConversion::m_processStrip
Gaudi::Property< bool > m_processStrip
Definition
InDetToXAODSpacePointConversion.h:77
InDet::InDetToXAODSpacePointConversion::m_outClustersPixel
SG::WriteHandleKey< xAOD::PixelClusterContainer > m_outClustersPixel
Definition
InDetToXAODSpacePointConversion.h:60
InDet::InDetToXAODSpacePointConversion::m_processPixel
Gaudi::Property< bool > m_processPixel
Definition
InDetToXAODSpacePointConversion.h:76
InDet::InDetToXAODSpacePointConversion::m_outSpacepointsOverlap
SG::WriteHandleKey< xAOD::SpacePointContainer > m_outSpacepointsOverlap
Definition
InDetToXAODSpacePointConversion.h:69
InDet::InDetToXAODSpacePointConversion::convertStrip
StatusCode convertStrip(const EventContext &ctx, xAOD::StripClusterContainer *cluster_xaod_container, std::unordered_map< Identifier, std::size_t > &mapClusters) const
Definition
InDetToXAODSpacePointConversion.cxx:169
InDet::InDetToXAODSpacePointConversion::m_convertClusters
Gaudi::Property< bool > m_convertClusters
Definition
InDetToXAODSpacePointConversion.h:75
InDet::InDetToXAODSpacePointConversion::m_inSpacepointsStrip
SG::ReadHandleKey< ::SpacePointContainer > m_inSpacepointsStrip
Definition
InDetToXAODSpacePointConversion.h:55
InDet::InDetToXAODSpacePointConversion::m_stripID
const SCT_ID * m_stripID
Definition
InDetToXAODSpacePointConversion.h:80
InDet::InDetToXAODSpacePointConversion::convertStripOverlap
StatusCode convertStripOverlap(const EventContext &ctx, xAOD::StripClusterContainer *cluster_xaod_container, std::unordered_map< Identifier, std::size_t > &mapClusters) const
Definition
InDetToXAODSpacePointConversion.cxx:264
InDet::InDetToXAODSpacePointConversion::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition
InDetToXAODSpacePointConversion.h:72
InDet::InDetToXAODSpacePointConversion::m_inSpacepointsOverlap
SG::ReadHandleKey< ::SpacePointOverlapCollection > m_inSpacepointsOverlap
Definition
InDetToXAODSpacePointConversion.h:57
InDet::InDetToXAODSpacePointConversion::m_outClustersStrip
SG::WriteHandleKey< xAOD::StripClusterContainer > m_outClustersStrip
Definition
InDetToXAODSpacePointConversion.h:62
InDet::InDetToXAODSpacePointConversion::m_outSpacepointsStrip
SG::WriteHandleKey< xAOD::SpacePointContainer > m_outSpacepointsStrip
Definition
InDetToXAODSpacePointConversion.h:67
InDet::InDetToXAODSpacePointConversion::m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
Definition
InDetToXAODSpacePointConversion.h:73
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
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
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
xAOD::StripClusterContainer
StripClusterContainer_v1 StripClusterContainer
Define the version of the strip cluster container.
Definition
StripClusterContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0