|
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"
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) {
169 eventTypeHandle(*modSum) = eventType;
184 return StatusCode::SUCCESS;
195 return StatusCode::SUCCESS;
StatusCode execute() override
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
ZdcRecRun3(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< unsigned int > m_DAQMode
@ IS_CALIBRATION
true: calibration, false: physics
@ IS_SIMULATION
true: simulation, false: data
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcEventType
@ Error
The sub-detector issued an error.
StatusCode finalize() override
Gaudi::Property< int > m_ownPolicy
Handle class for recording to StoreGate.
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcDAQMode
msgSvc
Provide convenience handles for various services.
@ OWN_ELEMENTS
this data object owns its elements
StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
ToolHandleArray< ZDC::IZdcAnalysisTool > m_zdcTools
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ ForwardDet
The forward detectors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Handle class for reading a decoration on an object.
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Handle class for reading from StoreGate.
Define enumerations for event-level ZDC data.
Gaudi::Property< unsigned int > m_forcedEventType
bool eventType(EventType type) const
Check for one particular bitmask value.