Project
Loading...
Searching...
No Matches
testSimRandom.cxx File Reference

Checks that o2::base::simRandom() defaults to gRandom and is per thread. More...

#include <boost/test/unit_test.hpp>
#include "DetectorsBase/SimRandom.h"
#include <TRandom.h>
#include <TRandom3.h>
#include <thread>
#include <vector>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test SimRandom
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (defaults_to_gRandom)
 
 BOOST_AUTO_TEST_CASE (per_thread_generators)
 

Detailed Description

Checks that o2::base::simRandom() defaults to gRandom and is per thread.

Author
Sandro Wenzel (CERN)

Definition in file testSimRandom.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 18 of file testSimRandom.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file testSimRandom.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test SimRandom

Definition at line 16 of file testSimRandom.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( defaults_to_gRandom  )

Definition at line 27 of file testSimRandom.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( per_thread_generators  )

Definition at line 37 of file testSimRandom.cxx.