|
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>Go to the source code of this file.
Macros | |
| #define | CLEAN_OUTPUT |
| #define | TEST_VECTOR_ENGINE_RESTORE |
| #define | VERBOSER |
| #define | VERBOSER2 |
Functions | |
| std::ofstream | output ("testVectorSave.cout") |
| bool | equals01 (const std::vector< double > &ab) |
| bool | equals (double a, double b) |
| std::vector< double > | aSequence (int n) |
| template<class E > | |
| int | vectorTest64 (int n) |
| template<> | |
| int | vectorTest64< NonRandomEngine > (int n) |
| template<class E > | |
| std::vector< unsigned long > | vectorRestore1 (int n, std::vector< double > &v) |
| template<> | |
| std::vector< unsigned long > | vectorRestore1< NonRandomEngine > (int n, std::vector< double > &v) |
| template<class E > | |
| int | vectorRestore2 (const std::vector< unsigned long > state, const std::vector< double > &v) |
| template<class E > | |
| int | vectorRestore (int n) |
| int | main () |
| #define CLEAN_OUTPUT |
Definition at line 11 of file testVectorSave.cc.
| #define TEST_VECTOR_ENGINE_RESTORE |
Definition at line 23 of file testVectorSave.cc.
| #define VERBOSER |
Definition at line 25 of file testVectorSave.cc.
| #define VERBOSER2 |
Definition at line 26 of file testVectorSave.cc.
| std::vector<double> aSequence | ( | int | n | ) |
Definition at line 40 of file testVectorSave.cc.
References f(), and CLHEP::detail::n.
Referenced by vectorRestore1< NonRandomEngine >(), and vectorTest64< NonRandomEngine >().
Definition at line 34 of file testVectorSave.cc.
References a, b, and equals01().
| bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 31 of file testVectorSave.cc.
Referenced by equals().
| int main | ( | ) |
Definition at line 206 of file testVectorSave.cc.
References output().
| std::ofstream output | ( | "testVectorSave.cout" | ) |
| int vectorRestore | ( | int | n | ) |
Definition at line 191 of file testVectorSave.cc.
References CLHEP::detail::n.
| std::vector<unsigned long> vectorRestore1 | ( | int | n, |
| std::vector< double > & | v | ||
| ) |
Definition at line 103 of file testVectorSave.cc.
References CLHEP::detail::n, and output().
| std::vector<unsigned long> vectorRestore1< NonRandomEngine > | ( | int | n, |
| std::vector< double > & | v | ||
| ) |
Definition at line 119 of file testVectorSave.cc.
References aSequence(), CLHEP::NonRandomEngine::engineName(), CLHEP::NonRandomEngine::flat(), CLHEP::detail::n, output(), CLHEP::NonRandomEngine::put(), and CLHEP::NonRandomEngine::setRandomSequence().
| int vectorRestore2 | ( | const std::vector< unsigned long > | state, |
| const std::vector< double > & | v | ||
| ) |
Definition at line 138 of file testVectorSave.cc.
References a, CLHEP::HepRandomEngine::flat(), CLHEP::HepRandomEngine::name(), CLHEP::HepRandomEngine::newEngine(), and output().
| int vectorTest64 | ( | int | n | ) |
Definition at line 56 of file testVectorSave.cc.
References output().
| int vectorTest64< NonRandomEngine > | ( | int | n | ) |
Definition at line 77 of file testVectorSave.cc.
References aSequence(), CLHEP::NonRandomEngine::engineName(), output(), and CLHEP::NonRandomEngine::setRandomSequence().
1.8.13