|
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 log << MSG::INFO <<
"SCT_ClusterContainerCnv::initialize()" <<
endmsg;
39 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
46 return StatusCode::SUCCESS;
51 std::unique_ptr<InDet::SCT_ClusterContainer> trans(std::make_unique<InDet::SCT_ClusterContainer>(
m_sctId->
wafer_hash_max()) );
56 if (not sctDetEleHandle.
isValid() or elements==
nullptr) {
58 return trans.release();
69 for (; itColl != lastColl; ++itColl) {
70 (*itColl)->m_detEl = de;
73 StatusCode sc= trans ? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
77 log << MSG::ERROR <<
"Failed to add SCT_ClusterContainer to container" <<
endmsg;
81 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
::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)
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const