CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#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_ENGINE_COPY |
#define | VERBOSER |
#define | VERBOSER2 |
Functions | |
std::ofstream | output ("testEngineCopy.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 > | |
E | vectorRestore1 (int n, std::vector< double > &v) |
template<> | |
NonRandomEngine | vectorRestore1< NonRandomEngine > (int n, std::vector< double > &v) |
template<class E > | |
int | vectorRestore2 (E &f, const std::vector< double > &v) |
template<class E > | |
int | vectorRestore (int n) |
int | main () |
#define CLEAN_OUTPUT |
Definition at line 12 of file testEngineCopy.cc.
#define TEST_ENGINE_COPY |
Definition at line 24 of file testEngineCopy.cc.
#define VERBOSER |
Definition at line 26 of file testEngineCopy.cc.
#define VERBOSER2 |
Definition at line 27 of file testEngineCopy.cc.
std::vector< double > aSequence | ( | int | n | ) |
Definition at line 41 of file testEngineCopy.cc.
References f(), and CLHEP::detail::n.
Referenced by vectorRestore1< NonRandomEngine >(), and vectorTest64< NonRandomEngine >().
Definition at line 35 of file testEngineCopy.cc.
References a, b, and equals01().
bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 32 of file testEngineCopy.cc.
Referenced by equals().
int main | ( | ) |
Definition at line 187 of file testEngineCopy.cc.
References output().
std::ofstream output | ( | "testEngineCopy.cout" | ) |
int vectorRestore | ( | int | n | ) |
Definition at line 172 of file testEngineCopy.cc.
References f(), and CLHEP::detail::n.
E vectorRestore1 | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 112 of file testEngineCopy.cc.
References f(), CLHEP::detail::n, and output().
NonRandomEngine vectorRestore1< NonRandomEngine > | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 127 of file testEngineCopy.cc.
References aSequence(), f(), CLHEP::NonRandomEngine::flat(), CLHEP::detail::n, output(), and CLHEP::NonRandomEngine::setRandomSequence().
int vectorRestore2 | ( | E & | f, |
const std::vector< double > & | v | ||
) |
Definition at line 147 of file testEngineCopy.cc.
int vectorTest64 | ( | int | n | ) |
Definition at line 55 of file testEngineCopy.cc.
References output().
int vectorTest64< NonRandomEngine > | ( | int | n | ) |
Definition at line 83 of file testEngineCopy.cc.
References aSequence(), output(), and CLHEP::NonRandomEngine::setRandomSequence().