|
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"
29 m_pixelDetEleCollKey{
"PixelDetectorElementCollection"}
35 ISvcLocator* svcLocator = Gaudi::svcLocator();
37 log << MSG::INFO <<
"PixelClusterContainerCnv::initialize()" <<
endmsg;
45 return StatusCode::SUCCESS;
53 std::unique_ptr<InDet::PixelClusterContainer> trans(std::make_unique<InDet::PixelClusterContainer>(
m_pixId->
wafer_hash_max()) );
58 if (not pixelDetEleHandle.
isValid() or elements==
nullptr) {
60 return trans.release();
67 MSG_DEBUG(
log,
"Set PixelCluster detector element to "<< de);
71 for (
int num = 0; itColl != lastColl; ++itColl, ++
num) {
73 (*itColl)->m_detEl = de;
76 StatusCode sc= trans? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
78 MSG_VERBOSE(
log,
"PixelClusterContainer successfully added to Container !");
80 log << MSG::ERROR <<
"Failed to add PixelClusterContainer to container" <<
endmsg;
84 return trans.release();
JetConstituentVector::iterator iterator
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
PixelClusterContainerCnv_p0()
Trk::PrepRawDataContainer< PixelClusterCollection > PixelClusterContainer
virtual InDet::PixelClusterContainer * createTransient(const PixelClusterContainer_p0 *, MsgStream &) override
StatusCode initialize(MsgStream &log)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
The Athena Transient Store API.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
StatusCode initialize(bool used=true)
size_type wafer_hash_max(void) const
#define MSG_VERBOSE(log, x)
#define MSG_DEBUG(log, x)
size_type size() const noexcept
Returns the number of elements in the collection.
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection