19 ISvcLocator* pSvcLocator )
30 return StatusCode::SUCCESS;
41 const auto & group =
getGroup(
"default");
48 return StatusCode::FAILURE;
52 auto lb =
Scalar(
"LB", evtinfo->lumiBlock());
62 std::iota(detstatevec_idx.begin(), detstatevec_idx.end(), 0);
64 auto detstates =
Collection(
"detstates", detstatevec);
65 auto detstates_idx =
Collection(
"detstates_idx", detstatevec_idx);
69 detstatevec[i] = detstate;
70 if (detstate > worststate) worststate = detstate;
73 fill(group, detstates, detstates_idx);
80 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
Environment_t environment() const
Accessor functions for the environment.
virtual StatusCode initialize() override
initialize
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_TileStatusKey
ToolHandle< IDQFilterTool > m_atlasReadyFilter
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
DQTDataFlowMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
initialize
Declare a monitored scalar variable.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
EventFlagSubDet
Sub-detector types for which we store event-level flags.
@ nDets
Number of sub-detector type in this enumeration.
EventFlagErrorState
States that a given sub-detector could be in.
@ NotSet
The flag was not set to anything.
@ IS_SIMULATION
true: simulation, false: data
Generic monitoring tool for athena components.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
void fill(H5::Group &out_file, size_t iterations)