Functions used in NuRandomService tests. More...
#include <exception>
#include <string>
#include "canvas/Utilities/Exception.h"
#include "art/Framework/Core/detail/EngineCreator.h"
#include "art/Framework/Services/Optional/RandomNumberGenerator.h"
Go to the source code of this file.
Namespaces | |
CLHEP | |
testing | |
LArSoft test utilities. | |
testing::NuRandomService | |
Typedefs | |
using | testing::NuRandomService::seed_t = art::detail::EngineCreator::seed_t |
Type of seed. More... | |
Functions | |
bool | testing::NuRandomService::isSeedServiceException (std::exception const &e) |
Returns whether the exception looks to be from NuRandomService. More... | |
bool | testing::NuRandomService::isSeedServiceException (std::exception const &e, art::errors::ErrorCodes code) |
Returns whether the exception looks to be from NuRandomService and has specified code. More... | |
unsigned short | testing::NuRandomService::RollStat (CLHEP::RandFlat &rand) |
Extracts "statistics" from a flat random number distribution. More... | |
std::string | testing::NuRandomService::CreateCharacter (CLHEP::HepRandomEngine &engine) |
Creates a "character statistics" using the specified random engine. More... | |
seed_t | testing::NuRandomService::readSeed (CLHEP::HepRandomEngine const &engine) |
Returns the seed of the specified engine (CLHEP overload) More... | |
Functions used in NuRandomService tests.
Definition in file SeedTestUtils.h.