AliPhysics  a8afd6c (a8afd6c)
QAPlotter Struct Reference
Inheritance diagram for QAPlotter:

Classes

struct  Ring
 

Public Member Functions

 QAPlotter (Long_t prodYear, Char_t prodLetter, Bool_t useVar)
 
 QAPlotter (const TString &dataType, Int_t year, const TString &period, const TString &pass, Bool_t useVar=true)
 
void AddFile (const char *filename)
 
const char * GetUserInfo (TList *l, const char *name, const char *def) const
 
Bool_t MakeTree (bool read)
 
void Run ()
 
void Plot ()
 
void AddToMulti (QARing *qr, TMultiGraph *chi2, TMultiGraph *c, TMultiGraph *delta, TMultiGraph *xi, TMultiGraph *sigma, TMultiGraph *low, TMultiGraph *singles, TMultiGraph *loss, TMultiGraph *beta, TMultiGraph *occupancy)
 
void PlotMulti (TMultiGraph *mg, const char *title, Bool_t logy=false)
 
Int_t FindRun (const TArrayI &runs, Int_t run)
 
void AddRuns (TH1 *h, const char *title, TArrayI *runs=0, TList *areas=0)
 
void WriteRuns (std::ostream &o)
 
void WriteFooter ()
 
void WriteImageFooter (std::ostream &o, const char *pngName)
 
- Public Member Functions inherited from QABase
 QABase (const TString &dataType, Int_t prodYear, const TString &period, const TString &pass)
 
 QABase (const QABase &o)
 
QABaseoperator= (const QABase &)
 
virtual ~QABase ()
 
void SetOutputName (const char *name)
 
const char * OutputName () const
 
Bool_t Init (bool read=false)
 
void MakeCanvas (const char *title)
 
void CanvasTitle (const char *title)
 
void PutCanvasTitle (const char *title)
 
void PrintCanvas (const char *pngName, UInt_t)
 
void PrintCanvas (const char *pngName, TCollection *areas=0)
 
void Close (bool deletePNGs=true)
 
virtual void WriteLinks ()
 

Public Attributes

TGraphfNAccepted
 
TGraphErrorsfVz
 
UInt_t fFirst
 
UInt_t fLast
 
TArrayI fRuns
 
TObjArray fFiles
 
Bool_t fUseVar
 
- Public Attributes inherited from QABase
QARingfFMD1i
 
QARingfFMD2i
 
QARingfFMD2o
 
QARingfFMD3i
 
QARingfFMD3o
 
GlobalfGlobal
 
TTreefTree
 
TFile * fOutput
 
TFile * fStore
 
std::ofstream * fTeX
 
std::ofstream * fHtml
 
TString fTeXName
 
TString fToDelete
 
TCanvas * fCanvas
 
TString fOutputName
 
TString fDataType
 
Int_t fYear
 
TString fPeriod
 
TString fPass
 

Detailed Description

Class to plot QA trends

Definition at line 45 of file QAPlotter.C.

Constructor & Destructor Documentation

QAPlotter::QAPlotter ( Long_t  prodYear,
Char_t  prodLetter,
Bool_t  useVar 
)
inline

Compatiblity constructor

Parameters
prodYearYear
prodLetterLetter
useVarUse variance

Definition at line 205 of file QAPlotter.C.

QAPlotter::QAPlotter ( const TString dataType,
Int_t  year,
const TString period,
const TString pass,
Bool_t  useVar = true 
)
inline

Constructor

Definition at line 231 of file QAPlotter.C.

Member Function Documentation

void QAPlotter::AddFile ( const char *  filename)
inline

Add a file to be processed

Parameters
filenameName of file

Definition at line 262 of file QAPlotter.C.

Referenced by PeriodQA(), and RunFinalQA().

void QAPlotter::AddRuns ( TH1 h,
const char *  title,
TArrayI runs = 0,
TList areas = 0 
)
inline

Add run labels at appropriate places on the plot

Parameters
hFrame histogram
titleTitle
runsList of runs, if any
areasOther areas

