![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
37 TRANS::const_iterator it_Coll = transCont->
begin();
38 TRANS::const_iterator it_CollEnd = transCont->
end();
39 unsigned int collIndex;
40 unsigned int chanBegin = 0;
41 unsigned int chanEnd = 0;
52 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
56 chanEnd += collection.
size();
60 pcollection.
m_begin = chanBegin;
61 pcollection.
m_end = chanEnd;
65 for (
unsigned int i = 0;
i < collection.
size(); ++
i) {
68 if (
nullptr ==
chan)
throw std::runtime_error(
"TRT_LoLumRawDataContainerCnv_p2::transToPers: *** UNABLE TO DYNAMIC CAST TO TRT_LoLumRawData");
72 MSG_DEBUG(
log,
" *** Writing TRT_RDO_Container (TRT_LoLumRawData concrete type)");
101 for (
unsigned int icoll = 0; icoll < persCont->
m_collections.size(); ++icoll) {
126 if (
sc.isFailure()) {
127 throw std::runtime_error(
"Failed to add collection to ID Container");
129 MSG_VERBOSE(
log,
"AthenaPoolTPCnvIDCont::persToTrans, collection, hash_id/coll id = "
130 << (
int) collIDHash <<
" / " << collID.
get_compact() <<
", added to Identifiable container.");
133 MSG_DEBUG(
log,
" *** Reading TRT_RDO_Container (TRT_LoLumRawData concrete type)");
140 return(trans.release());
void setIdentifier(Identifier id)
void reserve(unsigned int size)
Set the desired capacity.
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,...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
size_type straw_layer_hash_max(void) const
virtual Identifier identify() const override final
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
virtual void transToPers(const TRT_RDO_Container *transCont, InDetRawDataContainer_p2 *persCont, MsgStream &log)
IdentifierHash::value_type m_hashId
Identifier32::value_type m_id
virtual IdentifierHash identifyHash() const override final
InDetRawDataCollection< TRT_RDORawData > TRT_RDO_Collection
std::vector< InDetRawDataCollection_p1 > m_collections
virtual size_t numberOfCollections() const override final
return number of collections
value_type get_compact(void) const
Get the compact id.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual TRT_RDO_Container * createTransient(const InDetRawDataContainer_p2 *persObj, MsgStream &log)
virtual void transToPers(const TRT_LoLumRawData *transObj, InDetRawData_p2 *persObj, MsgStream &log)
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
pointer nextElementPtr()
obtain the next available element in pool by pointer pool is resized if its limit has been reached On...
void clear()
Erase all the elements in the collection.
virtual void persToTrans(const InDetRawData_p2 *persObj, TRT_LoLumRawData *transObj, MsgStream &log)
InDetRawDataContainer< InDetRawDataCollection< TRT_RDORawData > > TRT_RDO_Container
void resize(size_type sz)
Resizes the collection to the specified number of elements.
#define MSG_VERBOSE(log, x)
value_type get_compact(void) const
Get the compact id.
#define MSG_DEBUG(log, x)
virtual void persToTrans(const InDetRawDataContainer_p2 *persCont, TRT_RDO_Container *transCont, MsgStream &log)
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
std::vector< InDetRawData_p2 > m_rawdata
size_type size() const noexcept
Returns the number of elements in the collection.