ATLAS Offline Software
Loading...
Searching...
No Matches
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
15void 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) = std::move(rdos);
21}
22
23const 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)
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
static const SG::AuxElement::Accessor< std::vector< Identifier::value_type > > rdoListAcc("rdoList")
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
const std::vector< Identifier > rdoList() const
Returns the list of identifiers 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::AuxElement::Accessor< std::vector< float > > values("thrValues")
This is a convenience function for accessing the threshold pattern part of the RoI.