|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   16 #include "GaudiKernel/ISvcLocator.h" 
   17 #include "GaudiKernel/Bootstrap.h" 
   18 #include "GaudiKernel/StatusCode.h" 
   19 #include "GaudiKernel/Service.h" 
   20 #include "GaudiKernel/MsgStream.h" 
   33     SmartIF<StoreGateSvc> 
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
 
   42     return StatusCode::SUCCESS;
 
   69     unsigned int collIndex;
 
   70     unsigned int chanBegin = 0;
 
   71     unsigned int chanEnd = 0;
 
   81     for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll)  {
 
   86         chanEnd   += collection.
size();
 
   90         pcollection.
m_begin = chanBegin;
 
   91         pcollection.
m_end   = chanEnd;
 
   94         for (
unsigned int i = 0; 
i < collection.
size(); ++
i) {
 
  126     for (
unsigned int icoll = 0; icoll < persCont->
m_collections.size(); ++icoll) {
 
  144           chan->m_detElOut = deOut;
 
  149           chan->m_detElIn = deIn;
 
  152           chan->m_detElIn = 
nullptr;
 
  159         if (
sc.isFailure()) {
 
  160             throw std::runtime_error(
"Failed to add collection to ID Container");
 
  163             log << 
MSG::DEBUG << 
"AthenaPoolTPCnvIDCont::persToTrans, collection, hash_id/coll id = " << (
int) collIDHash << 
" / " << 
 
  176     if(!m_isInitialized) {
 
  177         if (this->
initialize(log) != StatusCode::SUCCESS) {
 
  183     persToTrans(persObj, trans.get(), 
log);
 
  184     return(trans.release());
 
  189     if (!cnv_tool) 
return nullptr; 
 
  
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,...
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
virtual Muon::TgcCoinDataContainer * createTransient(const Muon::MuonCoinDataContainer_p1 *persObj, MsgStream &log)
Identifier identify() const
MuonCoinDataCollection< TgcCoinData > TgcCoinDataCollection
value_type get_compact() const
Get the compact id.
std::vector< Muon::MuonCoinDataCollection_p1 > m_collections
virtual size_t numberOfCollections() const override final
return number of collections
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
StatusCode initialize(MsgStream &log)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
std::vector< TPObjRef > m_CoinData
const_iterator end() const
return const_iterator for end of container
#define CHECK(...)
Evaluate an expression and check for errors.
const_iterator begin() const
return const_iterator for first entry
unsigned int m_hashId
Hash Identifier of this collection (write this one as well, so we don't rely on the IdHelper for it)
void resize(size_type sz)
Resizes the collection to the specified number of elements.
unsigned int m_end
End index into master collection.
Helpers for checking error return status codes and reporting errors.
IdentifierHash identifyHash() const
const TgcIdHelper * m_TgcId
const MuonGM::TgcReadoutElement * getReadOutElement(const Identifier &id) const
unsigned int m_begin
Begin index into master collection.
void setIdentifier(Identifier id)
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type size() const noexcept
Returns the number of elements in the collection.
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
unsigned int m_id
Identifier of this collection.