|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef TILEEVENT_TILEMUTABLEDATACONTAINER_H
18 #define TILEEVENT_TILEMUTABLEDATACONTAINER_H
26 #include "GaudiKernel/StatusCode.h"
49 template <
class BASE_T>
135 using BASE::indexFindPtr;
185 #endif // not TILEEVENT_TILEMUTABLEDATACONTAINER_H
TCOLLECTION::TElement TElement
bool m_locked
Is the container locked?
TYPE m_defaultType
Default type; reset to this on recycle.
StatusCode status() const
Return the error status from the constructors.
Interface to allow an object to lock itself when made const in SG.
void recycle()
Recycle this object for use in another event.
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
TileMutableDataContainer(const BASE &other)
Copy constructor.
BASE::IDENTIFIABLE Collection
@ OWN_ELEMENTS
this data object owns its elements
StatusCode m_sc
StatusCode from constructors.
::StatusCode StatusCode
StatusCode definition for legacy code.
Helper for holding non-const raw data prior to recording in SG.
Collection * indexFindPtr(IdentifierHash hash)
Look up a (non-const) collection via hash.
StatusCode push_back(std::unique_ptr< Element > rch)
Add a new channel.
IDC::IDENTIFIABLE * addCollection(const Identifier collId, IDC *idc, const IDHELPER &idHelper, MsgStream &log)
StatusCode addCollection(std::unique_ptr< Collection > coll, IdentifierHash hash)
Add a collection to the container.
An STL vector of pointers that by default owns its pointed-to elements.
TileMutableDataContainer(bool createColl=false, TYPE type=TileFragHash::Default, UNIT unit=TileRawChannelUnit::ADCcounts, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Constructor.
virtual void lock() override
Lock this object.
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Interface to allow an object to lock itself when made const in SG.
TileMutableDataContainer & operator=(const TileMutableDataContainer &)=delete
TileMutableDataContainer(const TileMutableDataContainer &)=delete
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
UNIT m_defaultUnit
Default unit; reset to this on recycle.
StatusCode push_back(Element *rch)
Add a new channel.
std::vector< Collection * > m_mutableCollections
Non-const references to collections, indexed by hash value.