|
ATLAS Offline Software
|
Go to the documentation of this file.
36 return StatusCode::SUCCESS;
39 ATH_MSG_WARNING(
"Error in LUCROD decoding, cannot write monitoring histograms. Skipping this event");
40 return StatusCode::SUCCESS;
44 if (!trigDecTool->isPassed(trig, TrigDefs::Physics))
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;
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
virtual StatusCode initialize() override
initialize
Gaudi::Property< std::vector< std::string > > m_triggerList
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
virtual ~FwdZDCMonitoringAlg()
Base class for Athena Monitoring Algorithms.
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleCalibEnergyKey
Handle class for reading a decoration on an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
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?
virtual StatusCode initialize() override
initialize
#define ATH_MSG_WARNING(x)
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Declare a monitored scalar variable.
FwdZDCMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
Define enumerations for event-level ZDC data.