36 return StatusCode::SUCCESS;
39 ATH_MSG_WARNING(
"Error in LUCROD decoding, cannot write monitoring histograms. Skipping this event");
40 return StatusCode::SUCCESS;
52 fill(
"ZDCall", TrigCounts);
61 for (
const auto zdcModule : *zdcModules)
63 if (zdcModule->zdcType() == 0)
66 if (zdcModule->zdcSide() > 0)
68 moduleEnergy = zdcModuleCalibEnergyHandle(*zdcModule);
69 moduleNum = zdcModule->zdcModule();
70 e_A += zdcModuleCalibEnergyHandle(*zdcModule);
71 fill(trig +
"_expert", moduleEnergy, moduleNum);
72 fill(
"ZDCall", moduleEnergy, moduleNum);
75 if (zdcModule->zdcSide() < 0)
77 moduleEnergy = zdcModuleCalibEnergyHandle(*zdcModule);
78 moduleNum = zdcModule->zdcModule() + 4.;
79 e_C += zdcModuleCalibEnergyHandle(*zdcModule);
80 fill(trig +
"_expert", moduleEnergy, moduleNum);
81 fill(
"ZDCall", moduleEnergy, moduleNum);
85 fill(trig +
"_expert", e_A, e_C);
86 fill(
"ZDCall", e_A, e_C);
88 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Define enumerations for event-level ZDC data.
virtual StatusCode initialize() override
initialize
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerKey
virtual StatusCode initialize() override
initialize
Gaudi::Property< std::vector< std::string > > m_triggerList
FwdZDCMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
virtual ~FwdZDCMonitoringAlg()
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleCalibEnergyKey
Declare a monitored scalar variable.
Handle class for reading a decoration on an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
@ ForwardDet
The forward detectors.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
static const unsigned int Physics