ATLAS Offline Software
Loading...
Searching...
No Matches
AthIncFirerAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef ATHENASERVICES_ATH_INCIDENT_FIRER_ALG_H
5#define ATHENASERVICES_ATH_INCIDENT_FIRER_ALG_H
6
8
9#include "Gaudi/Property.h"
10#include "GaudiKernel/IIncidentSvc.h"
11#include "GaudiKernel/ISvcLocator.h"
12#include "GaudiKernel/ServiceHandle.h"
13
14#include <vector>
15#include <string>
16
17
24public:
25 AthIncFirerAlg(const std::string& name, ISvcLocator* pSvcLocator);
26 virtual StatusCode initialize() override;
27 virtual StatusCode execute(const EventContext& ctx) const override;
28
29private:
30 Gaudi::Property<std::vector<std::string>> m_incidents{this, "Incidents", {}, "List of incidents to fire"};
31 Gaudi::Property<bool> m_serial{this, "FireSerial", false, "Whether to fire serial incidents"};
32
34};
35
36#endif
AthIncFirerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_serial
Gaudi::Property< std::vector< std::string > > m_incidents
ServiceHandle< IIncidentSvc > m_incSvc
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.