CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Macros | Functions
testAnonymousEngineRestore.cc File Reference
#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< doubleaSequence (int n)
 
void randomizeStatics (int n)
 
std::vector< doublecaptureStatics ()
 
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 ()
 

Macro Definition Documentation

#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.

Function Documentation

template<class E >
int anonymousRestore ( int  n)

Definition at line 186 of file testAnonymousEngineRestore.cc.

References CLHEP::detail::n.

template<class E >
void anonymousRestore1 ( int  n,
std::vector< double > &  v 
)

Definition at line 121 of file testAnonymousEngineRestore.cc.

References CLHEP::detail::n, and output().

template<>
void anonymousRestore1< NonRandomEngine > ( int  n,
std::vector< double > &  v 
)
template<class E >
int anonymousRestore2 ( const std::vector< double > &  v)
template<class E1 , class E2 >
int anonymousRestoreStatics ( )
template<class E >
int anonymousRestoreStatics1 ( )
std::vector<double> aSequence ( int  n)

Definition at line 43 of file testAnonymousEngineRestore.cc.

References f(), and CLHEP::detail::n.

Referenced by anonymousRestore1< NonRandomEngine >().

std::vector<double> captureStatics ( )
bool equals ( double  a,
double  b 
)

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)
void restoreStatics ( std::string  filename)
void saveStatics ( std::string  filename)