ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODInDetMeasurement
Root
StripCluster_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/StripCluster_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::StripCluster_v1::s_rdoListAcc
(
"rdoList"
);
15
16
xAOD::ConstVectorMap<3>
xAOD::StripCluster_v1::globalPosition
()
const
{
17
const
auto
&
values
=
globalPosAcc
(*
this
);
18
return
ConstVectorMap<3>
{
values
.data()};
19
}
20
21
xAOD::VectorMap<3>
xAOD::StripCluster_v1::globalPosition
() {
22
auto
&
values
=
globalPosAcc
(*
this
);
23
return
VectorMap<3>
{
values
.data()};
24
}
25
26
void
xAOD::StripCluster_v1::setRDOlist
(std::vector<Identifier::value_type>&&
rdoList
) {
27
s_rdoListAcc
.set(*
this
,
rdoList
);
28
}
29
void
xAOD::StripCluster_v1::setRDOlist
(std::span<Identifier::value_type>
rdoList
) {
30
s_rdoListAcc
.set(*
this
,
rdoList
);
31
}
32
33
//Custom setter for identifier inputs
34
void
xAOD::StripCluster_v1::setRDOlist
(
const
std::vector<Identifier>&
rdoList
) {
35
std::vector<Identifier::value_type> rdos(
rdoList
.size());
36
for
(std::size_t i(0); i < rdos.size(); ++i) {
37
rdos[i] =
rdoList
[i].get_compact();
38
}
39
s_rdoListAcc
.set(*
this
,rdos);
40
}
41
42
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
xAOD::StripCluster_v1
,
int
, channelsInPhi,
43
setChannelsInPhi)
ArrayFloat3.h
AuxStoreAccessorMacros.h
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")
globalPosAcc
static const SG::AuxElement::Accessor< xAOD::ArrayFloat3 > globalPosAcc("globalPosition")
StripCluster_v1.h
xAOD::StripCluster_v1
Class describing strip clusters.
Definition
StripCluster_v1.h:19
xAOD::StripCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the strip cluster.
Definition
StripCluster_v1.cxx:16
xAOD::StripCluster_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
StripCluster_v1.h:74
xAOD::StripCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition
StripCluster_v1.cxx:34
xAOD::StripCluster_v1::s_rdoListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
Definition
StripCluster_v1.h:68
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