AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QABase Struct Reference

#include <QABase.h>

Inheritance diagram for QABase:

Public Member Functions

 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
 
virtual Bool_t MakeTree (bool read)
 
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)
 
virtual void WriteImageFooter (std::ostream &o, const char *)
 
void Close (bool deletePNGs=true)
 
virtual void WriteLinks ()
 
virtual void WriteFooter ()
 

Public Attributes

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

Base class for active QA classes. This manages the I/O files, like the tree file, the LaTeX file, and the storage file

Definition at line 37 of file QABase.h.

Constructor & Destructor Documentation

QABase::QABase ( const TString dataType,
Int_t  prodYear,
const TString period,
const TString pass 
)
inline

Definition at line 39 of file QABase.h.

QABase::QABase ( const QABase o)
inline

Copy constructor

Parameters
oObject to copy from

Definition at line 68 of file QABase.h.

virtual QABase::~QABase ( )
inlinevirtual

Desctructor

Definition at line 98 of file QABase.h.

Member Function Documentation

void QABase::CanvasTitle ( const char *  title)
inline

Put a title on the canvas. Also clears page in LaTeX file

Parameters
titleTitle

Definition at line 261 of file QABase.h.

Referenced by QATrender::MakeCanvasTitle(), QAPlotter::Plot(), and QAPlotter::PlotMulti().

void QABase::Close ( bool  deletePNGs = true)
inline

Close the LaTeX and storage files. Runs PDFLaTeX on LaTeX file. Makes sure that the files are group writable.

Parameters
deletePNGsIf true, delete intermident PNG files

Definition at line 391 of file QABase.h.

Referenced by QATrender::CloseCurrent(), and QAPlotter::Plot().

Bool_t QABase::Init ( bool  read = false)
inline

Initialize

Parameters
readIf true initialise for reading tree file
Returns
True on success

Definition at line 154 of file QABase.h.

Referenced by QAPlotter::Run(), and QATrender::Run().

void QABase::MakeCanvas ( const char *  title)
inline

Make a canvas, LaTeX file, and storage file

Parameters
titleTitle of canvas and files

Definition at line 176 of file QABase.h.

Referenced by QAPlotter::Plot(), and QATrender::ProcessOne().

virtual Bool_t QABase::MakeTree ( bool  read)
inlinevirtual

Make a tree

Parameters
readIf true, read from file
Returns
True on success

Reimplemented in QAPlotter.

Definition at line 131 of file QABase.h.

Referenced by Init(), and QAPlotter::MakeTree().

QABase& QABase::operator= ( const QABase )
inline

Assignment operator

Returns
Reference to this object

Definition at line 94 of file QABase.h.

const char* QABase::OutputName ( ) const
inline

The name of the TTree output file

Returns
Output file name

Definition at line 123 of file QABase.h.

Referenced by QATrender::Finish(), and MakeTree().

void QABase::PrintCanvas ( const char *  pngName,
UInt_t   
)
inline

Print the canvas to PNG and include it into LaTeX file

Parameters
pngNameBase name of PNG

Definition at line 314 of file QABase.h.

Referenced by QAPlotter::Plot(), QAPlotter::PlotMulti(), QATrender::ProcessDensityCalculator(), QATrender::ProcessELossFitter(), and QATrender::ProcessSharingFilter().

void QABase::PrintCanvas ( const char *  pngName,
TCollection areas = 0 
)
inline

Print the canvas to PNG and include it into LaTeX file. Stores canvas in storage file

Parameters
pngNameBase name of PNG
areasAreas to print

Definition at line 327 of file QABase.h.

void QABase::PutCanvasTitle ( const char *  title)
inline

Put a title on the canvas

Parameters
titleTitle

Definition at line 298 of file QABase.h.

Referenced by CanvasTitle(), and QAPlotter::Plot().

void QABase::SetOutputName ( const char *  name)
inline

Set the output file name

Parameters
nameName of output (tree) file

Definition at line 117 of file QABase.h.

Referenced by RunFileQA().

virtual void QABase::WriteFooter ( )
inlinevirtual

Write full job footer

Reimplemented in QAPlotter.

Definition at line 452 of file QABase.h.

Referenced by Close(), and QAPlotter::WriteFooter().

virtual void QABase::WriteImageFooter ( std::ostream &  o,
const char *   
)
inlinevirtual

Write out image footer

Parameters
oOutput stream

Reimplemented in QAPlotter.

Definition at line 375 of file QABase.h.

Referenced by PrintCanvas(), and QAPlotter::WriteImageFooter().

virtual void QABase::WriteLinks ( )
inlinevirtual

Output links

Reimplemented in QATrender.

Definition at line 429 of file QABase.h.

Referenced by Close(), and QATrender::WriteLinks().

Member Data Documentation

TString QABase::fDataType
std::ofstream* QABase::fHtml
TFile* QABase::fOutput

Definition at line 470 of file QABase.h.

Referenced by QATrender::Finish(), MakeTree(), and ~QABase().

TString QABase::fOutputName

Definition at line 477 of file QABase.h.

Referenced by OutputName(), and SetOutputName().

TString QABase::fPass
TFile* QABase::fStore

Definition at line 471 of file QABase.h.

Referenced by Close(), MakeCanvas(), QAPlotter::Plot(), PrintCanvas(), and ~QABase().

std::ofstream* QABase::fTeX

Definition at line 472 of file QABase.h.

Referenced by CanvasTitle(), Close(), MakeCanvas(), PrintCanvas(), and ~QABase().

TString QABase::fTeXName

Definition at line 474 of file QABase.h.

Referenced by Close(), MakeCanvas(), WriteImageFooter(), and WriteLinks().

TString QABase::fToDelete

Definition at line 475 of file QABase.h.

Referenced by Close(), Init(), MakeCanvas(), and PrintCanvas().

Int_t QABase::fYear

Definition at line 479 of file QABase.h.

Referenced by QATrender::Finish().


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