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):
9
10static const SG::AuxElement::Accessor<std::array<float, 3> > globalPosAcc(
11 "globalPosition");
12const SG::AuxElement::Accessor<SG::JaggedVecElt<Identifier::value_type> >
14
19
24
25
26void xAOD::PixelCluster_v1::setRDOlist(std::vector<Identifier::value_type>&& rdoList) {
27 s_rdoListAcc.set(*this,rdoList);
28}
29void xAOD::PixelCluster_v1::setRDOlist(std::span<Identifier::value_type> rdoList) {
30 s_rdoListAcc.set(*this,rdoList);
31}
32
33//Custom setter for identifier inputs
34void xAOD::PixelCluster_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
42const SG::AuxElement::Accessor<SG::JaggedVecElt<int> >
44
45void xAOD::PixelCluster_v1::setToTlist(const std::vector<int>& tots) {
46 s_totListAcc.set(*this,tots);
47}
48
49void xAOD::PixelCluster_v1::setToTlist(std::span<int> tots) {
50 s_totListAcc.set(*this,tots);
51}
52const SG::AuxElement::Accessor<SG::JaggedVecElt<float> >
54
55void xAOD::PixelCluster_v1::setChargelist(const std::vector<float>& charges) {
56 s_chargeListAcc.set(*this,charges);
57}
58
59void xAOD::PixelCluster_v1::setChargelist(std::span<float> charges) {
60 s_chargeListAcc.set(*this,charges);
61}
62
64
66
68 int channelsInEta) {
69 static const SG::AuxElement::Accessor<int> chanPhiAcc("channelsInPhi");
70 chanPhiAcc(*this) = channelsInPhi;
71 static const SG::AuxElement::Accessor<int> chanEtaAcc("channelsInEta");
72 chanEtaAcc(*this) = channelsInEta;
73}
74
76 setWidthInEta)
77
78
79
80
81
83 setEnergyLoss)
84
86 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::AuxElement::Accessor< std::array< float, 3 > > globalPosAcc("globalPosition")
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.
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
int channelsInPhi() const
Returns 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::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
int channelsInEta() const
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
PixelCluster_v1()=default
Default constructor.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > s_chargeListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Eigen::Map< MeasVector< N > > VectorMap
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.
Eigen::Map< const MeasVector< N > > ConstVectorMap