|
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 log << MSG::INFO <<
"PixelClusterContainerCnv::initialize()" <<
endmsg;
37 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
44 return StatusCode::SUCCESS;
52 std::unique_ptr<InDet::PixelClusterContainer> trans(std::make_unique<InDet::PixelClusterContainer>(
m_pixId->
wafer_hash_max()) );
57 if (not pixelDetEleHandle.
isValid() or elements==
nullptr) {
59 return trans.release();
66 MSG_DEBUG(
log,
"Set PixelCluster detector element to "<< de);
70 for (
int num = 0; itColl != lastColl; ++itColl, ++
num) {
72 (*itColl)->m_detEl = de;
75 StatusCode sc= trans? trans->addCollection(dcColl, collHash): StatusCode::FAILURE;
77 MSG_VERBOSE(
log,
"PixelClusterContainer successfully added to Container !");
79 log << MSG::ERROR <<
"Failed to add PixelClusterContainer to container" <<
endmsg;
83 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
::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)
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.
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection