Logo ROOT   6.08/07
Reference Guide
List of all members | 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 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 void GetCdfTestParams (const Vavilov &v, double &maxabsdiff, double &maxcdfdiff)
 
static void GetPdfTestParams (const Vavilov &v, double &maxabsdiff, double &maxdiffmantissa, double &agreefraction, double &agreediffmantissa)
 
static void GetQuantileTestParams (const Vavilov &v, double &maxabsdiff)
 
static double GetSBBeta2 (int ibeta2)
 Return the \(\beta^2\) value 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 double GetSBLambda (int ikappa, int ilambda)
 Return the \(\lambda\) value 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 int GetSBNKappa ()
 Return the number of \(\kappa\) values 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 GetSBVavilovPdf (int ikappa, int ibeta2, int ilambda)
 Return the value of \(p(\lambda)\) in the tables of Seltzer and Berger. More...
 
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 void PrintPdfTable (Vavilov &v, std::ostream &os, int digits=3)
 Print a table of the pdf values to stream os. 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...
 

#include </mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/math/mathmore/test/VavilovTest.h>

Member Function Documentation

◆ CdfTest() [1/2]

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.

◆ CdfTest() [2/2]

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.

◆ GetCdfTestParams()

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

Definition at line 882 of file VavilovTest.cxx.

◆ GetPdfTestParams()

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.

◆ GetQuantileTestParams()

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

Definition at line 893 of file VavilovTest.cxx.

◆ GetSBBeta2()

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.

◆ GetSBKappa()

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.

◆ GetSBLambda()

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.

◆ GetSBNBeta2()

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.

◆ GetSBNKappa()

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.

◆ GetSBNLambda()

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.

◆ GetSBVavilovPdf()

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.

◆ PdfTest() [1/2]

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.

◆ PdfTest() [2/2]

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.

◆ PrintPdfTable()

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.

◆ QuantileTest() [1/2]

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.

◆ QuantileTest() [2/2]

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: