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

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

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

Macro Definition Documentation

◆ CLEAN_OUTPUT

#define CLEAN_OUTPUT

Definition at line 9 of file testStaticStreamSave.cc.

◆ TEST_SAVE_STATIC_STATES

#define TEST_SAVE_STATIC_STATES

Definition at line 22 of file testStaticStreamSave.cc.

◆ TEST_STATIC_SAVE

#define TEST_STATIC_SAVE

Definition at line 21 of file testStaticStreamSave.cc.

◆ VERBOSER

#define VERBOSER

Definition at line 25 of file testStaticStreamSave.cc.

◆ VERBOSER2

#define VERBOSER2

Definition at line 26 of file testStaticStreamSave.cc.

Function Documentation

◆ captureStatics()

◆ equals()

bool equals ( double a,
double b )

Definition at line 34 of file testStaticStreamSave.cc.

References a, b, and equals01().

◆ equals01()

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

Definition at line 31 of file testStaticStreamSave.cc.

Referenced by equals().

◆ main()

◆ output()

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

◆ randomizeStatics()

◆ restoreStatics()

void restoreStatics ( std::string filename)

Definition at line 298 of file testStaticStreamSave.cc.

Referenced by main().

◆ saveStatics()

void saveStatics ( std::string filename)

Definition at line 290 of file testStaticStreamSave.cc.

Referenced by main().

◆ staticSave()

template<class D >
int staticSave ( int n)

Definition at line 43 of file testStaticStreamSave.cc.

References output().

Referenced by main().

◆ staticSaveShootBit()

template<class D >
int staticSaveShootBit ( int n)

Definition at line 123 of file testStaticStreamSave.cc.

References output().

Referenced by main().