![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
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 ISvcLocator* svcLocator = Gaudi::svcLocator();
30 log << MSG::INFO <<
"TRT_DriftCircleContainerCnv::initialize()" <<
endmsg;
39 return StatusCode::SUCCESS;
47 std::unique_ptr<InDet::TRT_DriftCircleContainer> trans(std::make_unique<InDet::TRT_DriftCircleContainer>(
m_trtId->
straw_layer_hash_max()) );
52 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
54 return trans.release();
61 MSG_DEBUG(
log,
"Set TRT_DriftCircle detector element to "<< de);
65 for (
int num = 0; itColl != lastColl; ++itColl, ++
num) {
67 (*itColl)->m_detEl = de;
70 StatusCode sc= trans ? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
72 MSG_VERBOSE(
log,
"TRT_DriftCircleContainer successfully added to Container !");
74 log << MSG::ERROR <<
"Failed to add TRT_DriftCircleContainer to container" <<
endmsg;
78 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
The Athena Transient Store API.
::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.
size_type size() const noexcept
Returns the number of elements in the collection.