15#include "GaudiKernel/ISvcLocator.h"
16#include "GaudiKernel/MsgStream.h"
17#include "GaudiKernel/StatusCode.h"
44 MsgStream mLog(msgSvc(), name());
54 mLog << MSG::DEBUG <<
"...will OWN its cells." <<
endmsg;
56 mLog << MSG::DEBUG <<
"...will VIEW its cells." <<
endmsg;
59 mLog << MSG::DEBUG <<
"--> ZDC: ZdcRecRun3 initialization complete" <<
endmsg;
63 return StatusCode::FAILURE;
77 std::string sumContainerName =
"ZdcSums";
84 return StatusCode::SUCCESS;
94 const EventContext& ctx = Gaudi::Hive::currentContext();
103 if (!eventInfo.
isValid())
return StatusCode::FAILURE;
111 std::string errs =
"";
112 if (zdcErr) errs +=
"* ZDC ";
113 if (rpdErr) errs +=
"* RPD ";
135 ATH_MSG_FATAL(
"Event type must be set in configuration in standalone mode");
136 return StatusCode::FAILURE;
160 for (
const auto modSum : *(moduleSumContainer.
get())) {
164 if (modSum->zdcSide() == 0) {
172 eventTypeHandle(*modSum) = eventType;
183 for (ToolHandle<ZDC::IZdcAnalysisTool>& tool :
m_zdcTools)
185 ATH_CHECK( tool->recoZdcModules(*moduleContainer.
get(), *moduleSumContainer.
get()) );
188 return StatusCode::SUCCESS;
199 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Handle class for recording to StoreGate.
Define enumerations for event-level ZDC data.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
Handle class for adding a decoration to an object.
ZdcRecRun3(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< unsigned int > m_DAQMode
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
ToolHandleArray< ZDC::IZdcAnalysisTool > m_zdcTools
StatusCode execute() override
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< int > m_ownPolicy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcDAQMode
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcEventType
StatusCode initialize() override
StatusCode finalize() override
Gaudi::Property< unsigned int > m_forcedEventType
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
@ ForwardDet
The forward detectors.
@ Error
The sub-detector issued an error.
@ IS_CALIBRATION
true: calibration, false: physics
@ IS_SIMULATION
true: simulation, false: data
@ OWN_ELEMENTS
this data object owns its elements