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

testSaveSharedEngines.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_SHARED_ENGINES
 
#define VERBOSER
 
#define VERBOSER2
 

Functions

std::ofstream output ("testSaveSharedEngines.cout")
 
bool equals01 (const std::vector< double > &ab)
 
bool equals (double a, double b)
 
template<class E , class D1 , class D2 >
int checkSharingDistributions (D1 &d1, D2 &d2, int n1, int n2)
 
template<class E >
int checkSharing ()
 
int main ()
 

Macro Definition Documentation

◆ CLEAN_OUTPUT

#define CLEAN_OUTPUT

Definition at line 9 of file testSaveSharedEngines.cc.

◆ TEST_SHARED_ENGINES

#define TEST_SHARED_ENGINES

Definition at line 21 of file testSaveSharedEngines.cc.

◆ VERBOSER

#define VERBOSER

Definition at line 25 of file testSaveSharedEngines.cc.

◆ VERBOSER2

#define VERBOSER2

Definition at line 26 of file testSaveSharedEngines.cc.

Function Documentation

◆ checkSharing()

template<class E >
int checkSharing ( )

Definition at line 122 of file testSaveSharedEngines.cc.

References checkSharingDistributions().

Referenced by main().

◆ checkSharingDistributions()

template<class E , class D1 , class D2 >
int checkSharingDistributions ( D1 & d1,
D2 & d2,
int n1,
int n2 )

Definition at line 42 of file testSaveSharedEngines.cc.

References equals(), and output().

Referenced by checkSharing().

◆ equals()

bool equals ( double a,
double b )

Definition at line 35 of file testSaveSharedEngines.cc.

References a, b, and equals01().

Referenced by checkSharingDistributions().

◆ equals01()

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

Definition at line 32 of file testSaveSharedEngines.cc.

Referenced by equals().

◆ main()

int main ( )

Definition at line 146 of file testSaveSharedEngines.cc.

References checkSharing(), and output().

◆ output()

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

Referenced by checkSharingDistributions(), and main().