ROOT  6.06/09
Reference Guide
Static Public Member Functions | List of all members
ROOT::Math::VavilovTest Class Reference

Test class for class Vavilov and its subclasses.

For test purposes, the class contains a number of static function that return the tabulated values of the Vavilov pdf given by S.M. Seltzer and M.J. Berger: Energy loss stragglin of protons and mesons: Tabulation of the Vavilov distribution, pp 187-203 in: National Research Council (U.S.), Committee on Nuclear Science: Studies in penetration of charged particles in matter, Nat. Akad. Sci. Publication 1133, Nucl. Sci. Series Report No. 39, Washington (Nat. Akad. Sci.) 1964, 388 pp. Available from Google books

B. List 24.6.2010

Definition at line 64 of file VavilovTest.h.

Static Public Member Functions

static int PdfTest (Vavilov &v, std::ostream &os, double maxabsdiff, double maxdiffmantissa, double agreefraction, double agreediffmantissa)
 Test the pdf values against the tables of Seltzer and Berger. More...
 
static int PdfTest (Vavilov &v, std::ostream &os)
 Test the pdf values against the tables of Seltzer and Berger. More...
 
static int CdfTest (Vavilov &v, std::ostream &os, double maxabsdiff, double maxcdfdiff)
 Test the cdf values against the integral of the pdf Returns 0 if the test is passed. More...
 
static int CdfTest (Vavilov &v, std::ostream &os)
 Test the cdf values against the integral of the pdf Returns 0 if the test is passed. More...
 
static int QuantileTest (Vavilov &v, std::ostream &os, double maxabsdiff)
 Test the quantile values against the cdf Returns 0 if the test is passed. More...
 
static int QuantileTest (Vavilov &v, std::ostream &os)
 Test the quantile values against the cdf Returns 0 if the test is passed. More...
 
static void PrintPdfTable (Vavilov &v, std::ostream &os, int digits=3)
 Print a table of the pdf values to stream os. More...
 
static int GetSBNKappa ()
 Return the number of \(\kappa\) values in the tables of Seltzer and Berger. More...
 
static double GetSBKappa (int ikappa)
 Return the \(\kappa\) value for ikappa in the tables of Seltzer and Berger. More...
 
static int GetSBNBeta2 ()
 Return the number of \(\beta^2\) values in the tables of Seltzer and Berger. More...
 
static double GetSBBeta2 (int ibeta2)
 Return the \(\beta^2\) value in the tables of Seltzer and Berger. More...
 
static int GetSBNLambda (int ikappa)
 Return the number of \(\lambda\) values in the tables of Seltzer and Berger. More...
 
static double GetSBLambda (int ikappa, int ilambda)
 Return the \(\lambda\) value in the tables of Seltzer and Berger. More...
 
static double GetSBVavilovPdf (int ikappa, int ibeta2, int ilambda)
 Return the value of \(p(\lambda)\) in the tables of Seltzer and Berger. More...
 
static void GetPdfTestParams (const Vavilov &v, double &maxabsdiff, double &maxdiffmantissa, double &agreefraction, double &agreediffmantissa)
 
static void GetCdfTestParams (const Vavilov &v, double &maxabsdiff, double &maxcdfdiff)
 
static void GetQuantileTestParams (const Vavilov &v, double &maxabsdiff)
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/math/mathmore/test/VavilovTest.h>

Member Function Documentation

int ROOT::Math::VavilovTest::CdfTest ( Vavilov v,
std::ostream &  os,
double  maxabsdiff,
double  maxcdfdiff 
)
static

Test the cdf values against the integral of the pdf Returns 0 if the test is passed.

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 698 of file VavilovTest.cxx.

Referenced by CdfTest(), and testVavilov().

int ROOT::Math::VavilovTest::CdfTest ( Vavilov v,
std::ostream &  os 
)
static

Test the cdf values against the integral of the pdf Returns 0 if the test is passed.

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 692 of file VavilovTest.cxx.

void ROOT::Math::VavilovTest::GetCdfTestParams ( const Vavilov v,
double maxabsdiff,
double maxcdfdiff 
)
static

Definition at line 882 of file VavilovTest.cxx.

Referenced by CdfTest().

void ROOT::Math::VavilovTest::GetPdfTestParams ( const Vavilov v,
double maxabsdiff,
double maxdiffmantissa,
double agreefraction,
double agreediffmantissa 
)
static

