![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiKernel/ISvcLocator.h"
18 #include "GaudiKernel/MsgStream.h"
19 #include "GaudiKernel/Service.h"
20 #include "GaudiKernel/StatusCode.h"
31 m_SCTDetEleCollKey{
"SCT_DetectorElementCollection"}
37 ISvcLocator* svcLocator = Gaudi::svcLocator();
40 log << MSG::INFO <<
"SCT_ClusterContainerCnv::initialize()" <<
endmsg;
48 return StatusCode::SUCCESS;
53 std::unique_ptr<InDet::SCT_ClusterContainer> trans(std::make_unique<InDet::SCT_ClusterContainer>(
m_sctId->
wafer_hash_max()) );
58 if (not sctDetEleHandle.
isValid() or elements==
nullptr) {
60 return trans.release();
71 for (; itColl != lastColl; ++itColl) {
72 (*itColl)->m_detEl = de;
75 StatusCode sc= trans ? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
79 log << MSG::ERROR <<
"Failed to add SCT_ClusterContainer to container" <<
endmsg;
83 return trans.release();
JetConstituentVector::iterator iterator
StatusCode initialize(MsgStream &log)
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SCT_ClusterContainerCnv_p0()
Trk::PrepRawDataContainer< SCT_ClusterCollection > SCT_ClusterContainer
The Athena Transient Store API.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual InDet::SCT_ClusterContainer * createTransient(const SCT_ClusterContainer_p0 *, MsgStream &) override
#define CHECK(...)
Evaluate an expression and check for errors.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
size_type wafer_hash_max(void) const
Helpers for checking error return status codes and reporting errors.
StatusCode initialize(bool used=true)
#define MSG_DEBUG(log, x)
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const