|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   45   TRANS::const_iterator it_Coll     = transCont->
begin();
 
   46   TRANS::const_iterator it_CollEnd  = transCont->
end();
 
   47   unsigned int collIndex;
 
   48   unsigned int chanBegin = 0;
 
   49   unsigned int chanEnd = 0;
 
   61   for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll)  {
 
   65     chanEnd   += collection.
size();
 
   69     pcollection.
m_begin = chanBegin;
 
   70     pcollection.
m_end   = chanEnd;
 
   72     MSG_DEBUG(
log,
"Writing collection number " << collIndex << 
" with hash" << pcollection.
m_hashId);
 
   80       for (
unsigned int i = 0; 
i < collection.
size(); ++
i) {
 
   92       for (
unsigned int i = 0; 
i < collection.
size(); ++
i) {
 
   97           const std::vector<int>& errHit = 
chan->getErrorCondensedHit();
 
  107   MSG_DEBUG(
log,
" ***  Writing SCT_RDO_Container (SCT1/3_RawData concrete type)");
 
  134     log << 
MSG::FATAL << 
"The collection has mixed SCT1 and SCT3 elements, this is not allowed " << 
endmsg;
 
  142   for (
unsigned int icoll = 0; icoll < persCont->
m_collections.size(); ++icoll) {
 
  149     std::unique_ptr<SCT_RDO_Collection> coll = std::make_unique<SCT_RDO_Collection>(
IdentifierHash(collIDHash));
 
  156               << 
" and num el= " << nchans << 
" m_type is "<<
m_type);
 
  162         std::unique_ptr<SCT1_RawData> 
chan = std::make_unique<SCT1_RawData>();
 
  169         std::vector<int> errorCondensedHit;
 
  171         for ( ; errCount < errEnd ; ++errCount) {
 
  176                                                                             std::move(errorCondensedHit));
 
  183     if (
sc.isFailure()) {
 
  184       throw std::runtime_error(
"Failed to add collection to ID Container");
 
  186     MSG_VERBOSE(
log,
"AthenaPoolTPCnvIDCont::persToTrans, collection, hash_id/coll id = " 
  187                 << collIDHash.
value() << 
" / " << collID.
get_compact() << 
", added to Identifiable container.");
 
  191   MSG_DEBUG(
log,
" ***  Reading SCT_RDO_Container (SCT1/3_RawData concrete type)");
 
  200   std::unique_ptr<SCT_RDO_Container> trans(std::make_unique<SCT_RDO_Container>(
m_sctId->
wafer_hash_max()));
 
  202   return trans.release();
 
  
Identifier32::value_type m_rdoId
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
void setIdentifier(Identifier id)
N.Barlow, Apr 2008 replace float[20] with vector<int> to represent strips with errors.
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,...
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 SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p2 *persObj, MsgStream &log)
std::vector< int > m_allErrorsInContainer
because ROOT isn't good at storing vectors of vectors, store the individual strip errors in the persi...
virtual IdentifierHash identifyHash() const override final
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p2 *persCont, MsgStream &log)
std::vector< int > m_numErrorsInRDO
virtual size_t numberOfCollections() const override final
return number of collections
size_type wafer_hash_max() const
std::vector< InDetRawDataCollection_p1 > m_collections
std::vector< InDetRawData_p1 > m_rawdata
::StatusCode StatusCode
StatusCode definition for legacy code.
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
virtual void transToPers(const SCT3_RawData *transObj, SCT3_RawData_p2 *persObj, MsgStream &log)
void resize(size_type sz)
Resizes the collection to the specified number of elements.
std::vector< SCT3_RawData_p2 > m_sct3data
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
Persistent represenation of an SCT_RawDataContainer.
#define MSG_VERBOSE(log, x)
virtual void persToTrans(const SCT_RawDataContainer_p2 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
#define MSG_DEBUG(log, x)
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.