|
ATLAS Offline Software
|
Go to the documentation of this file.
8 ISvcLocator* pSvcLocator)
22 return StatusCode::SUCCESS;
28 return StatusCode::SUCCESS;
36 auto output = std::make_unique<xAOD::BaseContainer>();
37 auto outputAux = std::make_unique<xAOD::AuxContainerBase>();
38 output->setStore(outputAux.get());
48 for (
const auto *collection : *rdoContainer) {
51 if (element !=
nullptr) {
52 std::vector<InDet::UnpackedPixelRDO>
hits =
55 for (
auto hit :
hits) {
65 id(*
item) = hit.ID.get_compact();
70 ATH_CHECK(outputHandle.record(std::move(
output), std::move(outputAux)));
72 return StatusCode::SUCCESS;
81 auto output = std::make_unique<xAOD::BaseContainer>();
82 auto outputAux = std::make_unique<xAOD::AuxContainerBase>();
83 output->setStore(outputAux.get());
92 for (
const auto *collection: *rdoContainer) {
93 if ( collection ==
nullptr)
continue;
95 for (
const auto *hit: *collection) {
104 id(*
item) = hit->identify().get_compact();
109 ATH_CHECK(outputHandle.record(std::move(
output), std::move(outputAux)));
110 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const SCT_ID * m_stripIdHelper
Helper class to provide type-safe access to aux data.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Base class for elements of a container that can have aux data.
SG::WriteHandleKey< xAOD::BaseContainer > m_stripOutputKey
virtual StatusCode initialize() override
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
StatusCode exportStrip(const EventContext &context) const
SG::WriteHandleKey< xAOD::BaseContainer > m_pixelOutputKey
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
const PixelID * m_pixelIdHelper
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
::StatusCode StatusCode
StatusCode definition for legacy code.
HitsToxAODCopier(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode execute(const EventContext &context) const override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
int layer_disk(const Identifier &id) const
SG::ReadHandleKey< PixelRDO_Container > m_pixelRdoContainerKey
int strip(const Identifier &id) const
StatusCode exportPixel(const EventContext &context) const
int eta_module(const Identifier &id) const
int side(const Identifier &id) const
SG::ReadHandleKey< SCT_RDO_Container > m_stripRdoContainerKey
int phi_module(const Identifier &id) const
ToolHandle< InDet::PixelRDOTool > m_pixelRDOTool