15#include "GaudiKernel/ISvcLocator.h"
16#include "GaudiKernel/MsgStream.h"
17#include "GaudiKernel/StatusCode.h"
47 MsgStream mLog(msgSvc(), name());
61 mLog << MSG::DEBUG <<
"...will OWN its cells." <<
endmsg;
63 mLog << MSG::DEBUG <<
"...will VIEW its cells." <<
endmsg;
66 mLog << MSG::DEBUG <<
"--> ZDC: ZdcRecRun3Decode initialization complete" <<
endmsg;
68 return StatusCode::SUCCESS;
78 const EventContext& ctx = Gaudi::Hive::currentContext();
80 ATH_MSG_DEBUG (
"--> ZDC: ZdcRecRun3Decode execute starting on "
86 return StatusCode::SUCCESS;
97 for (
auto zld : *zldContainer)
99 uint32_t lucrod_id = zld->GetLucrodID();
119 ATH_MSG_WARNING(
" cannot set EventInfo error state for ForwardDet " );
129 ATH_MSG_WARNING(
" cannot set RPDDECODINGERROR flag bit for ForwardDet " );
136 ATH_MSG_WARNING(
" cannot set ZDCDECODINGERROR flag bit for ForwardDet " );
144 moduleContainer->setStore( moduleAuxContainer.get() );
149 moduleSumContainer->setStore( moduleSumAuxContainer.get() );
154 int ncha =
m_ChannelTool->convertLucrod2ZM(zldContainer.
get(), moduleContainer.get(), moduleSumContainer.get() );
155 ATH_MSG_DEBUG(
"m_ChannelTool->convertLucrod2ZM returned " << ncha <<
" channels");
167 std::move(moduleAuxContainer)) );
171 std::move(moduleSumAuxContainer)) );
173 return StatusCode::SUCCESS;
182 ATH_MSG_DEBUG(
"--> ZDC: ZdcRecRun3Decode finalize complete" );
184 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Define enumerations for event-level ZDC data.
std::string ZdcModuleToString(const xAOD::ZdcModule &zm)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
ZdcRecRun3Decode(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute() override
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode initialize() override
StatusCode finalize() override
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Gaudi::Property< unsigned int > m_nFragments
ToolHandle< ZdcRecChannelToolLucrod > m_ChannelTool
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
@ ForwardDet
The forward detectors.
@ Error
The sub-detector issued an error.
@ OWN_ELEMENTS
this data object owns its elements
ZdcModuleContainer_v1 ZdcModuleContainer
ZdcModuleAuxContainer_v2 ZdcModuleAuxContainer