62 std::vector<size_t> returnMultiplicities;
63 const auto& theMultiplicities =
getList(
"legMultiplicities");
64 if( !theMultiplicities.empty() ) {
65 returnMultiplicities.reserve(theMultiplicities.size());
66 for(
auto& m : theMultiplicities ) {
67 returnMultiplicities.push_back( m.getValue<
size_t>() );
70 return returnMultiplicities;
73std::vector<std::string>
77 std::vector<std::string> thrV;
78 const auto & thrs =
getList(
"l1thresholds");
80 thrV.reserve(thrs.size());
81 for(
auto & thr : thrs ) {
82 thrV.emplace_back( thr.getValue<std::string>() );
89std::vector<std::string>
93 std::vector<std::string> strlist;
96 strlist.reserve(
streams.size());
97 for(
auto & stream :
streams ) {
98 strlist.emplace_back( stream.getValue<std::string>() );
105std::vector<std::string>
109 std::vector<std::string> grouplist;
112 grouplist.reserve(
groups.size());
113 for(
auto & group :
groups ) {
114 if (group.hasAttribute(
"name")) {
115 grouplist.emplace_back( group[
"name"] );
116 }
else if (group.isValue()) {
117 grouplist.emplace_back( group.getValue<std::string>() );
125std::vector<std::string>
129 std::vector<std::string> seqlist;
130 const auto & seqs =
getList(
"sequencers");
131 if( !seqs.empty() ) {
132 seqlist.reserve(seqs.size());
133 for(
auto & seq : seqs ) {
134 seqlist.emplace_back( seq.getValue<std::string>() );
static const Attributes_t empty
std::vector< std::string > l1thresholds() const
Accessor to the l1 thresholds.
std::vector< std::string > sequencers() const
Accessor to the sequencers this chain belongs to.
std::vector< std::string > groups() const
Accessor to the groups this chain belongs to.
const std::string & l1item() const
Accessor to the seeding L1 item.
std::vector< size_t > legMultiplicities() const
Accessor to the chains multiplicitiy requirements for each of its legs.
void update() override
Update the internal data after modification of the data object.
unsigned int counter() const
Accessor to the chain counter.
virtual std::string className() const override
A string that is the name of the class.
std::vector< std::string > streams() const
Accessor to the connected output streams.
unsigned int namehash() const
Accessor to the chain name hash.
virtual const std::string & name() const final
std::vector< DataStructure > getList(const std::string &pathToChild, bool ignoreIfMissing=false) const
Access to array structure.
bool isInitialized() const
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
T getAttribute(const std::string &key, bool ignoreIfMissing=false, const T &def=T()) const
Access to simple attribute.