ATLAS Offline Software
HGTDCluster_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // EDM include(s):
7 // Local include(s):
9 
10 // rdoList
12  rdoListAcc("rdoList");
13 
14 
15 void xAOD::HGTDCluster_v1::setRDOlist(const std::vector<Identifier>& rdoList) {
16  std::vector<Identifier::value_type> rdos(rdoList.size());
17  for (std::size_t i(0); i < rdos.size(); ++i) {
18  rdos[i] = rdoList[i].get_compact();
19  }
20  rdoListAcc(*this) = rdos;
21 }
22 
23 const std::vector<Identifier> xAOD::HGTDCluster_v1::rdoList() const {
24  const std::vector<Identifier::value_type>& values = rdoListAcc(*this);
25  std::vector<Identifier> rdos(values.size());
26  for (std::size_t i(0); i < rdos.size(); ++i) {
27  rdos[i].set_literal(values[i]);
28  }
29  return rdos;
30 }
31 
32 
33 // totList
35  setToTlist)
HGTDCluster_v1.h
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
xAOD::HGTDCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: HGTDCluster_v1.cxx:15
xAOD::HGTDCluster_v1
Definition: HGTDCluster_v1.h:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
xAOD::HGTDCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: HGTDCluster_v1.cxx:23
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27