Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ReadAlg.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 // Framework include files
14 #include <GaudiKernel/Algorithm.h> // Required for inheritance
15 #include <GaudiKernel/IIncidentListener.h> // Required for inheritance
16 
17 // Forward declarations
18 class IIncidentSvc;
19 
27 class ReadAlg : public Algorithm, virtual public IIncidentListener {
32  Gaudi::Property<std::string> m_incidentName{ this, "IncidentName", "", "incident name of records service" };
33 
34 public:
38  StatusCode initialize() override;
40  StatusCode finalize() override;
42  StatusCode execute() override;
44  void handle( const Incident& incident ) override;
45 };
ReadAlg::finalize
StatusCode finalize() override
Finalize.
Definition: ReadAlg.cpp:81
ReadAlg::initialize
StatusCode initialize() override
Initialize.
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
ReadAlg::execute
StatusCode execute() override
Event callback.
ReadAlg::m_incidentName
Gaudi::Property< std::string > m_incidentName
Definition: ReadAlg.h:32
ReadAlg::m_recordSvc
SmartIF< IDataProviderSvc > m_recordSvc
Reference to run records data service.
Definition: ReadAlg.h:29
IIncidentListener
Definition: IIncidentListener.h:23
StatusCode
Definition: StatusCode.h:64
SmartIF< IDataProviderSvc >
ReadAlg::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Reference to incident service.
Definition: ReadAlg.h:31
ReadAlg::handle
void handle(const Incident &incident) override
IIncidentListener override: Inform that a new incident has occured.
Definition: ReadAlg.cpp:91
ReadAlg
Definition: ReadAlg.h:27
IIncidentListener.h
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:98
IIncidentSvc
Definition: IIncidentSvc.h:30
Incident
Definition: Incident.h:24
Gaudi::Property< std::string >