CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
|
#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_ORIGINAL_SAVE |
#define | TEST_ENGINE_NAMES |
#define | TEST_INSTANCE_METHODS |
#define | TEST_SHARED_ENGINES |
#define | TEST_STATIC_SAVE |
#define | TEST_SAVE_STATIC_STATES |
#define | TEST_ANONYMOUS_ENGINE_RESTORE |
#define | TEST_ANONYMOUS_RESTORE_STATICS |
#define | TEST_VECTOR_ENGINE_RESTORE |
Functions | |
std::ofstream | output ("ranRestoreTest.cout") |
bool | equals01 (const std::vector< double > &ab) |
bool | equals (double a, double b) |
int | saveStepX () |
int | restoreStepX () |
int | BsaveStepX () |
int | BrestoreStepX () |
int | saveStep () |
int | restoreStep () |
int | BsaveStep () |
int | BrestoreStep () |
template<class E , class D > | |
int | fileNotThere () |
template<class E > | |
int | fileNotThereEngine () |
int | missingFile () |
template<class E , class D > | |
int | saveEngine (const char *filename) |
template<class E , class D > | |
int | checkSaveEngine (const char *filename) |
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 () |
template<class E , class D1 , class D2 > | |
int | checkSharingDistributions (D1 &d1, D2 &d2, int n1, int n2) |
template<class E > | |
int | checkSharing () |
std::vector< double > | aSequence (int n) |
template<class D > | |
int | staticSave (int n) |
template<class D > | |
int | staticSaveShootBit (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 () |
template<class E1 , class E2 > | |
int | anonymousRestoreStatics () |
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 () |
Variables | |
double | remembered_r2 |
double | remembered_r1005 |
double | remembered_r1006 |
double | remembered_r1007 |
#define CLEAN_OUTPUT |
Definition at line 11 of file ranRestoreTest.cc.
#define TEST_ANONYMOUS_ENGINE_RESTORE |
Definition at line 30 of file ranRestoreTest.cc.
#define TEST_ANONYMOUS_RESTORE_STATICS |
Definition at line 31 of file ranRestoreTest.cc.
#define TEST_ENGINE_NAMES |
Definition at line 25 of file ranRestoreTest.cc.
#define TEST_INSTANCE_METHODS |
Definition at line 26 of file ranRestoreTest.cc.
#define TEST_ORIGINAL_SAVE |
Definition at line 20 of file ranRestoreTest.cc.
#define TEST_SAVE_STATIC_STATES |
Definition at line 29 of file ranRestoreTest.cc.
#define TEST_SHARED_ENGINES |
Definition at line 27 of file ranRestoreTest.cc.
#define TEST_STATIC_SAVE |
Definition at line 28 of file ranRestoreTest.cc.
#define TEST_VECTOR_ENGINE_RESTORE |
Definition at line 32 of file ranRestoreTest.cc.
int anonymousRestore | ( | int | n | ) |
Definition at line 1049 of file ranRestoreTest.cc.
void anonymousRestore1 | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 988 of file ranRestoreTest.cc.
void anonymousRestore1< NonRandomEngine > | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 1004 of file ranRestoreTest.cc.
int anonymousRestore2 | ( | const std::vector< double > & | v | ) |
Definition at line 1024 of file ranRestoreTest.cc.
int anonymousRestoreStatics | ( | ) |
Definition at line 1090 of file ranRestoreTest.cc.
int anonymousRestoreStatics1 | ( | ) |
Definition at line 1058 of file ranRestoreTest.cc.
std::vector< double > aSequence | ( | int | n | ) |
Definition at line 724 of file ranRestoreTest.cc.
Referenced by anonymousRestore1< NonRandomEngine >(), and main().
int BrestoreStep | ( | ) |
Definition at line 218 of file ranRestoreTest.cc.
Referenced by main().
int BrestoreStepX | ( | ) |
Definition at line 125 of file ranRestoreTest.cc.
Referenced by main().
int BsaveStep | ( | ) |
Definition at line 192 of file ranRestoreTest.cc.
Referenced by main().
int BsaveStepX | ( | ) |
Definition at line 103 of file ranRestoreTest.cc.
Referenced by main().
std::vector< double > captureStatics | ( | ) |
Definition at line 947 of file ranRestoreTest.cc.
Referenced by anonymousRestoreStatics(), anonymousRestoreStatics1(), and main().
int checkDistributions | ( | ) |
Definition at line 537 of file ranRestoreTest.cc.
int checkEngine | ( | ) |
Definition at line 390 of file ranRestoreTest.cc.
int checkEngineInstanceSave | ( | E & | e | ) |
Definition at line 402 of file ranRestoreTest.cc.
Referenced by main().
int checkEngineName | ( | const std::string & | name | ) |
Definition at line 372 of file ranRestoreTest.cc.
int checkRandGeneralDistribution | ( | RandGeneral & | d, |
int | nth | ||
) |
Definition at line 484 of file ranRestoreTest.cc.
Definition at line 432 of file ranRestoreTest.cc.
int checkSaveEngine | ( | const char * | filename | ) |
Definition at line 336 of file ranRestoreTest.cc.
int checkSharing | ( | ) |
Definition at line 706 of file ranRestoreTest.cc.
int checkSharingDistributions | ( | D1 & | d1, |
D2 & | d2, | ||
int | n1, | ||
int | n2 | ||
) |
Definition at line 630 of file ranRestoreTest.cc.
Definition at line 56 of file ranRestoreTest.cc.
Referenced by anonymousRestoreStatics(), checkEngineInstanceSave(), checkRandGeneralDistribution(), checkSaveDistribution(), checkSaveEngine(), checkSharingDistributions(), restoreStep(), and restoreStepX().
bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 53 of file ranRestoreTest.cc.
Referenced by equals().
int fileNotThere | ( | ) |
Definition at line 260 of file ranRestoreTest.cc.
int fileNotThereEngine | ( | ) |
Definition at line 274 of file ranRestoreTest.cc.
int main | ( | ) |
Definition at line 1244 of file ranRestoreTest.cc.
int missingFile | ( | ) |
Definition at line 295 of file ranRestoreTest.cc.
Referenced by main().
std::ofstream output | ( | "ranRestoreTest.cout" | ) |
Referenced by anonymousRestore1(), anonymousRestore1< NonRandomEngine >(), anonymousRestore2(), anonymousRestoreStatics(), anonymousRestoreStatics1(), BrestoreStep(), BrestoreStepX(), BsaveStep(), BsaveStepX(), check_sequence(), checkEngineInstanceSave(), checkEngineName(), checkRandGeneralDistribution(), checkSaveDistribution(), checkSharingDistributions(), compareSamples(), fileNotThere(), main(), restoreStep(), restoreStepX(), saveStep(), saveStepX(), staticSave(), staticSaveShootBit(), valid_range(), vectorRestore1(), and vectorRestore2().
void randomizeStatics | ( | int | n | ) |
Definition at line 924 of file ranRestoreTest.cc.
Referenced by anonymousRestoreStatics(), anonymousRestoreStatics1(), and main().
void restoreStatics | ( | std::string | filename | ) |
Definition at line 980 of file ranRestoreTest.cc.
Referenced by anonymousRestoreStatics(), anonymousRestoreStatics1(), and main().
int restoreStep | ( | ) |
Definition at line 167 of file ranRestoreTest.cc.
Referenced by main().
int restoreStepX | ( | ) |
Definition at line 83 of file ranRestoreTest.cc.
Referenced by main().
int saveEngine | ( | const char * | filename | ) |
Definition at line 317 of file ranRestoreTest.cc.
void saveStatics | ( | std::string | filename | ) |
Definition at line 972 of file ranRestoreTest.cc.
Referenced by anonymousRestoreStatics(), anonymousRestoreStatics1(), and main().
int saveStep | ( | ) |
Definition at line 147 of file ranRestoreTest.cc.
Referenced by main().
int saveStepX | ( | ) |
Definition at line 64 of file ranRestoreTest.cc.
Referenced by main().
int staticSave | ( | int | n | ) |
Definition at line 737 of file ranRestoreTest.cc.
int staticSaveShootBit | ( | int | n | ) |
Definition at line 811 of file ranRestoreTest.cc.
int vectorRestore | ( | int | n | ) |
Definition at line 1231 of file ranRestoreTest.cc.
std::vector< unsigned long > vectorRestore1 | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 1157 of file ranRestoreTest.cc.
std::vector< unsigned long > vectorRestore1< NonRandomEngine > | ( | int | n, |
std::vector< double > & | v | ||
) |
Definition at line 1157 of file ranRestoreTest.cc.
int vectorRestore2 | ( | const std::vector< unsigned long > | state, |
const std::vector< double > & | v | ||
) |
Definition at line 1192 of file ranRestoreTest.cc.
double remembered_r1005 |
Definition at line 48 of file ranRestoreTest.cc.
Referenced by BrestoreStep(), BrestoreStepX(), BsaveStep(), BsaveStepX(), restoreStep(), restoreStepX(), saveStep(), and saveStepX().
double remembered_r1006 |
Definition at line 49 of file ranRestoreTest.cc.
Referenced by BrestoreStep(), and BsaveStep().
double remembered_r1007 |
Definition at line 50 of file ranRestoreTest.cc.
Referenced by BrestoreStep(), and BsaveStep().
double remembered_r2 |
Definition at line 47 of file ranRestoreTest.cc.
Referenced by BrestoreStep(), BrestoreStepX(), BsaveStep(), BsaveStepX(), restoreStep(), restoreStepX(), saveStep(), and saveStepX().