ATLAS Offline Software
Loading...
Searching...
No Matches
TrkDetDescrUnitTestBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TrkDetDescrUnitTestBase.cxx, (c) ATLAS Detector software
8
9//TrkDetDescrUnitTests
11
12
18
20{
21 ATH_MSG_INFO( "Creating random number services, call bookTree() and initializeTest()" );
22
23 // intialize the random number generators
24 m_gaussDist = new Rndm::Numbers(randSvc(), Rndm::Gauss(0.,1.));
25 m_flatDist = new Rndm::Numbers(randSvc(), Rndm::Flat(0.,1.));
26
27 if (bookTree().isFailure()){
28 ATH_MSG_FATAL( "Could not book the TTree object" );
29 return StatusCode::FAILURE;
30 }
31
32 if (initializeTest().isFailure()){
33 ATH_MSG_FATAL( "Could not initialize the test" );
34 return StatusCode::FAILURE;
35 }
36
37 return StatusCode::SUCCESS;
38}
39
40StatusCode Trk::TrkDetDescrUnitTestBase::execute(const EventContext& /*ctx*/)
41{
42 return runTest();
43}
44
46{
47
48 ATH_MSG_INFO( "finalize()" );
49 return StatusCode::SUCCESS;
50}
51
52StatusCode Trk::TrkDetDescrUnitTestBase::bookTree() { return StatusCode::SUCCESS; }
53
54StatusCode Trk::TrkDetDescrUnitTestBase::initializeTest() { return StatusCode::SUCCESS; }
55
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
StatusCode finalize()
standard Athena-Algorithm method
Rndm::Numbers * m_gaussDist
Random Number setup.
virtual ~TrkDetDescrUnitTestBase()
Default Destructor.
StatusCode initialize()
standard Athena-Algorithm method
StatusCode execute(const EventContext &ctx)
standard Athena-Algorithm method
virtual StatusCode runTest()=0