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_STATIC_SAVE |
#define | TEST_SAVE_STATIC_STATES |
#define | VERBOSER |
#define | VERBOSER2 |
Functions | |
std::ofstream | output ("testStaticStreamSave.cout") |
bool | equals01 (const std::vector< double > &ab) |
bool | equals (double a, double b) |
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) |
int | main () |
#define CLEAN_OUTPUT |
Definition at line 9 of file testStaticStreamSave.cc.
#define TEST_SAVE_STATIC_STATES |
Definition at line 22 of file testStaticStreamSave.cc.
#define TEST_STATIC_SAVE |
Definition at line 21 of file testStaticStreamSave.cc.
#define VERBOSER |
Definition at line 25 of file testStaticStreamSave.cc.
#define VERBOSER2 |
Definition at line 26 of file testStaticStreamSave.cc.
std::vector< double > captureStatics | ( | ) |
Definition at line 265 of file testStaticStreamSave.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 main().
Definition at line 34 of file testStaticStreamSave.cc.
References a, b, and equals01().
bool equals01 | ( | const std::vector< double > & | ab | ) |
Definition at line 31 of file testStaticStreamSave.cc.
Referenced by equals().
int main | ( | ) |
Definition at line 308 of file testStaticStreamSave.cc.
References captureStatics(), output(), randomizeStatics(), restoreStatics(), and saveStatics().
std::ofstream output | ( | "testStaticStreamSave.cout" | ) |
Referenced by main(), staticSave(), and staticSaveShootBit().
void randomizeStatics | ( | int | n | ) |
Definition at line 242 of file testStaticStreamSave.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 main().
void restoreStatics | ( | std::string | filename | ) |
Definition at line 298 of file testStaticStreamSave.cc.
Referenced by main().
void saveStatics | ( | std::string | filename | ) |
Definition at line 290 of file testStaticStreamSave.cc.
Referenced by main().
int staticSave | ( | int | n | ) |
Definition at line 43 of file testStaticStreamSave.cc.
References output().
int staticSaveShootBit | ( | int | n | ) |
Definition at line 123 of file testStaticStreamSave.cc.
References output().