AliPhysics  958ad07 (958ad07)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QATrender Struct Reference
Inheritance diagram for QATrender:

Classes

struct  Ring
 

Public Member Functions

 QATrender (Bool_t keep, Bool_t, Int_t prodYear, char prodLetter)
 
 QATrender (Bool_t keep, const TString &dataType, Int_t prodYear, const TString &period, const TString &pass, Long_t runNo)
 
virtual ~QATrender ()
 
 QATrender (const QATrender &o)
 
QATrender operator= (const QATrender &)
 
void AddFile (const char *filename)
 
Bool_t Run ()
 
void Finish ()
 
Bool_t GetInputLists (const char *filename)
 
Bool_t ProcessOne (const char *filename)
 
Bool_t ProcessGlobal ()
 
void CleanStack (THStack *stack, const char *what)
 
Bool_t ProcessELossFitter ()
 
Bool_t ProcessSharingFilter ()
 
Bool_t ProcessDensityCalculator ()
 
void CloseCurrent ()
 
virtual void WriteLinks ()
 
RingGetRing (Int_t padNo)
 
TVirtualPad * GetPad (Int_t padNo)
 
void MakeCanvasTitle (const char *what)
 
Bool_t GetLists (Bool_t verbose=true)
 
- 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
 
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 WriteFooter ()
 

Static Public Member Functions

static TListGetSubList (const TList *parent, const char *name, Bool_t verbose=true)
 
static TObjectGetObject (const TList *list, const char *name, Bool_t verbose=true)
 
static TH1GetHistogram (const TList *list, const char *name, Bool_t verbose=true)
 
static void DrawText (TLatex *l, Double_t x, Double_t &y, const char *c1, const char *c2, Double_t dx=.4)
 

Public Attributes

Long_t fRunNo
 
TFile * fCurrentFile
 
TListfSharingFilter
 
TListfEventInspector
 
TListfDensityCalculator
 
TListfEnergyFitter
 
TList fFiles
 
Bool_t fKeep
 
- 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 make the QA trending tree

Definition at line 58 of file QATrender.C.

Constructor & Destructor Documentation

QATrender::QATrender ( Bool_t  keep,
Bool_t  ,
Int_t  prodYear,
char  prodLetter 
)
inline

Backward compatibility mode constructor

Parameters
keepKeep temporary files
prodYearPeriod year
prodLetterPeriod letter

Definition at line 567 of file QATrender.C.

QATrender::QATrender ( Bool_t  keep,
const TString dataType,
Int_t  prodYear,
const TString period,
const TString pass,
Long_t  runNo 
)
inline

CTOR

Parameters
keepWhehter to keep all info
dataTypeData stype
prodYearProduction year
periodProduction period
passProduction pass
runNoRun number

Definition at line 598 of file QATrender.C.

virtual QATrender::~QATrender ( )
inlinevirtual

DTOR

Definition at line 623 of file QATrender.C.

QATrender::QATrender ( const QATrender o)
inline

Copy CTOR

Parameters
oObject to copy from

Definition at line 629 of file QATrender.C.

Member Function Documentation

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

Add a file to be processed

Parameters
filenameName of file

Definition at line 654 of file QATrender.C.

Referenced by RunFileQA(), RunQA(), and RunQAOld().

void QATrender::CleanStack ( THStack *  stack,
const char *  what 
)
inline

Clean a stack for histograms that match what

Parameters
stackStack to clean
whatPattern

Definition at line 798 of file QATrender.C.

Referenced by ProcessELossFitter().

void QATrender::CloseCurrent ( )
inline

Close current file if open, and reset other pointers

Definition at line 1088 of file QATrender.C.

Referenced by ProcessOne().

static void QATrender::DrawText ( TLatex *  l,
Double_t  x,
Double_t y,
const char *  c1,
const char *  c2,
Double_t  dx = .4 
)
inlinestatic

Draw some text on a pad

Parameters
lLaTeX object to use
xx coordinate
yy coordinate (incremented on return)
c1First text
c2Second text
dxDistance between c1 start and c2 start

Definition at line 1307 of file QATrender.C.

Referenced by QATrender::Ring::Process123(), QATrender::Ring::ProcessCorrelation(), QATrender::Ring::ProcessELoss(), ProcessELossFitter(), and QATrender::Ring::ProcessOccupancy().

void QATrender::Finish ( )
inline

Finish the job

Definition at line 679 of file QATrender.C.

Referenced by Run().

static TH1* QATrender::GetHistogram ( const TList list,
const char *  name,
Bool_t  verbose = true 
)
inlinestatic

Get a histogram from a list

Parameters
listList
nameName of histogram
verboseWhether to be verbose
Returns
Pointer to object or null

Definition at line 1291 of file QATrender.C.

Referenced by QATrender::Ring::ExtractYQuantity(), QATrender::Ring::Process123(), QATrender::Ring::ProcessCorrelation(), QATrender::Ring::ProcessELoss(), QATrender::Ring::ProcessEnergyLoss(), ProcessGlobal(), QATrender::Ring::ProcessNeighbors(), and QATrender::Ring::ProcessOccupancy().

