|
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::RandSkewNormal::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGaussQ::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandGaussT::shoot(), CLHEP::RandLandau::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBit::shootBit(), and CLHEP::RandFlat::shootBit().
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.
| int main | ( | ) |
Definition at line 308 of file testStaticStreamSave.cc.
References captureStatics(), output(), randomizeStatics(), restoreStatics(), and saveStatics().
| std::ofstream output | ( | "testStaticStreamSave.cout" | ) |
| void randomizeStatics | ( | int | n | ) |
Definition at line 242 of file testStaticStreamSave.cc.
References CLHEP::detail::n, CLHEP::RandSkewNormal::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGaussQ::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandGaussT::shoot(), CLHEP::RandLandau::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBit::shootBit(), and CLHEP::RandFlat::shootBit().
| void restoreStatics | ( | std::string | filename | ) |
Definition at line 298 of file testStaticStreamSave.cc.
References CLHEP::HepRandom::restoreStaticRandomStates().
| void saveStatics | ( | std::string | filename | ) |
Definition at line 290 of file testStaticStreamSave.cc.
References CLHEP::HepRandom::saveStaticRandomStates().
| int staticSave | ( | int | n | ) |
Definition at line 43 of file testStaticStreamSave.cc.
References CLHEP::detail::n, and output().
| int staticSaveShootBit | ( | int | n | ) |
Definition at line 123 of file testStaticStreamSave.cc.
References CLHEP::detail::n, and output().
1.8.1