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

Macros | Functions
testInstanceRestore.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>
#include <cassert>

Go to the source code of this file.

Macros

#define CLEAN_OUTPUT
 
#define TEST_ENGINE_NAMES
 
#define TEST_INSTANCE_METHODS
 
#define VERBOSER
 
#define VERBOSER2
 

Functions

std::ofstream output ("testInstanceRestore.cout")
 
bool equals01 (const std::vector< double > &ab)
 
bool equals (double a, double b)
 
std::vector< doubleaSequence (int n)
 
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 ()
 
int main ()
 

Macro Definition Documentation

◆ CLEAN_OUTPUT

#define CLEAN_OUTPUT

Definition at line 11 of file testInstanceRestore.cc.

◆ TEST_ENGINE_NAMES

#define TEST_ENGINE_NAMES

Definition at line 24 of file testInstanceRestore.cc.

◆ TEST_INSTANCE_METHODS

#define TEST_INSTANCE_METHODS

Definition at line 25 of file testInstanceRestore.cc.

◆ VERBOSER

#define VERBOSER

Definition at line 27 of file testInstanceRestore.cc.

◆ VERBOSER2

#define VERBOSER2

Definition at line 28 of file testInstanceRestore.cc.

Function Documentation

◆ aSequence()

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

Definition at line 42 of file testInstanceRestore.cc.

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

Referenced by main().

◆ checkDistributions()

template<class E >
int checkDistributions ( )

Definition at line 243 of file testInstanceRestore.cc.

◆ checkEngine()

template<class E , class D >
int checkEngine ( )

Definition at line 81 of file testInstanceRestore.cc.

References output().

◆ checkEngineInstanceSave()

template<class E >
int checkEngineInstanceSave ( E &  e)

Definition at line 96 of file testInstanceRestore.cc.

References equals(), and output().

Referenced by main().

◆ checkEngineName()

template<class E >
int checkEngineName ( const std::string &  name)

Definition at line 55 of file testInstanceRestore.cc.

References output().

◆ checkRandGeneralDistribution()

template<class E >
int checkRandGeneralDistribution ( RandGeneral d,
int  nth 
)

◆ checkSaveDistribution()

template<class E , class D >
int checkSaveDistribution ( D d,
int  nth 
)

Definition at line 129 of file testInstanceRestore.cc.

References equals(), and output().

◆ equals()

bool equals ( double  a,
double  b 
)

Definition at line 36 of file testInstanceRestore.cc.

References a, b, and equals01().

Referenced by checkEngineInstanceSave(), checkRandGeneralDistribution(), and checkSaveDistribution().

◆ equals01()

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

Definition at line 33 of file testInstanceRestore.cc.

Referenced by equals().

◆ main()

int main ( )

◆ output()

std::ofstream output ( "testInstanceRestore.cout"  )