|
ATLAS Offline Software
|
#include <NSWMMTPRDOAuxContainer_v1.h>
|
| NSWMMTPRDOAuxContainer_v1 () |
| Default constructor. More...
|
|
virtual const void * | getData (SG::auxid_t auxid) const=0 |
| Pick up the const version from the base class. More...
|
|
virtual const IAuxTypeVector * | linkedVector (SG::auxid_t) const |
| Return interface for a linked variable. More...
|
|
virtual bool | insertMove (size_t pos, IAuxStore &other, const SG::auxid_set_t &ignore=SG::auxid_set_t())=0 |
| Move all elements from other to this store. More...
|
|
template<typename T , typename ALLOC > |
auxid_t | getAuxID (const std::string &name, std::vector< T, ALLOC > &, SG::AuxVarFlags flags=SG::AuxVarFlags::None, const SG::auxid_t linkedVariable=SG::null_auxid) |
| Get the auxiliary ID for one of the persistent variables. More...
|
|
template<typename T > |
auxid_t | getAuxID (const std::string &name, SG::PackedContainer< T > &, SG::AuxVarFlags flags=SG::AuxVarFlags::None, const SG::auxid_t linkedVariable=SG::null_auxid) |
| Get the auxiliary ID for one of the persistent variables. More...
|
|
template<typename T , typename ALLOC > |
void | regAuxVar (auxid_t auxid, const std::string &name, std::vector< T, ALLOC > &vec) |
| Register one of the persistent variables internally. More...
|
|
template<typename T > |
void | regAuxVar (auxid_t auxid, const std::string &name, SG::PackedContainer< T > &vec) |
| Register one of the persistent variables internally. More...
|
|
|
typedef AthContainers_detail::mutex | mutex_t |
| Mutex for multithread synchronization. More...
|
|
typedef AthContainers_detail::lock_guard< mutex_t > | guard_t |
|
Definition at line 18 of file NSWMMTPRDOAuxContainer_v1.h.
◆ auxid_set_t
◆ auxid_t
◆ AuxVariable_t
template<class T , class ALLOC = std::allocator<T>>
◆ guard_t
◆ LinkedVariable_t
template<class T , class ALLOC = std::allocator<T>>
◆ mutex_t
◆ AuxStoreType
Type of the auxiliary store.
In the xAOD EDM we use auxiliary store objects in some cases to describe a single object, and in most cases to describe a container of objects. This enumeration declares which type the object implementing this interface is.
Enumerator |
---|
AST_ObjectStore | The store describes a single object.
|
AST_ContainerStore | The store describes a container.
|
Definition at line 66 of file IAuxStoreHolder.h.
◆ NSWMMTPRDOAuxContainer_v1()
xAOD::NSWMMTPRDOAuxContainer_v1::NSWMMTPRDOAuxContainer_v1 |
( |
| ) |
|
◆ clearDecorations()
bool xAOD::AuxContainerBase::clearDecorations |
( |
| ) |
|
|
overridevirtualinherited |
◆ getAuxID() [1/2]
Get the auxiliary ID for one of the persistent variables.
◆ getAuxID() [2/2]
template<typename T , typename ALLOC >
Get the auxiliary ID for one of the persistent variables.
◆ getAuxIDs()
◆ getData() [1/3]
const void * xAOD::AuxContainerBase::getData |
( |
auxid_t |
auxid | ) |
const |
|
overridevirtualinherited |
◆ getData() [2/3]
void * xAOD::AuxContainerBase::getData |
( |
auxid_t |
auxid, |
|
|
size_t |
size, |
|
|
size_t |
capacity |
|
) |
| |
|
overridevirtualinherited |
Get a pointer to a given array, creating the array if necessary.
Implements SG::IAuxStore.
Definition at line 461 of file AuxContainerBase.cxx.
467 if( ( auxid >=
m_vecs.size() ) || ( !
m_vecs[ auxid ] ) ) {
474 auxid_t linked_id =
r.linkedVariable( auxid );
475 if (linked_id != SG::null_auxid) {
481 std::cout <<
"ERROR xAOD::AuxContainerBase::getData "
482 <<
"Unknown variable ("
484 <<
") requested" << std::endl;
488 m_vecs[ auxid ]->reserve( capacity );
493 return m_vecs[ auxid ]->toPtr();
◆ getData() [3/3]
virtual const void* SG::IConstAuxStore::getData |
|
inherited |
Pick up the const version from the base class.
◆ getDecoration()
void * xAOD::AuxContainerBase::getDecoration |
( |
auxid_t |
auxid, |
|
|
size_t |
size, |
|
|
size_t |
capacity |
|
) |
| |
|
overridevirtualinherited |
◆ getDecorIDs()
◆ getDynamicAuxIDs()
◆ getIOData()
const void * xAOD::AuxContainerBase::getIOData |
( |
auxid_t |
auxid | ) |
const |
|
overridevirtualinherited |
Get a pointer to the data being stored for one aux data item.
Implements SG::IAuxStoreIO.
Definition at line 658 of file AuxContainerBase.cxx.
664 if( ( auxid >=
m_vecs.size() ) || ( !
m_vecs[ auxid ] ) ) {
668 std::cout <<
"ERROR xAOD::AuxContainerBase::getIOData "
669 <<
"Unknown variable ("
671 <<
") requested" << std::endl;
680 return m_vecs[ auxid ]->toVector();
◆ getIOType()
const std::type_info * xAOD::AuxContainerBase::getIOType |
( |
auxid_t |
auxid | ) |
const |
|
overridevirtualinherited |
◆ getSelectedAuxIDs()
◆ getStore() [1/2]
◆ getStore() [2/2]
◆ getStoreType()
virtual AuxStoreType xAOD::AuxContainerBase::getStoreType |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ getVector()
|
finaloverridevirtualinherited |
Return vector interface for one aux data item.
Implements SG::IConstAuxStore.
Definition at line 238 of file AuxContainerBase.cxx.
243 if( ( auxid >=
m_vecs.size() ) || ( !
m_vecs[ auxid ] ) ) {
249 auxids_nc.
insert( auxid );
251 auxid_t linked_id =
r.linkedVariable( auxid );
252 if (linked_id != SG::null_auxid) {
253 auxids_nc.insert( linked_id );
258 std::cout <<
"ERROR xAOD::AuxContainerBase::getData "
259 <<
"Unknown variable ("
261 <<
") requested" << std::endl;
◆ getWritableAuxIDs()
◆ insertMove() [1/2]
Insert contents of another store via move.
Definition at line 583 of file AuxContainerBase.cxx.
595 size_t other_size =
other.size();
607 if (
other.getData (
id)) {
608 void* src_ptr =
other.getData (
id, other_size, other_size);
616 const void* orig = v_dst->
toPtr();
618 if (orig != v_dst->
toPtr())
◆ insertMove() [2/2]
Move all elements from other
to this store.
- Parameters
-
pos | The starting index of the insertion. |
other | Store from which to do the move. |
ignore | Set of variables that should not be added to the store. |
Let len
be the size of other
. The store will be increased in size by len
elements, with the elements at pos
being copied to pos+len
. Then, for each auxiliary variable, the entire contents of that variable for other
will be moved to this store at index pos
. This will be done via move semantics if possible; otherwise, it will be done with a copy. Variables present in this store but not in other
will have the corresponding elements default-initialized. Variables in other
but not in this store will be added unless they are in ignore
.
Returns true if it is known that none of the vectors' memory moved, false otherwise.
Implemented in SG::AuxStoreInternal.
◆ isDecoration()
bool xAOD::AuxContainerBase::isDecoration |
( |
auxid_t |
auxid | ) |
const |
|
overridevirtualinherited |
◆ linkedVector() [1/3]
◆ linkedVector() [2/3]
◆ linkedVector() [3/3]
virtual const IAuxTypeVector* SG::IConstAuxStore::linkedVector |
|
inlineinherited |
Return interface for a linked variable.
- Parameters
-
auxid | The ID of the parent variable. |
If auxid
has a linked variable, then return the IAuxTypeVector
describing it. Otherwise, return nullptr
. May return nullptr
unconditionally if this store does not support linked variables.
Definition at line 189 of file IConstAuxStore.h.
◆ lock()
void xAOD::AuxContainerBase::lock |
( |
| ) |
|
|
overridevirtualinherited |
◆ lockDecoration()
void xAOD::AuxContainerBase::lockDecoration |
( |
SG::auxid_t |
auxid | ) |
|
|
overridevirtualinherited |
◆ memResource()
std::pmr::memory_resource * xAOD::AuxContainerBase::memResource |
( |
| ) |
|
|
inherited |
Return the memory resource to use.
Definition at line 158 of file AuxContainerBase.cxx.
160 const std::pmr::memory_resource* cptr = m_memResource.get();
161 std::pmr::memory_resource*
ptr ATLAS_THREAD_SAFE =
const_cast<std::pmr::memory_resource*
>( cptr );
163 #ifndef XAOD_STANDALONE
164 const EventContext& ctx = Gaudi::Hive::currentContext();
171 ptr = std::pmr::get_default_resource();
174 m_memResource.set(
ptr );
◆ name()
const char * xAOD::AuxContainerBase::name |
( |
| ) |
const |
|
inherited |
◆ regAuxVar() [1/2]
Register one of the persistent variables internally.
◆ regAuxVar() [2/2]
template<typename T , typename ALLOC >
void xAOD::AuxContainerBase::regAuxVar |
( |
auxid_t |
auxid, |
|
|
const std::string & |
name, |
|
|
std::vector< T, ALLOC > & |
vec |
|
) |
| |
|
inherited |
Register one of the persistent variables internally.
◆ regAuxVar1()
template<typename ELT , typename CONT >
void xAOD::AuxContainerBase::regAuxVar1 |
( |
auxid_t |
auxid, |
|
|
const std::string & |
name, |
|
|
CONT & |
vec |
|
) |
| |
|
privateinherited |
Common code between regAuxVar cases.
◆ reserve()
void xAOD::AuxContainerBase::reserve |
( |
size_t |
size | ) |
|
|
overridevirtualinherited |
◆ resize()
bool xAOD::AuxContainerBase::resize |
( |
size_t |
size | ) |
|
|
overridevirtualinherited |
◆ setName()
void xAOD::AuxContainerBase::setName |
( |
const char * |
name | ) |
|
|
inherited |
◆ setOption()
◆ setStore()
Set a different internal store object.
This function is used by the I/O infrastructure to possibly put a store object into this one, which can interact with dynamic variables directly.
Note that the object takes ownership of the received store.
- Parameters
-
store | The store that should be used for dynamic variable handling inside the object from now on |
Implements SG::IAuxStoreHolder.
Definition at line 194 of file AuxContainerBase.cxx.
◆ shift()
void xAOD::AuxContainerBase::shift |
( |
size_t |
pos, |
|
|
ptrdiff_t |
offs |
|
) |
| |
|
overridevirtualinherited |
◆ size()
size_t xAOD::AuxContainerBase::size |
( |
| ) |
const |
|
overridevirtualinherited |
◆ art_BCID
std::vector< std::vector<uint16_t> > xAOD::NSWMMTPRDOAuxContainer_v1::art_BCID {} |
|
private |
◆ art_channel
std::vector< std::vector<uint16_t> > xAOD::NSWMMTPRDOAuxContainer_v1::art_channel {} |
|
private |
◆ art_layer
std::vector< std::vector<uint8_t> > xAOD::NSWMMTPRDOAuxContainer_v1::art_layer {} |
|
private |
◆ ATLAS_THREAD_SAFE
◆ BCID
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::BCID {} |
|
private |
◆ EC
std::vector<uint8_t > xAOD::NSWMMTPRDOAuxContainer_v1::EC {} |
|
private |
◆ l1a_engines
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_engines {} |
|
private |
◆ l1a_release_BCID
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_release_BCID {} |
|
private |
◆ l1a_request_BCID
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_request_BCID {} |
|
private |
◆ l1a_timeout
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_timeout {} |
|
private |
◆ l1a_window_center
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_center {} |
|
private |
◆ l1a_window_center_offset
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_center_offset {} |
|
private |
◆ l1a_window_close
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_close {} |
|
private |
◆ l1a_window_close_offset
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_close_offset {} |
|
private |
◆ l1a_window_open
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_open {} |
|
private |
◆ l1a_window_open_offset
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::l1a_window_open_offset {} |
|
private |
◆ L1ID
std::vector<uint32_t> xAOD::NSWMMTPRDOAuxContainer_v1::L1ID {} |
|
private |
◆ m_auxids
◆ m_locked
bool xAOD::AuxContainerBase::m_locked |
|
privateinherited |
◆ m_mutex
mutex_t xAOD::AuxContainerBase::m_mutex |
|
mutableprivateinherited |
◆ m_name
std::string xAOD::AuxContainerBase::m_name |
|
privateinherited |
◆ m_ownsStore
bool xAOD::AuxContainerBase::m_ownsStore |
|
privateinherited |
Flag deciding if the object owns the dynamic store or not.
Definition at line 241 of file AuxContainerBase.h.
◆ m_store
◆ m_storeIO
◆ m_vecs
◆ moduleID
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::moduleID {} |
|
private |
◆ ROD_BCID
std::vector<uint16_t> xAOD::NSWMMTPRDOAuxContainer_v1::ROD_BCID {} |
|
private |
◆ ROD_L1ID
std::vector<uint32_t> xAOD::NSWMMTPRDOAuxContainer_v1::ROD_L1ID {} |
|
private |
◆ sectID
std::vector<uint8_t > xAOD::NSWMMTPRDOAuxContainer_v1::sectID {} |
|
private |
◆ sourceID
std::vector<uint32_t> xAOD::NSWMMTPRDOAuxContainer_v1::sourceID {} |
|
private |
◆ supportsThinning
constexpr bool SG::IAuxStore::supportsThinning = true |
|
staticconstexprinherited |
Mark that this type supports thinning operations.
See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.
Definition at line 199 of file IAuxStore.h.
◆ trig_BCID
std::vector< std::vector<uint16_t> > xAOD::NSWMMTPRDOAuxContainer_v1::trig_BCID {} |
|
private |
◆ trig_dTheta
std::vector< std::vector<uint8_t> > xAOD::NSWMMTPRDOAuxContainer_v1::trig_dTheta {} |
|
private |
◆ trig_ROI_phiID
std::vector< std::vector<uint8_t> > xAOD::NSWMMTPRDOAuxContainer_v1::trig_ROI_phiID {} |
|
private |
◆ trig_ROI_rID
std::vector< std::vector<uint8_t> > xAOD::NSWMMTPRDOAuxContainer_v1::trig_ROI_rID {} |
|
private |
The documentation for this class was generated from the following files:
std::string m_name
Name of the container in memory. Set externally.
virtual bool shift(size_t pos, ptrdiff_t offs)=0
Shift the elements of the vector.
bool isLinked() const
Return true if this variable is linked from another one.
const char * name() const
Get the name of the container instance.
virtual bool insertMove(size_t pos, IAuxStore &other, const SG::auxid_set_t &ignore=SG::auxid_set_t())=0
Move all elements from other to this store.
std::vector< uint16_t > l1a_timeout
virtual void lockDecoration(SG::auxid_t auxid)=0
Lock a decoration.
virtual const IAuxTypeVector * getVector(SG::auxid_t auxid) const =0
Return vector interface for one aux data item.
ReadStats & stats()
Access the object belonging to the current thread.
std::vector< uint16_t > l1a_window_open
static AuxTypeRegistry & instance()
Return the singleton registry instance.
SG::IAuxStore * m_store
Internal dynamic auxiliary store object.
#define TPAUX_VARIABLE(VAR)
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
AthContainers_detail::lock_guard< mutex_t > guard_t
Exception — Attempted to modify auxiliary data in a locked store.
std::vector< uint16_t > l1a_engines
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
virtual bool insertMove(size_t pos, void *src, size_t src_pos, size_t src_n, IAuxStore &srcStore)=0
Insert elements into the vector via move semantics.
virtual const std::type_info * getIOType(SG::auxid_t auxid) const =0
Return the type of the data to be stored for one aux data item.
virtual size_t size() const =0
Return the number of elements in the store.
virtual void shift(size_t pos, ptrdiff_t offs)=0
Shift the elements of the container.
virtual IAuxTypeVector * linkedVector(SG::auxid_t)
Interface providing I/O for a generic auxiliary store.
std::vector< std::vector< uint8_t > > trig_ROI_phiID
Handle mappings between names and auxid_t.
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
std::vector< std::vector< uint16_t > > art_channel
std::vector< uint16_t > l1a_window_close_offset
virtual size_t size() const override
Get the size of the container.
virtual bool setOption(auxid_t, const AuxDataOption &)
Set an option for a given auxiliary variable.
size_t auxid_t
Identifier for a particular aux data item.
virtual bool clearDecorations()=0
Clear all decorations.
SG::auxid_set_t auxid_set_t
The aux ID set type definition.
auxid_set_t m_auxids
Internal list of all available variables.
std::vector< SG::IAuxTypeVector * > m_vecs
Internal list of all managed variables.
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
virtual void * getDecoration(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data decoration item.
const std::type_info * getVecType(SG::auxid_t auxid) const
Return the type of the STL vector used to hold an aux data item.
std::vector< uint16_t > l1a_window_open_offset
static IOStats & instance()
Singleton object accessor.
std::vector< uint16_t > l1a_window_center_offset
std::vector< std::vector< uint8_t > > trig_ROI_rID
std::vector< uint32_t > L1ID
std::vector< std::vector< uint8_t > > trig_dTheta
std::vector< uint8_t > EC
virtual const SG::IAuxTypeVector * getVector(SG::auxid_t auxid) const override final
Return vector interface for one aux data item.
const T * as_const_ptr(const T *p)
Helper for getting a const version of a pointer.
std::vector< uint32_t > sourceID
std::vector< uint16_t > l1a_release_BCID
virtual const auxid_set_t & getWritableAuxIDs() const override
Return a set of writable data identifiers.
virtual const void * getIOData(SG::auxid_t auxid) const =0
Return a pointer to the data to be stored for one aux data item.
virtual const void * getData(auxid_t auxid) const override
Get a pointer to a given array.
void readBranch(const std::string &prefix, SG::auxid_t auxid)
Function incrementing the read counter on a specific branch.
std::vector< uint16_t > l1a_window_center
SG::auxid_t auxid_t
The aux ID type definition.
CxxUtils::CachedPointer< std::pmr::memory_resource > m_memResource ATLAS_THREAD_SAFE
Memory resource to use for this container.
virtual void * getData(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data item.
std::vector< uint8_t > sectID
bool m_locked
Has the container been locked?
Abstract interface for manipulating vectors of arbitrary types.
bool m_ownsStore
Flag deciding if the object owns the dynamic store or not.
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
std::vector< uint32_t > ROD_L1ID
virtual void lock()=0
Lock the container.
SG::IAuxStoreIO * m_storeIO
The IO interface to the internal auxiliary store.
AuxContainerBase(bool allowDynamicVars=true)
Default constructor.
std::vector< uint16_t > l1a_window_close
virtual bool resize(size_t sz)=0
Change the size of all aux data vectors.
A set of aux data identifiers.
std::vector< uint16_t > ROD_BCID
std::vector< uint16_t > l1a_request_BCID
virtual bool isDecoration(auxid_t auxid) const =0
Test if a particular variable is tagged as a decoration.
std::vector< uint16_t > BCID
@ AST_ObjectStore
The store describes a single object.
std::vector< std::vector< uint16_t > > art_BCID
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
std::vector< std::vector< uint16_t > > trig_BCID
virtual void * toPtr()=0
Return a pointer to the start of the vector's data.
virtual void reserve(size_t sz)=0
Change the capacity of all aux data vectors.
std::vector< std::vector< uint8_t > > art_layer
std::vector< uint16_t > moduleID
@ AST_ContainerStore
The store describes a container.