|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/ISvcLocator.h"
14 #include "GaudiKernel/Bootstrap.h"
15 #include "GaudiKernel/StatusCode.h"
16 #include "GaudiKernel/Service.h"
17 #include "GaudiKernel/MsgStream.h"
28 log << MSG::INFO <<
"TRT_DriftCircleContainerCnv::initialize()" <<
endmsg;
30 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
38 return StatusCode::SUCCESS;
46 std::unique_ptr<InDet::TRT_DriftCircleContainer> trans(std::make_unique<InDet::TRT_DriftCircleContainer>(
m_trtId->
straw_layer_hash_max()) );
51 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
53 return trans.release();
60 MSG_DEBUG(
log,
"Set TRT_DriftCircle detector element to "<< de);
64 for (
int num = 0; itColl != lastColl; ++itColl, ++
num) {
66 (*itColl)->m_detEl = de;
69 StatusCode sc= trans ? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
71 MSG_VERBOSE(
log,
"TRT_DriftCircleContainer successfully added to Container !");
73 log << MSG::ERROR <<
"Failed to add TRT_DriftCircleContainer to container" <<
endmsg;
77 return(trans.release());
JetConstituentVector::iterator iterator
size_type straw_layer_hash_max(void) const
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Trk::PrepRawDataContainer< TRT_DriftCircleCollection > TRT_DriftCircleContainer
Helpers for checking error return status codes and reporting errors.
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
StatusCode initialize(bool used=true)
virtual InDet::TRT_DriftCircleContainer * createTransient(const TRT_DriftCircleContainer_p0 *, MsgStream &) override
#define MSG_VERBOSE(log, x)
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
#define MSG_DEBUG(log, x)
const TRT_DetElementCollection * getElements() const
StatusCode initialize(MsgStream &log)
Class to hold collection of TRT detector elements.
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.