![]() |
ATLAS Offline Software
|
functions & macros to test the difference between floats More...
Classes | |
| class | DummyRCUSvc |
| class | InitGaudi |
| Generic test fixture to setup Gaudi. More... | |
| class | InitGaudiGoogleTest |
| struct | Leakcheck |
| struct | LeakCheckDisable |
| class | normal_distribution |
| struct | RNG |
| Generator compatible with the STL RandomNumberGenerator. More... | |
| class | TestAlloc |
| To test handling of non-standard memory allocators. More... | |
| class | TestedValue |
| class | uniform_real_distribution |
| struct | URNG |
| Generator compatible with the C++11 STL UniformRandomNumberGenerator. More... | |
Functions | |
| bool | initGaudi (ISvcLocator *&pSvcLoc) |
| Minimal Gaudi initialization for unit testing without job options. | |
| bool | initGaudi (const std::string &jobOptsFile, ISvcLocator *&pSvcLoc) |
| Minimal Gaudi initialization for unit testing. | |
| void | referenceGaudiSymbols () |
| template<typename T> | |
| bool | cmp_eq (T a, T b) |
| template<> | |
| bool | cmp_eq< float > (float a, float b) |
| template<> | |
| bool | cmp_eq< double > (double a, double b) |
| bool | floatEQ (float lhs, float rhs) |
| bool | floatNEQ (float lhs, float rhs) |
| bool | isEqual (double x1, double x2, double thresh=1e-6) |
| uint32_t | rng_seed (uint32_t &seed) |
Generate a random number between 0 and rngmax. | |
| float | randf_seed (uint32_t &seed, float rmax, float rmin=0) |
Generate a floating-point random number between rmin and rmax. | |
| int | randi_seed (uint32_t &seed, int rmax, int rmin=0) |
Generate an integer random number between rmin and rmax. | |
| uint32_t rng | ATLAS_NOT_REENTRANT () |
| int randi | ATLAS_NOT_REENTRANT (int rmax, int rmin=0) |
| float randf | ATLAS_NOT_REENTRANT (float rmax, float rmin=0) |
| bool | setupStoreGate (std::string progname, std::string options_file="") |
| Helper for setting up StoreGate for regression tests. | |
| void | testCreate (StoreGateSvc &rSG) |
| void | testRecord (StoreGateSvc &rSG) |
| void | testSymLink (StoreGateSvc &rSG) |
| void | test_symlink2 (StoreGateSvc &rSG) |
| void | test_symlink3 (StoreGateSvc &rSG) |
| void | testContains (StoreGateSvc &rSG) |
| void | testFolders (StoreGateSvc &rSG) |
| void | testRetrieve (StoreGateSvc &rSG) |
| void | testTryRetrieve (StoreGateSvc &rSG) |
| void | testReadPrivateCopy (StoreGateSvc &rSG) |
| void | testRetrievePrivateCopy (StoreGateSvc &rSG) |
| void | testRemove (StoreGateSvc &rSG) |
| void testBind | ATLAS_NOT_THREAD_SAFE (StoreGateSvc &rSG) |
| void | testClear (StoreGateSvc &rSG) |
| void | testTransientSwap (StoreGateSvc &rSG) |
| void | testVersionedKey (StoreGateSvc &rSG) |
| void | testKeys (StoreGateSvc &rSG) |
| void | testRetrieveAux (StoreGateSvc &rSG) |
| void | testBoundReset (StoreGateSvc &rSG) |
| void | testRecordObject (StoreGateSvc &rSG) |
| void | testWriteAux (StoreGateSvc &rSG) |
| void | varHandleTest (SGTest::TestStore &) |
| void | resetableTest (void) |
| void | refCountTest (void) |
| bool | initMcEventCollection (ISvcLocator *&pSvcLoc, std::vector< HepMC::GenParticlePtr > &genPartVector, const bool initGaudi=true) |
| void | populateGenEvent (HepMC::GenEvent &ge, int pdgid1, int pdgid2, std::vector< HepMC::GenParticlePtr > &genPartVector) |
| void | populateFilteredGenEvent (HepMC::GenEvent &ge, std::vector< HepMC::GenParticlePtr > &genPartVector) |
| int | maximumBarcode (std::vector< HepMC::GenParticlePtr > &genPartList) |
Variables | |
| std::unordered_set< void * > * | allocs = nullptr |
| static const uint32_t | rngmax = static_cast<uint32_t> (-1) |
| Maximum number generated. | |
| static uint32_t | seed = 1 |
functions & macros to test the difference between floats
|
inline |
Definition at line 90 of file random.h.
|
inline |
Definition at line 94 of file random.h.
|
inline |
Definition at line 92 of file random.h.
| void testBind Athena_test::ATLAS_NOT_THREAD_SAFE | ( | StoreGateSvc & | rSG | ) |
| bool Athena_test::cmp_eq< double > | ( | double | a, |
| double | b ) |
| bool Athena_test::cmp_eq< float > | ( | float | a, |
| float | b ) |
|
inline |
Definition at line 17 of file FLOATassert.h.
|
inline |
Definition at line 21 of file FLOATassert.h.
| bool Athena_test::initGaudi | ( | const std::string & | jobOptsFile, |
| ISvcLocator *& | pSvcLoc ) |
Minimal Gaudi initialization for unit testing.
| jobOptsFile | job options file name |
| pSvcLoc | returns a pointer to the Gaudi ServiceLocator |
Definition at line 29 of file initGaudi.cxx.
| bool Athena_test::initGaudi | ( | ISvcLocator *& | pSvcLoc | ) |
Minimal Gaudi initialization for unit testing without job options.
| pSvcLoc | returns a pointer to the Gaudi ServiceLocator |
Definition at line 24 of file initGaudi.cxx.
| bool Athena_test::initMcEventCollection | ( | ISvcLocator *& | pSvcLoc, |
| std::vector< HepMC::GenParticlePtr > & | genPartVector, | ||
| const bool | initGaudi = true ) |
Definition at line 23 of file initMcEventCollection.cxx.
|
inline |
Definition at line 26 of file FLOATassert.h.
| int Athena_test::maximumBarcode | ( | std::vector< HepMC::GenParticlePtr > & | genPartList | ) |
Definition at line 58 of file initMcEventCollection.cxx.
| void Athena_test::populateFilteredGenEvent | ( | HepMC::GenEvent & | ge, |
| std::vector< HepMC::GenParticlePtr > & | genPartVector ) |
< set decay status
Definition at line 97 of file initMcEventCollection.cxx.
| void Athena_test::populateGenEvent | ( | HepMC::GenEvent & | ge, |
| int | pdgid1, | ||
| int | pdgid2, | ||
| std::vector< HepMC::GenParticlePtr > & | genPartVector ) |
Definition at line 69 of file initMcEventCollection.cxx.
|
inline |
|
inline |
Generate an integer random number between rmin and rmax.
| void Athena_test::refCountTest | ( | void | ) |
| void Athena_test::referenceGaudiSymbols | ( | ) |
Definition at line 94 of file initGaudi.cxx.
| void Athena_test::resetableTest | ( | void | ) |
|
inline |
| bool Athena_test::setupStoreGate | ( | std::string | progname, |
| std::string | options_file = "" ) |
Helper for setting up StoreGate for regression tests.
| progname | Program name (argv[0]). |
| options_file | Name of the JO text file to read. If defaulted, one will be generated. |
Get StoreGateSvc
Definition at line 28 of file setupStoreGate.cxx.
| void Athena_test::test_symlink2 | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::test_symlink3 | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testBoundReset | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testClear | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testContains | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testCreate | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testFolders | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testKeys | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testReadPrivateCopy | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRecord | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRecordObject | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRemove | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRetrieve | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRetrieveAux | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testRetrievePrivateCopy | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testSymLink | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testTransientSwap | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testTryRetrieve | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testVersionedKey | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::testWriteAux | ( | StoreGateSvc & | rSG | ) |
| void Athena_test::varHandleTest | ( | SGTest::TestStore & | ) |
| std::unordered_set<void*>* Athena_test::allocs = nullptr |
Definition at line 51 of file leakcheck.h.
|
static |