ATLAS Offline Software
TrkDetDescrUnitTestBase.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 // TrkDetDescrUnitTestBase.h, (c) ATLAS Detector software
8 
9 #ifndef TRKDETDESCRUNITTESTS_TRKDETDESCRUNITTESTBASE_H
10 #define TRKDETDESCRUNITTESTS_TRKDETDESCRUNITTESTBASE_H
11 
12 // Athena & Gaudi includes
14 #include "GaudiKernel/RndmGenerators.h"
15 
16 namespace Trk {
17 
18 
28 
29  public:
30 
32  TrkDetDescrUnitTestBase(const std::string& name, ISvcLocator* pSvcLocator);
33 
35  virtual ~TrkDetDescrUnitTestBase();
36 
39 
42 
45 
46  /* specify the test here */
47  virtual StatusCode runTest() = 0;
48 
49  /* book the TTree branches */
50  virtual StatusCode bookTree();
51 
52  /* initalizeTest, this includes loading of tools */
53  virtual StatusCode initializeTest();
54 
55  protected:
57  Rndm::Numbers* m_gaussDist;
58  Rndm::Numbers* m_flatDist;
59 
61  size_t m_numTests;
62 
63 
64  };
65 
66 
67 }
68 
69 #endif
70 
Trk::TrkDetDescrUnitTestBase::m_flatDist
Rndm::Numbers * m_flatDist
Definition: TrkDetDescrUnitTestBase.h:58
Trk::TrkDetDescrUnitTestBase::m_numTests
size_t m_numTests
number of tests
Definition: TrkDetDescrUnitTestBase.h:61
Trk::TrkDetDescrUnitTestBase::execute
StatusCode execute()
standard Athena-Algorithm method
Definition: TrkDetDescrUnitTestBase.cxx:48
Trk::TrkDetDescrUnitTestBase::m_gaussDist
Rndm::Numbers * m_gaussDist
Random Number setup.
Definition: TrkDetDescrUnitTestBase.h:57
Trk::TrkDetDescrUnitTestBase
Definition: TrkDetDescrUnitTestBase.h:27
Trk::TrkDetDescrUnitTestBase::bookTree
virtual StatusCode bookTree()
Definition: TrkDetDescrUnitTestBase.cxx:60
Trk::TrkDetDescrUnitTestBase::runTest
virtual StatusCode runTest()=0
Trk::TrkDetDescrUnitTestBase::~TrkDetDescrUnitTestBase
virtual ~TrkDetDescrUnitTestBase()
Default Destructor.
Definition: TrkDetDescrUnitTestBase.cxx:21
AthAlgorithm.h
Trk::TrkDetDescrUnitTestBase::finalize
StatusCode finalize()
standard Athena-Algorithm method
Definition: TrkDetDescrUnitTestBase.cxx:53
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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::TrkDetDescrUnitTestBase::initialize
StatusCode initialize()
standard Athena-Algorithm method
Definition: TrkDetDescrUnitTestBase.cxx:27
Trk::TrkDetDescrUnitTestBase::initializeTest
virtual StatusCode initializeTest()
Definition: TrkDetDescrUnitTestBase.cxx:62
Trk::TrkDetDescrUnitTestBase::TrkDetDescrUnitTestBase
TrkDetDescrUnitTestBase(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: TrkDetDescrUnitTestBase.cxx:12