ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODInDetMeasurement
xAODInDetMeasurement
versions
SpacePoint_v1.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XAODINDETMEASUREMENT_VERSION_SPACEPOINT_V1_H
6
#define XAODINDETMEASUREMENT_VERSION_SPACEPOINT_V1_H
7
8
#include "
AthContainers/AuxElement.h
"
9
#include "Identifier/Identifier.h"
10
#include "
EventPrimitives/EventPrimitives.h
"
11
#include "
xAODMeasurementBase/UncalibratedMeasurementContainer.h
"
12
#include "
xAODMeasurementBase/MeasurementDefs.h
"
13
#include "
xAODInDetMeasurement/ArrayFloat3.h
"
14
15
#include <array>
16
17
namespace
xAOD
{
18
19
class
SpacePoint_v1
:
public
SG::AuxElement
{
20
public
:
21
using
ConstVectorMap
= Eigen::Map<const Eigen::Matrix<float, 3, 1>>;
22
using
VectorMap
= Eigen::Map<Eigen::Matrix<float, 3, 1>>;
23
26
28
const
std::vector<DetectorIDHashType>&
elementIdList
()
const
;
29
31
ConstVectorMap
globalPosition
()
const
;
32
VectorMap
globalPosition
();
33
34
// radius
35
float
radius
()
const
;
36
38
float
varianceR
()
const
;
39
float
varianceZ
()
const
;
40
42
const
std::vector< const xAOD::UncalibratedMeasurement* >&
measurements
()
const
;
43
45
float
topHalfStripLength
()
const
;
46
float
bottomHalfStripLength
()
const
;
47
48
ConstVectorMap
topStripDirection
()
const
;
49
ConstVectorMap
bottomStripDirection
()
const
;
50
ConstVectorMap
stripCenterDistance
()
const
;
51
ConstVectorMap
topStripCenter
()
const
;
52
53
VectorMap
topStripDirection
();
54
VectorMap
bottomStripDirection
();
55
VectorMap
stripCenterDistance
();
56
VectorMap
topStripCenter
();
57
58
float
x
()
const
;
59
float
y
()
const
;
60
float
z
()
const
;
61
62
// Needed for compliance with the external spacepoint contract
63
// See https://github.com/acts-project/acts/pull/2829
64
std::optional<float>
t
()
const
{
return
std::nullopt; }
65
67
70
72
void
setElementIdList
(std::vector<DetectorIDHashType>&& idHash);
73
75
void
setRadius
(
float
);
76
78
void
setVarianceR
(
float
);
79
void
setVarianceZ
(
float
);
80
82
void
setMeasurements
(std::vector< const xAOD::UncalibratedMeasurement* > && value );
83
84
void
setTopHalfStripLength
(
float
);
85
void
setBottomHalfStripLength
(
float
);
86
88
89
void
setSpacePoint
(
DetectorIDHashType
idHash,
90
const
Eigen::Matrix<float,3,1>& globPos,
91
float
cov_r,
float
cov_z,
92
std::vector< const xAOD::UncalibratedMeasurement* >&& measurementIndexes);
93
94
void
setSpacePoint
(std::vector<DetectorIDHashType>&& idHashes,
95
const
Eigen::Matrix<float,3,1>& globPos,
96
float
cov_r,
float
cov_z,
97
std::vector< const xAOD::UncalibratedMeasurement* >&& measurementIndexes,
98
float
topHalfStripLength
,
99
float
bottomHalfStripLength
,
100
const
Eigen::Matrix<float,3,1>&
topStripDirection
,
101
const
Eigen::Matrix<float,3,1>&
bottomStripDirection
,
102
const
Eigen::Matrix<float,3,1>&
stripCenterDistance
,
103
const
Eigen::Matrix<float,3,1>&
topStripCenter
);
104
};
105
106
}
107
108
#endif
ArrayFloat3.h
AuxElement.h
Base class for elements of a container that can have aux data.
EventPrimitives.h
MeasurementDefs.h
UncalibratedMeasurementContainer.h
xAOD::SpacePoint_v1
Definition
SpacePoint_v1.h:19
xAOD::SpacePoint_v1::setTopHalfStripLength
void setTopHalfStripLength(float)
xAOD::SpacePoint_v1::stripCenterDistance
ConstVectorMap stripCenterDistance() const
Definition
SpacePoint_v1.cxx:93
xAOD::SpacePoint_v1::setMeasurements
void setMeasurements(std::vector< const xAOD::UncalibratedMeasurement * > &&value)
Sets the index of the measurements.
xAOD::SpacePoint_v1::varianceZ
float varianceZ() const
xAOD::SpacePoint_v1::bottomHalfStripLength
float bottomHalfStripLength() const
xAOD::SpacePoint_v1::elementIdList
const std::vector< DetectorIDHashType > & elementIdList() const
Returns the IdentifierHash of the spacepoint (corresponds to the detector element IdentifierHash).
Definition
SpacePoint_v1.cxx:14
xAOD::SpacePoint_v1::varianceR
float varianceR() const
Returns the variances.
xAOD::SpacePoint_v1::z
float z() const
xAOD::SpacePoint_v1::setVarianceZ
void setVarianceZ(float)
xAOD::SpacePoint_v1::setSpacePoint
void setSpacePoint(DetectorIDHashType idHash, const Eigen::Matrix< float, 3, 1 > &globPos, float cov_r, float cov_z, std::vector< const xAOD::UncalibratedMeasurement * > &&measurementIndexes)
Definition
SpacePoint_v1.cxx:123
xAOD::SpacePoint_v1::bottomStripDirection
ConstVectorMap bottomStripDirection() const
Definition
SpacePoint_v1.cxx:88
xAOD::SpacePoint_v1::t
std::optional< float > t() const
Definition
SpacePoint_v1.h:64
xAOD::SpacePoint_v1::topStripCenter
ConstVectorMap topStripCenter() const
Definition
SpacePoint_v1.cxx:98
xAOD::SpacePoint_v1::measurements
const std::vector< const xAOD::UncalibratedMeasurement * > & measurements() const
Returns the index of the measurements.
xAOD::SpacePoint_v1::setBottomHalfStripLength
void setBottomHalfStripLength(float)
xAOD::SpacePoint_v1::VectorMap
Eigen::Map< Eigen::Matrix< float, 3, 1 > > VectorMap
Definition
SpacePoint_v1.h:22
xAOD::SpacePoint_v1::ConstVectorMap
Eigen::Map< const Eigen::Matrix< float, 3, 1 > > ConstVectorMap
Definition
SpacePoint_v1.h:21
xAOD::SpacePoint_v1::setRadius
void setRadius(float)
Set the radius.
xAOD::SpacePoint_v1::y
float y() const
xAOD::SpacePoint_v1::setElementIdList
void setElementIdList(std::vector< DetectorIDHashType > &&idHash)
Sets the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash).
Definition
SpacePoint_v1.cxx:18
xAOD::SpacePoint_v1::setVarianceR
void setVarianceR(float)
Sets the variances.
xAOD::SpacePoint_v1::globalPosition
ConstVectorMap globalPosition() const
Returns the global position of the pixel cluster.
Definition
SpacePoint_v1.cxx:25
xAOD::SpacePoint_v1::topHalfStripLength
float topHalfStripLength() const
Return details.
xAOD::SpacePoint_v1::x
float x() const
xAOD::SpacePoint_v1::topStripDirection
ConstVectorMap topStripDirection() const
Definition
SpacePoint_v1.cxx:83
xAOD::SpacePoint_v1::radius
float radius() const
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::DetectorIDHashType
unsigned int DetectorIDHashType
@ detector ID element hash
Definition
MeasurementDefs.h:48
Generated on
for ATLAS Offline Software by
1.17.0