ATLAS Offline Software
PerfMonTestErroneousAlg.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // PerfMonTestErroneousAlg.h
8 // Header file for class PerfMonTest::ErroneousAlg
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef PERFMONTESTS_PERFMONTESTERRONEOUSALG_H
12 #define PERFMONTESTS_PERFMONTESTERRONEOUSALG_H
13 
14 // STL includes
15 #include <string>
16 #include <list>
17 #include <vector>
18 
19 
20 // FrameWork includes
22 #include "GaudiKernel/ServiceHandle.h"
23 
24 namespace PerfMonTest {
25 
26 class ErroneousAlg : public AthAlgorithm
27 {
28 
29  public:
31 
32  virtual StatusCode execute() override;
33 
34  private:
35 
38  bool invalidRead();
39  bool mismatchedFree();
40 
42  {
43  return not shouldIJump;
44  }
45 
46 };
47 
48 
49 } //> end namespace PerfMonTest
50 
51 #endif //> PERFMONTESTS_PERFMONTESTERRONEOUSALG_H
PerfMonTest::ErroneousAlg::mismatchedFree
bool mismatchedFree()
Definition: PerfMonTestErroneousAlg.cxx:94
PerfMonTest::ErroneousAlg::shouldIJump
bool shouldIJump(bool shouldIJump)
Definition: PerfMonTestErroneousAlg.h:41
PerfMonTest::ErroneousAlg::invalidRead
bool invalidRead()
Definition: PerfMonTestErroneousAlg.cxx:59
PerfMonTest::ErroneousAlg::execute
virtual StatusCode execute() override
Definition: PerfMonTestErroneousAlg.cxx:22
AthAlgorithm.h
PerfMonTest::ErroneousAlg
Definition: PerfMonTestErroneousAlg.h:27
PerfMonTest::ErroneousAlg::jumpOnUninitializedValue
bool jumpOnUninitializedValue()
three member functions which will exhibit faulty behaviour
Definition: PerfMonTestErroneousAlg.cxx:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PerfMonTest
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
Definition: Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:7
AthAlgorithm
Definition: AthAlgorithm.h:47
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor: