15#ifndef TILEEVENT_TILEMUTABLEDATACONTAINER_H
16#define TILEEVENT_TILEMUTABLEDATACONTAINER_H
24#include "GaudiKernel/StatusCode.h"
47template <
class BASE_T>
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
An STL vector of pointers that by default owns its pointed-to elements.
const void * indexFindPtr(IdentifierHash hashId) const
Interface to allow an object to lock itself when made const in SG.
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
This is a "hash" representation of an Identifier.
TileMutableDataContainer & operator=(const TileMutableDataContainer &)=delete
TileMutableDataContainer(const TileMutableDataContainer &)=delete
TileMutableDataContainer(const BASE &other)
Copy constructor.
StatusCode addCollection(std::unique_ptr< Collection > coll, IdentifierHash hash)
Add a collection to the container.
StatusCode push_back(std::unique_ptr< Element > rch)
Add a new channel.
std::vector< Collection * > m_mutableCollections
StatusCode status() const
Return the error status from the constructors.
virtual void lock() override
Lock this object.
void recycle()
Recycle this object for use in another event.
Collection * indexFindPtr(IdentifierHash hash)
Look up a (non-const) collection via hash.
TileMutableDataContainer(bool createColl=false, TYPE type=TileFragHash::Default, UNIT unit=TileRawChannelUnit::ADCcounts, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Constructor.
StatusCode push_back(Element *rch)
Add a new channel.
TileBeamElemContainer BASE
BASE::IDENTIFIABLE Collection
TileRawChannelUnit::UNIT UNIT
TileBeamElemCollection::TElement TElement
@ OWN_ELEMENTS
this data object owns its elements