Bool_t QATrender::GetInputLists ( const char *  filename)
inline

Definition at line 697 of file QATrender.C.

Referenced by ProcessOne().

Bool_t QATrender::GetLists ( Bool_t  verbose = true)
inline

Get the lists from the file

Returns
true on success

Definition at line 1220 of file QATrender.C.

Referenced by GetInputLists().

static TObject* QATrender::GetObject ( const TList list,
const char *  name,
Bool_t  verbose = true 
)
inlinestatic

Find and object in a list

Parameters
listList to look in
nameName of object
verboseWhether to be verbose
Returns
Pointer to object or null

Definition at line 1268 of file QATrender.C.

Referenced by GetHistogram(), ProcessDensityCalculator(), ProcessELossFitter(), and ProcessGlobal().

TVirtualPad* QATrender::GetPad ( Int_t  padNo)
inline

Get the pad corresponding to a number. Also clears the pad

Parameters
padNoPad number to get
Returns
Pointer to pad or null

Definition at line 1169 of file QATrender.C.

Referenced by ProcessDensityCalculator(), ProcessELossFitter(), and ProcessSharingFilter().

Ring* QATrender::GetRing ( Int_t  padNo)
inline

Get the ring corresponding to a pad

Parameters
padNoPad number
Returns
Pointer to ring

Definition at line 1149 of file QATrender.C.

Referenced by ProcessDensityCalculator(), and ProcessSharingFilter().

static TList* QATrender::GetSubList ( const TList parent,
const char *  name,
Bool_t  verbose = true 
)
inlinestatic

Get a sub-list from parent list

Parameters
parentParent list
nameName of sub-list
verboseWhether to be verbose
Returns
Pointer to the list

Definition at line 1202 of file QATrender.C.

Referenced by QATrender::Ring::GetDetectorList(), GetLists(), and QATrender::Ring::ProcessEnergyLoss().

void QATrender::MakeCanvasTitle ( const char *  what)
inline

Make canvas title. Canvas is divided into 3x2 pads

Parameters
whatTitle on canvas

Definition at line 1184 of file QATrender.C.

Referenced by ProcessDensityCalculator(), ProcessELossFitter(), and ProcessSharingFilter().

QATrender QATrender::operator= ( const QATrender )
inline

Assignment operator

Returns
Reference to this

Definition at line 645 of file QATrender.C.

Bool_t QATrender::ProcessDensityCalculator ( )
inline

Process the information from the density calculator

Returns
true on success

Definition at line 1001 of file QATrender.C.

Referenced by ProcessOne().

Bool_t QATrender::ProcessELossFitter ( )
inline

Process the information from the energy loss fitter

Returns
true on succes

Definition at line 832 of file QATrender.C.

Referenced by ProcessOne().

Bool_t QATrender::ProcessGlobal ( )
inline

Get global stuff

Returns
true on success

Definition at line 775 of file QATrender.C.

Referenced by ProcessOne().

Bool_t QATrender::ProcessOne ( const char *  filename)
inline

Process a single file

Parameters
filenameFile to open.
Returns
true on success

Definition at line 723 of file QATrender.C.

Referenced by Run().

Bool_t QATrender::ProcessSharingFilter ( )
inline

Process the information from the sharing filter

Returns
true on success

Definition at line 941 of file QATrender.C.

Referenced by ProcessOne().

Bool_t QATrender::Run ( )
inline

Run the job

Returns
true on success

Definition at line 663 of file QATrender.C.

Referenced by RunFileQA(), RunQA(), and RunQAOld().

virtual void QATrender::WriteLinks ( )
inlinevirtual

Write full job footer

Reimplemented from QABase.

Definition at line 1107 of file QATrender.C.

Member Data Documentation

TFile* QATrender::fCurrentFile

Definition at line 1318 of file QATrender.C.

Referenced by CloseCurrent(), GetInputLists(), and GetLists().

TList* QATrender::fDensityCalculator

Definition at line 1321 of file QATrender.C.

Referenced by CloseCurrent(), GetLists(), and ProcessDensityCalculator().

TList* QATrender::fEnergyFitter

Definition at line 1322 of file QATrender.C.

Referenced by CloseCurrent(), GetLists(), and ProcessELossFitter().

TList* QATrender::fEventInspector

Definition at line 1320 of file QATrender.C.

Referenced by CloseCurrent(), GetLists(), and ProcessGlobal().

TList QATrender::fFiles

Definition at line 1323 of file QATrender.C.

Referenced by AddFile(), and Run().

Bool_t QATrender::fKeep

Definition at line 1324 of file QATrender.C.

Referenced by CloseCurrent().

Long_t QATrender::fRunNo

Definition at line 1317 of file QATrender.C.

Referenced by Finish(), ProcessGlobal(), and ProcessOne().

TList* QATrender::fSharingFilter

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