|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/ISvcLocator.h"
16 #include "GaudiKernel/MsgStream.h"
17 #include "GaudiKernel/StatusCode.h"
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;
Auxiliary store for xAOD::ZdcModuleContainer_v2.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool updateEventFlagBit(const EventFlagSubDet subDet, const size_t bit) const
Change detector flags with update semantics.
bool empty() const
Test if the key is blank.
StatusCode initialize() override
@ Error
The sub-detector issued an error.
Gaudi::Property< unsigned int > m_nFragments
Handle class for recording to StoreGate.
msgSvc
Provide convenience handles for various services.
@ OWN_ELEMENTS
this data object owns its elements
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName
@ ForwardDet
The forward detectors.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
StatusCode finalize() override
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ToolHandle< ZdcRecChannelToolLucrod > m_ChannelTool
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
bool updateErrorState(const EventFlagSubDet subDet, const EventFlagErrorState state) const
Update the error state for one particular sub-detector.
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.
Define enumerations for event-level ZDC data.
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
ZdcRecRun3Decode(const std::string &name, ISvcLocator *pSvcLocator)
std::string ZdcModuleToString(const xAOD::ZdcModule &zm)
StatusCode execute() override