Definition at line 867 of file VavilovTest.cxx.

Referenced by PdfTest().

void ROOT::Math::VavilovTest::GetQuantileTestParams ( const Vavilov v,
double maxabsdiff 
)
static

Definition at line 893 of file VavilovTest.cxx.

Referenced by QuantileTest().

double ROOT::Math::VavilovTest::GetSBBeta2 ( int  ibeta2)
static

Return the \(\beta^2\) value in the tables of Seltzer and Berger.

Definition at line 415 of file VavilovTest.cxx.

Referenced by CdfTest(), PdfTest(), PrintPdfTable(), and QuantileTest().

double ROOT::Math::VavilovTest::GetSBKappa ( int  ikappa)
static

Return the \(\kappa\) value for ikappa in the tables of Seltzer and Berger.

Definition at line 406 of file VavilovTest.cxx.

Referenced by CdfTest(), PdfTest(), PrintPdfTable(), and QuantileTest().

double ROOT::Math::VavilovTest::GetSBLambda ( int  ikappa,
int  ilambda 
)
static

Return the \(\lambda\) value in the tables of Seltzer and Berger.

Definition at line 425 of file VavilovTest.cxx.

Referenced by CdfTest(), PdfTest(), and PrintPdfTable().

int ROOT::Math::VavilovTest::GetSBNBeta2 ( )
static

Return the number of \(\beta^2\) values in the tables of Seltzer and Berger.

Definition at line 411 of file VavilovTest.cxx.

Referenced by CdfTest(), GetSBBeta2(), GetSBVavilovPdf(), PdfTest(), PrintPdfTable(), and QuantileTest().

int ROOT::Math::VavilovTest::GetSBNKappa ( )
static

Return the number of \(\kappa\) values in the tables of Seltzer and Berger.

Definition at line 402 of file VavilovTest.cxx.

Referenced by CdfTest(), GetSBKappa(), GetSBLambda(), GetSBNLambda(), GetSBVavilovPdf(), PdfTest(), PrintPdfTable(), and QuantileTest().

int ROOT::Math::VavilovTest::GetSBNLambda ( int  ikappa)
static

Return the number of \(\lambda\) values in the tables of Seltzer and Berger.

Definition at line 420 of file VavilovTest.cxx.

Referenced by CdfTest(), GetSBLambda(), GetSBVavilovPdf(), PdfTest(), and PrintPdfTable().

double ROOT::Math::VavilovTest::GetSBVavilovPdf ( int  ikappa,
int  ibeta2,
int  ilambda 
)
static

Return the value of \(p(\lambda)\) in the tables of Seltzer and Berger.

Definition at line 431 of file VavilovTest.cxx.

Referenced by PdfTest().

int ROOT::Math::VavilovTest::PdfTest ( Vavilov v,
std::ostream &  os,
double  maxabsdiff,
double  maxdiffmantissa,
double  agreefraction,
double  agreediffmantissa 
)
static

Test the pdf values against the tables of Seltzer and Berger.

Returns 0 if the test is passed

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 490 of file VavilovTest.cxx.

Referenced by PdfTest(), and testVavilov().

int ROOT::Math::VavilovTest::PdfTest ( Vavilov v,
std::ostream &  os 
)
static

Test the pdf values against the tables of Seltzer and Berger.

Returns 0 if the test is passed

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 484 of file VavilovTest.cxx.

void ROOT::Math::VavilovTest::PrintPdfTable ( Vavilov v,
std::ostream &  os,
int  digits = 3 
)
static

Print a table of the pdf values to stream os.

Parameters
vThe Vavilov object
osOutput stream
digitsNumber of digits to be printed

Definition at line 602 of file VavilovTest.cxx.

int ROOT::Math::VavilovTest::QuantileTest ( Vavilov v,
std::ostream &  os,
double  maxabsdiff 
)
static

Test the quantile values against the cdf Returns 0 if the test is passed.

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 775 of file VavilovTest.cxx.

Referenced by QuantileTest(), and testVavilov().

int ROOT::Math::VavilovTest::QuantileTest ( Vavilov v,
std::ostream &  os 
)
static

Test the quantile values against the cdf Returns 0 if the test is passed.

Parameters
vThe Vavilov test object
osOutput stream

Definition at line 769 of file VavilovTest.cxx.


The documentation for this class was generated from the following files: