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_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 10 of file testAnonymousEngineRestore.cc.
#define TEST_ANONYMOUS_ENGINE_RESTORE |
Definition at line 22 of file testAnonymousEngineRestore.cc.
#define TEST_ANONYMOUS_RESTORE_STATICS |
Definition at line 23 of file testAnonymousEngineRestore.cc.
#define VERBOSER |
Definition at line 25 of file testAnonymousEngineRestore.cc.
#define VERBOSER2 |
Definition at line 26 of file testAnonymousEngineRestore.cc.
int anonymousRestore | ( | int | n | ) |
Definition at line 186 of file testAnonymousEngineRestore.cc.
void anonymousRestore1 | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 121 of file testAnonymousEngineRestore.cc.
References output().
void anonymousRestore1< NonRandomEngine > | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 137 of file testAnonymousEngineRestore.cc.
References aSequence(), CLHEP::NonRandomEngine::engineName(), CLHEP::NonRandomEngine::flat(), output(), and CLHEP::NonRandomEngine::setRandomSequence().
int anonymousRestore2 | ( | const std::vector< double > & | v | ) |
Definition at line 157 of file testAnonymousEngineRestore.cc.
References a, CLHEP::HepRandomEngine::newEngine(), and output().
int anonymousRestoreStatics | ( | ) |
Definition at line 231 of file testAnonymousEngineRestore.cc.
References captureStatics(), equals(), CLHEP::HepRandomEngine::flat(), CLHEP::HepRandomEngine::name(), output(), randomizeStatics(), restoreStatics(), saveStatics(), and CLHEP::HepRandom::setTheEngine().
int anonymousRestoreStatics1 | ( | ) |
Definition at line 195 of file testAnonymousEngineRestore.cc.
References captureStatics(), CLHEP::HepRandomEngine::name(), output(), randomizeStatics(), restoreStatics(), saveStatics(), and CLHEP::HepRandom::setTheEngine().
std::vector< double > aSequence | ( | int | n | ) |
Definition at line 43 of file testAnonymousEngineRestore.cc.
References f().
Referenced by anonymousRestore1< NonRandomEngine >().
std::vector< double > captureStatics | ( | ) |
Definition at line 78 of file testAnonymousEngineRestore.cc.
References CLHEP::RandBinomial::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussQ::shoot(), CLHEP::RandGaussT::shoot(), CLHEP::RandLandau::shoot(), CLHEP::RandSkewNormal::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandBit::shootBit(), and CLHEP::RandFlat::shootBit().
Referenced by anonymousRestoreStatics(), and anonymousRestoreStatics1().
Definition at line 37 of file testAnonymousEngineRestore.cc.
References a, b, and equals01().
Referenced by anonymousRestoreStatics().
bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 34 of file testAnonymousEngineRestore.cc.
Referenced by equals().
int main | ( | ) |
Definition at line 308 of file testAnonymousEngineRestore.cc.
References output().
std::ofstream output | ( | "testAnonymousEngineRestore.cout" | ) |
void randomizeStatics | ( | int | n | ) |
Definition at line 55 of file testAnonymousEngineRestore.cc.
References CLHEP::RandBinomial::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussQ::shoot(), CLHEP::RandGaussT::shoot(), CLHEP::RandLandau::shoot(), CLHEP::RandSkewNormal::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandBit::shootBit(), and CLHEP::RandFlat::shootBit().
Referenced by anonymousRestoreStatics(), and anonymousRestoreStatics1().
void restoreStatics | ( | std::string | filename | ) |
Definition at line 111 of file testAnonymousEngineRestore.cc.
Referenced by anonymousRestoreStatics(), and anonymousRestoreStatics1().
void saveStatics | ( | std::string | filename | ) |
Definition at line 103 of file testAnonymousEngineRestore.cc.
Referenced by anonymousRestoreStatics(), and anonymousRestoreStatics1().