ATLAS Offline Software
Loading...
Searching...
No Matches
RootAuxDynReader.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ROOTAUXDYNREADER_H
6#define ROOTAUXDYNREADER_H
7
10
11#include <set>
12
14{
15public :
17 const SG::auxid_set_t& auxIDs() const;
18
19 bool addAuxID(const SG::auxid_t& id);
20
21 void addBytes(size_t bytes);
22
23 size_t getBytesRead() const;
24
25 void resetBytesRead();
26
27 virtual ~RootAuxDynReader() = default;
28
29protected:
30 // auxids that could be found in registry for attribute names from the file
32
33 // counter for bytes read
34 size_t m_bytesRead = 0;
35};
36
37
38
39inline void
41 m_bytesRead += bytes;
42}
43
44inline size_t
48
49inline void
53
54inline const SG::auxid_set_t&
56 return m_auxids;
57}
58
59inline bool
61 if( id != SG::null_auxid ) {
62 m_auxids.insert(id);
63 return true;
64 }
65 return false;
66}
67
68#endif
69
An auxiliary data store that holds data internally.
void addBytes(size_t bytes)
SG::auxid_set_t m_auxids
virtual ~RootAuxDynReader()=default
size_t getBytesRead() const
bool addAuxID(const SG::auxid_t &id)
const SG::auxid_set_t & auxIDs() const
Aux IDs of all the Aux attributes belonging to the Aux container being read.
A set of aux data identifiers.
Definition AuxTypes.h:47
static const auxid_t null_auxid
To signal no aux data item.
Definition AuxTypes.h:30
size_t auxid_t
Identifier for a particular aux data item.
Definition AuxTypes.h:27