|
ATLAS Offline Software
|
Go to the documentation of this file.
39 TRANS::const_iterator it_Coll = transCont->
begin();
40 TRANS::const_iterator it_CollEnd = transCont->
end();
41 unsigned int collIndex;
42 unsigned int chanBegin = 0;
43 unsigned int chanEnd = 0;
47 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
51 chanEnd += collection.
size();
55 pcollection.
m_begin = chanBegin;
56 pcollection.
m_end = chanEnd;
59 for (
unsigned int i = 0;
i < collection.
size(); ++
i) {
67 MSG_DEBUG(
log,
" *** Writing SCT_RDO_Container (SCT1_RawData concrete type)");
90 for (
unsigned int icoll = 0; icoll < persCont->
m_collections.size(); ++icoll) {
97 std::unique_ptr<SCT_RDO_Collection> coll = std::make_unique<SCT_RDO_Collection>(collIDHash);
104 std::unique_ptr<SCT1_RawData>
chan = std::make_unique<SCT1_RawData>();
111 if (
sc.isFailure()) {
112 throw std::runtime_error(
"Failed to add collection to ID Container");
114 MSG_VERBOSE(
log,
"AthenaPoolTPCnvIDCont::persToTrans, collection, hash_id/coll id = " << collIDHash.
value()
115 <<
" / " << collID.
get_compact() <<
", added to Identifiable container.");
118 MSG_DEBUG(
log,
" *** Reading SCT_RDO_Container (SCT1_RawData concrete type)");
123 std::unique_ptr<SCT_RDO_Container> trans(std::make_unique<SCT_RDO_Container>(
m_sctId->
wafer_hash_max()));
125 return trans.release();
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
void setIdentifier(Identifier id)
virtual SCT_RDO_Container * createTransient(const InDetRawDataContainer_p1 *persObj, MsgStream &log)
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,...
unsigned int value() const
virtual Identifier identify() const override final
value_type get_compact() const
Get the compact id.
IdentifierHash::value_type m_hashId
Identifier32::value_type m_id
virtual IdentifierHash identifyHash() const override final
virtual size_t numberOfCollections() const override final
return number of collections
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< InDetRawDataCollection_p1 > m_collections
const_iterator end() const
return const_iterator for end of container
virtual void persToTrans(const InDetRawData_p1 *persObj, SCT1_RawData *transObj, MsgStream &log)
const_iterator begin() const
return const_iterator for first entry
std::vector< InDetRawData_p1 > m_rawdata
void resize(size_type sz)
Resizes the collection to the specified number of elements.
size_type wafer_hash_max(void) const
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
#define MSG_VERBOSE(log, x)
virtual void persToTrans(const InDetRawDataContainer_p1 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
#define MSG_DEBUG(log, x)
virtual void transToPers(const SCT_RDO_Container *transCont, InDetRawDataContainer_p1 *persCont, MsgStream &log)
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual void transToPers(const SCT1_RawData *transObj, InDetRawData_p1 *persObj, MsgStream &log)
size_type size() const noexcept
Returns the number of elements in the collection.