ATLAS Offline Software
Loading...
Searching...
No Matches
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):
7// Local include(s):
10
12 "globalPosition");
15
20
25
26
27void xAOD::PixelCluster_v1::setRDOlist(std::vector<Identifier::value_type>&& rdoList) {
28 s_rdoListAcc.set(*this,rdoList);
29}
30void xAOD::PixelCluster_v1::setRDOlist(std::span<Identifier::value_type> rdoList) {
31 s_rdoListAcc.set(*this,rdoList);
32}
33
34//Custom setter for identifier inputs
35void 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
45
46void xAOD::PixelCluster_v1::setToTlist(const std::vector<int>& tots) {
47 s_totListAcc.set(*this,tots);
48}
49
50void xAOD::PixelCluster_v1::setToTlist(std::span<int> tots) {
51 s_totListAcc.set(*this,tots);
52}
55
56void xAOD::PixelCluster_v1::setChargelist(const std::vector<float>& charges) {
57 s_chargeListAcc.set(*this,charges);
58}
59
60void xAOD::PixelCluster_v1::setChargelist(std::span<float> charges) {
61 s_chargeListAcc.set(*this,charges);
62}
63
65 setTotalCharge)
66
68
70
72 int channelsInEta) {
73 static const SG::Accessor<int> chanPhiAcc("channelsInPhi");
74 chanPhiAcc(*this) = channelsInPhi;
75 static const SG::Accessor<int> chanEtaAcc("channelsInEta");
76 chanEtaAcc(*this) = channelsInEta;
77}
78
79AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(xAOD::PixelCluster_v1, float, widthInEta,
80 setWidthInEta)
81
82
83
84
85
86AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(xAOD::PixelCluster_v1, float, energyLoss,
87 setEnergyLoss)
88
89AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(xAOD::PixelCluster_v1, int, lvl1a,
90 setLVL1A)
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
static const SG::Accessor< xAOD::ArrayFloat3 > globalPosAcc("globalPosition")
Helper class to provide type-safe access to aux data.
Class describing HGTD clusters.
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList() const
Returns the list of identifiers of the channels building the cluster.
static const SG::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
static const SG::Accessor< SG::JaggedVecElt< int > > s_totListAcc
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
static const SG::Accessor< SG::JaggedVecElt< float > > s_chargeListAcc
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
static AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(EmTauRoI_v1, uint32_t, roiWord, setRoIWord) uint32_t EmTauRoI_v1 const SG::Accessor< std::vector< float > > values("thrValues")
This is a convenience function for accessing the threshold pattern part of the RoI.
Eigen::Map< MeasVector< N > > VectorMap
Eigen::Map< const MeasVector< N > > ConstVectorMap