![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
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"
36 ISvcLocator* svcLocator = Gaudi::svcLocator();
41 return StatusCode::FAILURE;
46 sc = svcLocator->service(
"DetectorStore",
detStore);
49 return StatusCode::FAILURE;
58 return StatusCode::FAILURE;
70 return StatusCode::SUCCESS;
97 unsigned int collIndex;
98 unsigned int chanBegin = 0;
99 unsigned int chanEnd = 0;
109 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
114 chanEnd += collection.
size();
118 pcollection.
m_begin = chanBegin;
119 pcollection.
m_end = chanEnd;
122 for (
unsigned int i = 0;
i < collection.
size(); ++
i) {
154 for (
unsigned int icoll = 0; icoll < persCont->
m_collections.size(); ++icoll) {
172 chan->m_detElOut = deOut;
177 chan->m_detElIn = deIn;
180 chan->m_detElIn =
nullptr;
187 if (
sc.isFailure()) {
188 throw std::runtime_error(
"Failed to add collection to ID Container");
191 log <<
MSG::DEBUG <<
"AthenaPoolTPCnvIDCont::persToTrans, collection, hash_id/coll id = " << (
int) collIDHash <<
" / " <<
204 if(!m_isInitialized) {
205 if (this->
initialize(log) != StatusCode::SUCCESS) {
211 persToTrans(persObj, trans.get(),
log);
212 return(trans.release());
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 Muon::TgcCoinDataContainer * createTransient(const Muon::MuonCoinDataContainer_p1 *persObj, MsgStream &log)
Identifier identify() const
MuonCoinDataCollection< TgcCoinData > TgcCoinDataCollection
std::vector< Muon::MuonCoinDataCollection_p1 > m_collections
const MuonGM::MuonDetectorManager * m_muonDetMgr
The Athena Transient Store API.
virtual size_t numberOfCollections() const override final
return number of collections
value_type get_compact(void) const
Get the compact id.
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
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.
IdentifierHash identifyHash() const
const TgcIdHelper * m_TgcId
value_type get_compact(void) const
Get the compact id.
StoreGateSvc * m_storeGate
unsigned int m_begin
Begin index into master collection.
void setIdentifier(Identifier id)
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
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.