ATLAS Offline Software
Loading...
Searching...
No Matches
TrkExUnitTestBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
16namespace Trk {
24
26 public:
29
31 StatusCode initialize();
32
34 StatusCode execute();
35
36 /* specify the test here */
37 virtual StatusCode runTest() = 0;
38
39 /* specify the scan here */
40 virtual StatusCode runScan() = 0;
41
42 /* book the TTree branches */
43 virtual StatusCode bookTree();
44
45 /* initalizeTest, this includes loading of tools */
46 virtual StatusCode initializeTest();
47 protected:
49 std::unique_ptr<Rndm::Numbers> m_gaussDist;
50 std::unique_ptr<Rndm::Numbers> m_flatDist;
51 std::unique_ptr<Rndm::Numbers> m_landauDist;
52
54 UnsignedIntegerProperty m_numTests{this, "NumberOfTestsPerEvent", 100};
55
57 BooleanProperty m_scanMode{this, "ScanMode", false};
58 };
59}
60
61#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Base class for all unit tests in the TrkEx package, gives access to gaussian and flat random numbers.
UnsignedIntegerProperty m_numTests
number of tests
BooleanProperty m_scanMode
enable scan mode
std::unique_ptr< Rndm::Numbers > m_gaussDist
Random Number setup.
virtual StatusCode bookTree()
virtual StatusCode runTest()=0
virtual StatusCode runScan()=0
virtual StatusCode initializeTest()
StatusCode initialize()
standard Athena-Algorithm method
std::unique_ptr< Rndm::Numbers > m_flatDist
std::unique_ptr< Rndm::Numbers > m_landauDist
StatusCode execute()
standard Athena-Algorithm method
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Ensure that the ATLAS eigen extensions are properly loaded.