The Gaudi Framework  v36r11 (bdb84f5f)
StopperAlg.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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 #ifndef GAUDIEXAMPLE_STOPPERALG_H
12 #define GAUDIEXAMPLE_STOPPERALG_H 1
13 
14 // Include files
16 #include "GaudiKernel/MsgStream.h"
17 #include <Gaudi/Property.h>
18 
24 class StopperAlg : public GaudiAlgorithm {
25 public:
28 
30  StatusCode initialize() override;
31  StatusCode execute() override;
32  StatusCode finalize() override;
33 
34 private:
35  Gaudi::Property<int> m_stopcount{ this, "StopCount", 3 };
36 };
37 
38 #endif // GAUDIEXAMPLE_STOPPERALG_H
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm(std::string name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: GaudiAlgorithm.cpp:45
StopperAlg
Definition: StopperAlg.h:24
StatusCode
Definition: StatusCode.h:65
StopperAlg::initialize
StatusCode initialize() override
Three mandatory member functions of any algorithm.
Definition: StopperAlg.cpp:24
GaudiAlgorithm
Definition: GaudiAlgorithm.h:104
StopperAlg::finalize
StatusCode finalize() override
Definition: StopperAlg.cpp:47
GaudiAlgorithm.h
StopperAlg::execute
StatusCode execute() override
standard execution method
Definition: StopperAlg.cpp:30
StopperAlg::m_stopcount
Gaudi::Property< int > m_stopcount
Definition: StopperAlg.h:35
Gaudi::Property< int >
Property.h
MsgStream.h