AliPhysics  32e057f (32e057f)
TestF Struct Referenceabstract

Classes

struct  Test
 

Utilities

static TLine * VerticalLine (Int_t i, Color_t col, Double_t x, Double_t low, Double_t high)
 
virtual ~TestF ()
 
virtual TestMakeTest ()=0
 
TestDoOne (const Double_t c, const Double_t delta, const Double_t xi, const Double_t sigma, const Int_t n, const Double_t *a, const Double_t xMin, const Double_t xMax, TVirtualPad *pad=0)
 
TestDoUnit (const Double_t sigma, const Double_t xi=1, const Int_t n=10, TVirtualPad *pad=0)
 
TestDoRealistic (TVirtualPad *pad=0)
 
virtual const char * Prefix () const =0
 
virtual TNtuple * MakeNTuple ()
 
virtual void SetupScan (UShort_t mode, TFile *&file, TCanvas *&canvas, TNtuple *&nt)
 
void PrintCanvas (TCanvas *c, Double_t xi, Double_t sigma)
 
virtual void PreLoop (UShort_t mode, Int_t nVal)=0
 
virtual void Step (UShort_t mode, Int_t i, Int_t j, Int_t n, Test *test, TNtuple *nt)=0
 
virtual void PostLoop (UShort_t mode, TCanvas *can, TNtuple *nt, TFile *out)=0
 
void ScanOne (Bool_t scanSigma, Int_t n, const Double_t *values, Int_t maxN=10)
 
void ScanOne (Bool_t scanSigma, const TArrayD &values, Int_t maxN)
 
void ScanTwo (Int_t n, const Double_t *values, Int_t maxN=10)
 
void ScanTwo (const TArrayD &values, Int_t maxN)
 
void Scan (UShort_t mode, Int_t n, const Double_t *values, Int_t maxN)
 
void LoopOne (UShort_t mode, Int_t n, const Double_t *values, Int_t maxN, TCanvas *can, TNtuple *nt, TFile *out)
 
void LoopTwo (Int_t n, const Double_t *values, Int_t maxN, TCanvas *can, TNtuple *nt, TFile *out)
 
void StepIt (UShort_t mode, Double_t xi, Double_t sigma, Int_t maxN, Int_t i, Int_t j, Int_t n, TCanvas *can, TNtuple *nt, TDirectory *p, const char *pre, Double_t v)
 

Detailed Description

Base class for tests

Definition at line 25 of file TestF.C.

Constructor & Destructor Documentation

virtual TestF::~TestF ( )
inlinevirtual

Definition at line 203 of file TestF.C.

Member Function Documentation

Test* TestF::DoOne ( const Double_t  c,
const Double_t  delta,
const Double_t  xi,
const Double_t  sigma,
const Int_t  n,
const Double_t a,
const Double_t  xMin,
const Double_t  xMax,
TVirtualPad *  pad = 0 
)
inline

Do one scan

Parameters
cConstant
deltaMost probable value \(\Delta_p\)
xiLandau width \(\xi\)
sigmaGaussian spread \(\sigma\)
nMaximum number of particles
aParticle weights
xMinLeast \(\Delta \)
xMaxLargest \(\Delta\)
padPad to draw in
Returns
The test object

Definition at line 225 of file TestF.C.

Referenced by DoRealistic(), and DoUnit().

Test* TestF::DoRealistic ( TVirtualPad *  pad = 0)
inline

Do a realistic scan

Parameters
padPossibly existing canvas to plot in
Returns
Scan object

Definition at line 286 of file TestF.C.

Referenced by Scan().

Test* TestF::DoUnit ( const Double_t  sigma,
const Double_t  xi = 1,
const Int_t  n = 10,
TVirtualPad *  pad = 0 
)
inline

Do a unit scan

Parameters
sigma\(\sigma\) of the Gaussian
xi\(\xi\) width of Landau
nNumber of particles
padPossibly existing canvas to plot in
Returns
Scan object

Definition at line 260 of file TestF.C.

Referenced by StepIt().

void TestF::LoopOne ( UShort_t  mode,
Int_t  n,
const Double_t values,
Int_t  maxN,
TCanvas *  can,
TNtuple *  nt,
TFile *  out 
)
inline

Loop over one of \(\xi\) or \(\sigma\)

Parameters
modeMode (1: \(\sigma\), otherwise \(\xi\))
nNumber of values
valuesValues
maxNMaximum number of particles
canCanvas to draw in
ntNTuple to fill
outOutput directory

Definition at line 494 of file TestF.C.

Referenced by Scan().

void TestF::LoopTwo ( Int_t  n,
const Double_t values,
Int_t  maxN,
TCanvas *  can,
TNtuple *  nt,
TFile *  out 
)
inline

Loop over both \(\xi\) and \(\sigma\)

Parameters
nNumber of values
valuesValues
maxNMaximum number of particles
canCanvas to draw in
ntNTuple to fill
outOutput directory

Definition at line 522 of file TestF.C.

Referenced by Scan().

virtual TNtuple* TestF::MakeNTuple ( )
inlinevirtual

Make an output ntuple

Returns
Possibly newly allocated NTuple

Definition at line 309 of file TestF.C.

Referenced by SetupScan(), and StepIt().

virtual Test* TestF::MakeTest ( )
pure virtual

Make a test object - overload

Returns
The test object

Referenced by DoOne(), StepIt(), and ~TestF().

virtual void TestF::PostLoop ( UShort_t  mode,
TCanvas *  can,
TNtuple *  nt,
TFile *  out 
)
pure virtual

Called after looping

Parameters
modeExecution mode
canCanvas
ntNTuple
outOutput file

Referenced by PrintCanvas(), Scan(), and StepIt().

virtual const char* TestF::Prefix ( ) const
pure virtual

Prefix on output

Returns

Referenced by DoRealistic(), SetupScan(), and StepIt().

virtual void TestF::PreLoop ( UShort_t  mode,
Int_t  nVal 
)
pure virtual

Executed before loop

Parameters
modeMode
nValNumber of values

Referenced by PrintCanvas(), Scan(), and StepIt().

void TestF::PrintCanvas ( TCanvas *  c,
Double_t  xi,
Double_t  sigma 
)
inline

Print canvas to output PDF

Parameters
cCanvas
xi\( \xi\)
sigma\( \sigma\)
Returns
The full title of the page

Definition at line 344 of file TestF.C.

Referenced by Scan(), and StepIt().

void TestF::Scan ( UShort_t  mode,
Int_t  n,
const Double_t values,
Int_t  maxN 
)
inline

Do the scan

Parameters
modeMode of operation (0: both, 1: \(\sigma\), or \(\xi\))
nNumber of values
valuesValues
maxNMaximum number of particles

Definition at line 459 of file TestF.C.

Referenced by ScanOne(), and ScanTwo().

void TestF::ScanOne ( Bool_t  scanSigma,
Int_t  n,
const Double_t values,
Int_t  maxN = 10 
)
inline

Scan over a parameter ( \(\xi\) or \(\sigma\))

Parameters
scanSigmaIf true, scan \(\sigma\), otherwise \(\xi\)
nNumber of values
valuesValues of the parameters
maxNNumber of particles

Definition at line 407 of file TestF.C.

Referenced by ScanOne().

void TestF::ScanOne ( Bool_t  scanSigma,
const TArrayD values,
Int_t  maxN 
)
inline

Scan over a parameter ( \(\xi\) or \(\sigma\))

Parameters
scanSigmaIf true, scan \(\sigma\), otherwise \(\xi\)
valuesValues of the parameters
maxNNumber of particles

Definition at line 422 of file TestF.C.

void TestF::ScanTwo ( Int_t  n,
const Double_t values,
Int_t  maxN = 10 
)
inline

Scan over both parameter ( \(\xi\) and \(\sigma\))

Parameters
nNumber of parameters
valuesValues of the parameters
maxNNumber of particles

Definition at line 435 of file TestF.C.

Referenced by ScanTwo().

void TestF::ScanTwo ( const TArrayD values,
Int_t  maxN 
)
inline

Scan over both parameter ( \(\xi\) and \(\sigma\))

Parameters
valuesValues of the parameters
maxNNumber of particles

Definition at line 447 of file TestF.C.

virtual void TestF::SetupScan ( UShort_t  mode,
TFile *&  file,
TCanvas *&  canvas,
TNtuple *&  nt 
)
inlinevirtual

Setup for scanning

Parameters
modeScanning mode
fileOutput file
canvasCanvas
ntPossible Ntuple

Definition at line 318 of file TestF.C.

Referenced by Scan().

virtual void TestF::Step ( UShort_t  mode,
Int_t  i,
Int_t  j,
Int_t  n,
Test test,
TNtuple *  nt 
)
pure virtual

Process a single step

Parameters
modeMode
iFirst index
jSecond index (if any)
nNumber of values
testTest result
ntNTutple

Referenced by PrintCanvas(), and StepIt().

void TestF::StepIt ( UShort_t  mode,
Double_t  xi,
Double_t  sigma,
Int_t  maxN,
Int_t  i,
Int_t  j,
Int_t  n,
TCanvas *  can,
TNtuple *  nt,
TDirectory *  p,
const char *  pre,
Double_t  v 
)
inline
Parameters
modeMode
xi\(\xi\)
sigma\(\sigma\)
maxNAt most this many particles
iFirst index
jLast index
nNumber of values
canCanvas
ntNTuple
pParent directory
prePrefix on directory
vCurrent value

Definition at line 555 of file TestF.C.

Referenced by LoopOne(), and LoopTwo().

static TLine* TestF::VerticalLine ( Int_t  i,
Color_t  col,
Double_t  x,
Double_t  low,
Double_t  high 
)
inlinestatic

Draw a vertical line

Parameters
iLine style
colLine color
xX value
lowLeast Y value
highLargest Y value
Returns
The line

Definition at line 195 of file TestF.C.

Referenced by StepIt().


The documentation for this struct was generated from the following file: