The Gaudi Framework  master (933c680c)
Loading...
Searching...
No Matches
QotdAlg.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\***********************************************************************************/
12#pragma once
13
19
20// Include files
23
24namespace GaudiEx {
25
26 class QotdAlg : public Algorithm {
27
28 public:
29 // Constructor of this form must be provided
30 QotdAlg( const std::string& name, ISvcLocator* pSvcLocator );
31
32 // Three mandatory member functions of any algorithm
33 StatusCode initialize() override;
34 StatusCode execute() override;
35 StatusCode finalize() override;
36
37 private:
39 unsigned int m_evtCnt;
40 };
41
42} // namespace GaudiEx
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
const std::string & name() const override
The identifying name of the algorithm object.
StatusCode finalize() override
Definition QotdAlg.cpp:54
StatusCode execute() override
Definition QotdAlg.cpp:37
QotdAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition QotdAlg.cpp:21
StatusCode initialize() override
Definition QotdAlg.cpp:28
unsigned int m_evtCnt
a dumb event counter
Definition QotdAlg.h:39
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64