ATLAS Offline Software
TrkExUnitTestBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TrkExUnitTestBase.h, (c) ATLAS Detector software
8 
9 #ifndef TRKDETDESCRUNITTESTS_TrkExUnitTestBase_H
10 #define TRKDETDESCRUNITTESTS_TrkExUnitTestBase_H
11 
12 // Athena & Gaudi includes
14 #include "GaudiKernel/RndmGenerators.h"
15 
16 namespace Trk {
26  public:
28  TrkExUnitTestBase(const std::string& name, ISvcLocator* pSvcLocator);
29 
31  virtual ~TrkExUnitTestBase();
32 
35 
38 
41 
42  /* specify the test here */
43  virtual StatusCode runTest() = 0;
44 
45  /* specify the scan here */
46  virtual StatusCode runScan() = 0;
47 
48  /* book the TTree branches */
49  virtual StatusCode bookTree();
50 
51  /* initalizeTest, this includes loading of tools */
52  virtual StatusCode initializeTest();
53  protected:
55  std::unique_ptr<Rndm::Numbers> m_gaussDist;
56  std::unique_ptr<Rndm::Numbers> m_flatDist;
57  std::unique_ptr<Rndm::Numbers> m_landauDist;
58 
60  size_t m_numTests;
61 
63  bool m_scanMode;
64  };
65 }
66 
67 #endif
Trk::TrkExUnitTestBase::m_flatDist
std::unique_ptr< Rndm::Numbers > m_flatDist
Definition: TrkExUnitTestBase.h:56
Trk::TrkExUnitTestBase::TrkExUnitTestBase
TrkExUnitTestBase(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: TrkExUnitTestBase.cxx:16
Trk::TrkExUnitTestBase::execute
StatusCode execute()
standard Athena-Algorithm method
Definition: TrkExUnitTestBase.cxx:47
Trk::TrkExUnitTestBase::runTest
virtual StatusCode runTest()=0
Trk::TrkExUnitTestBase::initializeTest
virtual StatusCode initializeTest()
Definition: TrkExUnitTestBase.cxx:60
Trk::TrkExUnitTestBase::m_landauDist
std::unique_ptr< Rndm::Numbers > m_landauDist
Definition: TrkExUnitTestBase.h:57
AthAlgorithm.h
Trk::TrkExUnitTestBase::initialize
StatusCode initialize()
standard Athena-Algorithm method
Definition: TrkExUnitTestBase.cxx:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::TrkExUnitTestBase::~TrkExUnitTestBase
virtual ~TrkExUnitTestBase()
Default Destructor.
Trk::TrkExUnitTestBase::m_numTests
size_t m_numTests
number of tests
Definition: TrkExUnitTestBase.h:60
AthAlgorithm
Definition: AthAlgorithm.h:47
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::TrkExUnitTestBase::bookTree
virtual StatusCode bookTree()
Definition: TrkExUnitTestBase.cxx:58
Trk::TrkExUnitTestBase::finalize
StatusCode finalize()
standard Athena-Algorithm method
Definition: TrkExUnitTestBase.cxx:53
Trk::TrkExUnitTestBase::m_scanMode
bool m_scanMode
enable scan mode
Definition: TrkExUnitTestBase.h:63
Trk::TrkExUnitTestBase
Definition: TrkExUnitTestBase.h:25
Trk::TrkExUnitTestBase::runScan
virtual StatusCode runScan()=0
Trk::TrkExUnitTestBase::m_gaussDist
std::unique_ptr< Rndm::Numbers > m_gaussDist
Random Number setup.
Definition: TrkExUnitTestBase.h:55