CLHEP 2.0.4.7 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.
Defines | |
#define | CLEAN_OUTPUT |
#define | TEST_ANONYMOUS_ENGINE_RESTORE |
#define | TEST_ANONYMOUS_RESTORE_STATICS |
#define | VERBOSER |
#define | VERBOSER2 |
Functions | |
std::ofstream | output ("testAnonymousEngineRestore.cout") |
template<class E1, class E2> | |
int | anonymousRestoreStatics () |
bool | equals01 (const std::vector< double > &ab) |
bool | equals (double a, double b) |
std::vector< double > | aSequence (int n) |
void | randomizeStatics (int n) |
std::vector< double > | captureStatics () |
void | saveStatics (std::string filename) |
void | restoreStatics (std::string filename) |
template<class E> | |
void | anonymousRestore1 (int n, std::vector< double > &v) |
template<> | |
void | anonymousRestore1< NonRandomEngine > (int n, std::vector< double > &v) |
template<class E> | |
int | anonymousRestore2 (const std::vector< double > &v) |
template<class E> | |
int | anonymousRestore (int n) |
template<class E> | |
int | anonymousRestoreStatics1 () |
int | main () |
#define CLEAN_OUTPUT |
Definition at line 9 of file testAnonymousEngineRestore.cc.
#define TEST_ANONYMOUS_ENGINE_RESTORE |
Definition at line 21 of file testAnonymousEngineRestore.cc.
#define TEST_ANONYMOUS_RESTORE_STATICS |
Definition at line 22 of file testAnonymousEngineRestore.cc.
#define VERBOSER |
Definition at line 24 of file testAnonymousEngineRestore.cc.
#define VERBOSER2 |
Definition at line 25 of file testAnonymousEngineRestore.cc.
int anonymousRestore | ( | int | n | ) |
Definition at line 183 of file testAnonymousEngineRestore.cc.
void anonymousRestore1 | ( | int | n, | |
std::vector< double > & | v | |||
) |
void anonymousRestore1< NonRandomEngine > | ( | int | n, | |
std::vector< double > & | v | |||
) |
int anonymousRestore2 | ( | const std::vector< double > & | v | ) |
Definition at line 154 of file testAnonymousEngineRestore.cc.
References CLHEP::HepRandomEngine::flat(), and output().
int anonymousRestoreStatics | ( | ) |
Definition at line 1083 of file ranRestoreTest.cc.
References captureStatics(), equals(), CLHEP::HepRandomEngine::flat(), CLHEP::HepRandomEngine::name(), output(), randomizeStatics(), restoreStatics(), and saveStatics().
int anonymousRestoreStatics1 | ( | ) |
Definition at line 192 of file testAnonymousEngineRestore.cc.
References captureStatics(), CLHEP::HepRandomEngine::name(), output(), randomizeStatics(), restoreStatics(), and saveStatics().
std::vector<double> aSequence | ( | int | n | ) |
std::vector<double> captureStatics | ( | ) |
Definition at line 76 of file testAnonymousEngineRestore.cc.
bool equals | ( | double | a, | |
double | b | |||
) |
bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 33 of file testAnonymousEngineRestore.cc.
int main | ( | ) |
std::ofstream output | ( | "testAnonymousEngineRestore.cout" | ) |
void randomizeStatics | ( | int | n | ) |
Definition at line 54 of file testAnonymousEngineRestore.cc.
void restoreStatics | ( | std::string | filename | ) |
Definition at line 108 of file testAnonymousEngineRestore.cc.
void saveStatics | ( | std::string | filename | ) |
Definition at line 100 of file testAnonymousEngineRestore.cc.