CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include "CLHEP/Random/Randomize.h"
#include "CLHEP/Random/NonRandomEngine.h"
#include "CLHEP/Random/defs.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include <cassert>
Go to the source code of this file.
Defines | |
#define | CLEAN_OUTPUT |
#define | TEST_ENGINE_NAMES |
#define | TEST_INSTANCE_METHODS |
#define | VERBOSER |
#define | VERBOSER2 |
Functions | |
std::ofstream | output ("testInstanceRestore.cout") |
bool | equals01 (const std::vector< double > &ab) |
bool | equals (double a, double b) |
std::vector< double > | aSequence (int n) |
template<class E > | |
int | checkEngineName (const std::string &name) |
template<class E , class D > | |
int | checkEngine () |
template<class E > | |
int | checkEngineInstanceSave (E &e) |
template<class E , class D > | |
int | checkSaveDistribution (D &d, int nth) |
template<class E > | |
int | checkRandGeneralDistribution (RandGeneral &d, int nth) |
template<class E > | |
int | checkDistributions () |
int | main () |
#define CLEAN_OUTPUT |
Definition at line 10 of file testInstanceRestore.cc.
#define TEST_ENGINE_NAMES |
Definition at line 23 of file testInstanceRestore.cc.
#define TEST_INSTANCE_METHODS |
Definition at line 24 of file testInstanceRestore.cc.
#define VERBOSER |
Definition at line 26 of file testInstanceRestore.cc.
#define VERBOSER2 |
Definition at line 27 of file testInstanceRestore.cc.
Definition at line 41 of file testInstanceRestore.cc.
References f(), and CLHEP::detail::n.
int checkDistributions | ( | ) |
Definition at line 242 of file testInstanceRestore.cc.
int checkEngine | ( | ) |
Definition at line 80 of file testInstanceRestore.cc.
References output().
int checkEngineInstanceSave | ( | E & | e | ) |
Definition at line 95 of file testInstanceRestore.cc.
int checkEngineName | ( | const std::string & | name | ) |
Definition at line 54 of file testInstanceRestore.cc.
References output().
int checkRandGeneralDistribution | ( | RandGeneral & | d, |
int | nth | ||
) |
Definition at line 185 of file testInstanceRestore.cc.
References CLHEP::RandGeneral::engine(), equals(), CLHEP::HepRandomEngine::name(), CLHEP::RandGeneral::name(), and output().
int checkSaveDistribution | ( | D & | d, |
int | nth | ||
) |
Definition at line 128 of file testInstanceRestore.cc.
Definition at line 35 of file testInstanceRestore.cc.
References a, b, and equals01().
Definition at line 32 of file testInstanceRestore.cc.
int main | ( | ) |
Definition at line 337 of file testInstanceRestore.cc.
References aSequence(), checkEngineInstanceSave(), output(), CLHEP::NonRandomEngine::setRandomSequence(), and CLHEP::RandGaussQ::shoot().
std::ofstream output | ( | "testInstanceRestore.cout" | ) |