Definition at line 581 of file QAPlotter.C.

Referenced by Plot(), and PlotMulti().

void QAPlotter::AddToMulti ( QARing qr,
TMultiGraph *  chi2,
TMultiGraph *  c,
TMultiGraph *  delta,
TMultiGraph *  xi,
TMultiGraph *  sigma,
TMultiGraph *  low,
TMultiGraph *  singles,
TMultiGraph *  loss,
TMultiGraph *  beta,
TMultiGraph *  occupancy 
)
inline

Add graphs from a ring to the multi graphs

Parameters
qrRing
chi2ELoss reduced chi-square
cELoss constant
deltaELoss MPV
xiELoss Landau width
sigmaELoss Gaus width
lowbins with low statistics
singlesfraction of singles
loss'lost' data
betaPoisson vs ELoss correlation
occupancymean occupancy

Definition at line 463 of file QAPlotter.C.

Referenced by Plot().

Int_t QAPlotter::FindRun ( const TArrayI runs,
Int_t  run 
)
inline

Find a run

Parameters
runsList of runs
runRun to find
Returns
Index of run in run list

Definition at line 566 of file QAPlotter.C.

Referenced by AddRuns(), and PlotMulti().

const char* QAPlotter::GetUserInfo ( TList l,
const char *  name,
const char *  def 
) const
inline

Definition at line 266 of file QAPlotter.C.

Referenced by Run().

Bool_t QAPlotter::MakeTree ( bool  read)
inlinevirtual

Make a tree

Parameters
readIf true, read from file
Returns
True on success

Reimplemented from QABase.

Definition at line 290 of file QAPlotter.C.

void QAPlotter::Plot ( )
inline

Plot results

Definition at line 362 of file QAPlotter.C.

Referenced by Run().

void QAPlotter::PlotMulti ( TMultiGraph *  mg,
const char *  title,
Bool_t  logy = false 
)
inline

Plot a multi-graph

Parameters
mgMulti graph
titleTitle
logyIf true, make \(\log\) scale

Definition at line 494 of file QAPlotter.C.

Referenced by Plot().

void QAPlotter::Run ( )
inline

Run the job

Definition at line 312 of file QAPlotter.C.

Referenced by PeriodQA(), RunFinalQA(), and RunQAOld().

void QAPlotter::WriteFooter ( )
inlinevirtual

Write page footer

Reimplemented from QABase.

Definition at line 686 of file QAPlotter.C.

void QAPlotter::WriteImageFooter ( std::ostream &  o,
const char *  pngName 
)
inlinevirtual

Write out image footer

Parameters
oOutput stream
pngNameName of the PNG file

Reimplemented from QABase.

Definition at line 697 of file QAPlotter.C.

void QAPlotter::WriteRuns ( std::ostream &  o)
inline

Output list of runs

Parameters
oOutput stream

Definition at line 670 of file QAPlotter.C.

Referenced by WriteFooter(), and WriteImageFooter().

Member Data Documentation

TObjArray QAPlotter::fFiles

Definition at line 707 of file QAPlotter.C.

Referenced by AddFile(), and MakeTree().

UInt_t QAPlotter::fFirst

Definition at line 704 of file QAPlotter.C.

Referenced by Plot(), and Run().

UInt_t QAPlotter::fLast

Definition at line 705 of file QAPlotter.C.

Referenced by Plot(), and Run().

TGraph* QAPlotter::fNAccepted

Definition at line 702 of file QAPlotter.C.

Referenced by AddRuns(), Plot(), QAPlotter(), and Run().

TArrayI QAPlotter::fRuns

Definition at line 706 of file QAPlotter.C.

Referenced by AddRuns(), PlotMulti(), Run(), and WriteRuns().

Bool_t QAPlotter::fUseVar

Definition at line 708 of file QAPlotter.C.

TGraphErrors* QAPlotter::fVz

Definition at line 703 of file QAPlotter.C.

Referenced by Plot(), QAPlotter(), and Run().


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