Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
24 public:
25  AthIncFirerAlg(const std::string& name, ISvcLocator* pSvcLocator);
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute(const EventContext& ctx) const override;
28 
29 private:
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::AthIncFirerAlg
AthIncFirerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AthIncFirerAlg.cxx:9
AthIncFirerAlg::m_incidents
Gaudi::Property< std::vector< std::string > > m_incidents
Definition: AthIncFirerAlg.h:30
AthIncFirerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: AthIncFirerAlg.cxx:26
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
AthIncFirerAlg::m_incSvc
ServiceHandle< IIncidentSvc > m_incSvc
Definition: AthIncFirerAlg.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AthIncFirerAlg::initialize
virtual StatusCode initialize() override
Definition: AthIncFirerAlg.cxx:15
AthIncFirerAlg
Algorithm to fire given list of incidents on execute.
Definition: AthIncFirerAlg.h:23
AthIncFirerAlg::m_serial
Gaudi::Property< bool > m_serial
Definition: AthIncFirerAlg.h:31
ServiceHandle< IIncidentSvc >