ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODInDetMeasurement
Root
PixelCluster_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// EDM include(s):
6
#include "
xAODCore/AuxStoreAccessorMacros.h
"
7
// Local include(s):
8
#include "
xAODInDetMeasurement/versions/PixelCluster_v1.h
"
9
#include "
xAODInDetMeasurement/ArrayFloat3.h
"
10
11
static
const
SG::AuxElement::Accessor<xAOD::ArrayFloat3>
globalPosAcc
(
12
"globalPosition"
);
13
const
SG::AuxElement::Accessor<SG::JaggedVecElt<Identifier::value_type> >
14
xAOD::PixelCluster_v1::s_rdoListAcc
(
"rdoList"
);
15
16
xAOD::ConstVectorMap<3>
xAOD::PixelCluster_v1::globalPosition
()
const
{
17
const
auto
&
values
=
globalPosAcc
(*
this
);
18
return
ConstVectorMap<3>
{
values
.data()};
19
}
20
21
xAOD::VectorMap<3>
xAOD::PixelCluster_v1::globalPosition
() {
22
auto
&
values
=
globalPosAcc
(*
this
);
23
return
VectorMap<3>
{
values
.data()};
24
}
25
26
27
void
xAOD::PixelCluster_v1::setRDOlist
(std::vector<Identifier::value_type>&&
rdoList
) {
28
s_rdoListAcc
.set(*
this
,
rdoList
);
29
}
30
void
xAOD::PixelCluster_v1::setRDOlist
(std::span<Identifier::value_type>
rdoList
) {
31
s_rdoListAcc
.set(*
this
,
rdoList
);
32
}
33
34
//Custom setter for identifier inputs
35
void
xAOD::PixelCluster_v1::setRDOlist
(
const
std::vector<Identifier>&
rdoList
) {
36
std::vector<Identifier::value_type> rdos(
rdoList
.size());
37
for
(std::size_t i(0); i < rdos.size(); ++i) {
38
rdos[i] =
rdoList
[i].get_compact();
39
}
40
s_rdoListAcc
.set(*
this
,rdos);
41
}
42
43
const
SG::AuxElement::Accessor<SG::JaggedVecElt<int> >
44
xAOD::PixelCluster_v1::s_totListAcc
(
"totList"
);
45
46
void
xAOD::PixelCluster_v1::setToTlist
(
const
std::vector<int>& tots) {
47
s_totListAcc
.set(*
this
,tots);
48
}
49
50
void
xAOD::PixelCluster_v1::setToTlist
(std::span<int> tots) {
51
s_totListAcc
.set(*
this
,tots);
52
}
53
const
SG::AuxElement::Accessor<SG::JaggedVecElt<float> >
54
xAOD::PixelCluster_v1::s_chargeListAcc
(
"chargeList"
);
55
56
void
xAOD::PixelCluster_v1::setChargelist
(
const
std::vector<float>& charges) {
57
s_chargeListAcc
.set(*
this
,charges);
58
}
59
60
void
xAOD::PixelCluster_v1::setChargelist
(std::span<float> charges) {
61
s_chargeListAcc
.set(*
this
,charges);
62
}
63
64
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
xAOD::PixelCluster_v1
,
float
, totalCharge,
65
setTotalCharge)
66
67
AUXSTORE_PRIMITIVE_GETTER
(
xAOD::PixelCluster_v1
,
int
, channelsInPhi)
68
69
AUXSTORE_PRIMITIVE_GETTER
(
xAOD::PixelCluster_v1
,
int
, channelsInEta)
70
71
void
xAOD::PixelCluster_v1::setChannelsInPhiEta
(
int
channelsInPhi,
72
int
channelsInEta) {
73
static
const
SG::AuxElement::Accessor<int> chanPhiAcc(
"channelsInPhi"
);
74
chanPhiAcc(*
this
) = channelsInPhi;
75
static
const
SG::AuxElement::Accessor<int> chanEtaAcc(
"channelsInEta"
);
76
chanEtaAcc(*
this
) = channelsInEta;
77
}
78
79
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(xAOD::PixelCluster_v1,
float
, widthInEta,
80
setWidthInEta)
81
82
83
84
85
86
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(xAOD::PixelCluster_v1,
float
, energyLoss,
87
setEnergyLoss)
88
89
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(xAOD::PixelCluster_v1,
int
, lvl1a,
90
setLVL1A)
ArrayFloat3.h
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_GETTER
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
Definition
AuxStoreAccessorMacros.h:59
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
globalPosAcc
static const SG::AuxElement::Accessor< xAOD::ArrayFloat3 > globalPosAcc("globalPosition")
PixelCluster_v1.h
xAOD::PixelCluster_v1
Class describing HGTD clusters.
Definition
PixelCluster_v1.h:21
xAOD::PixelCluster_v1::rdoList
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition
PixelCluster_v1.h:150
xAOD::PixelCluster_v1::setChannelsInPhiEta
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
xAOD::PixelCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
Definition
PixelCluster_v1.cxx:16
xAOD::PixelCluster_v1::s_totListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc
Definition
PixelCluster_v1.h:114
xAOD::PixelCluster_v1::setChargelist
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
Definition
PixelCluster_v1.cxx:56
xAOD::PixelCluster_v1::setToTlist
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
Definition
PixelCluster_v1.cxx:46
xAOD::PixelCluster_v1::s_chargeListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > s_chargeListAcc
Definition
PixelCluster_v1.h:115
xAOD::PixelCluster_v1::s_rdoListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
Definition
PixelCluster_v1.h:113
xAOD::PixelCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition
PixelCluster_v1.cxx:35
xAOD::VectorMap
Eigen::Map< MeasVector< N > > VectorMap
Definition
MeasurementDefs.h:63
xAOD::values
static AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(EmTauRoI_v1, uint32_t, roiWord, setRoIWord) uint32_t EmTauRoI_v1 const SG::AuxElement::Accessor< std::vector< float > > values("thrValues")
This is a convenience function for accessing the threshold pattern part of the RoI.
xAOD::ConstVectorMap
Eigen::Map< const MeasVector< N > > ConstVectorMap
Definition
MeasurementDefs.h:65
Generated on
for ATLAS Offline Software by
1.17.0