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

Defines | Functions
testEngineCopy.cc File Reference
#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.

Defines

#define CLEAN_OUTPUT
#define TEST_ENGINE_COPY
#define VERBOSER
#define VERBOSER2

Functions

std::ofstream output ("testEngineCopy.cout")
bool equals01 (const std::vector< double > &ab)
bool equals (double a, double b)
std::vector< doubleaSequence (int n)
template<class E >
int vectorTest64 (int n)
template<>
int vectorTest64< NonRandomEngine > (int n)
template<class E >
vectorRestore1 (int n, std::vector< double > &v)
template<>
NonRandomEngine vectorRestore1< NonRandomEngine > (int n, std::vector< double > &v)
template<class E >
int vectorRestore2 (E &f, const std::vector< double > &v)
template<class E >
int vectorRestore (int n)
int main ()

Define Documentation

#define CLEAN_OUTPUT

Definition at line 11 of file testEngineCopy.cc.

Definition at line 23 of file testEngineCopy.cc.

#define VERBOSER

Definition at line 25 of file testEngineCopy.cc.

#define VERBOSER2

Definition at line 26 of file testEngineCopy.cc.


Function Documentation

std::vector<double> aSequence ( int  n)

Definition at line 40 of file testEngineCopy.cc.

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

bool equals ( double  a,
double  b 
)

Definition at line 34 of file testEngineCopy.cc.

References a, b, and equals01().

bool equals01 ( const std::vector< double > &  ab)

Definition at line 31 of file testEngineCopy.cc.

int main ( )

Definition at line 186 of file testEngineCopy.cc.

References output().

std::ofstream output ( "testEngineCopy.cout"  )
template<class E >
int vectorRestore ( int  n)

Definition at line 171 of file testEngineCopy.cc.

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

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

Definition at line 111 of file testEngineCopy.cc.

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

template<>
NonRandomEngine vectorRestore1< NonRandomEngine > ( int  n,
std::vector< double > &  v 
)
template<class E >
int vectorRestore2 ( E &  f,
const std::vector< double > &  v 
)

Definition at line 146 of file testEngineCopy.cc.

References output().

template<class E >
int vectorTest64 ( int  n)

Definition at line 54 of file testEngineCopy.cc.

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

template<>
int vectorTest64< NonRandomEngine > ( int  n)