AliRoot Core  edcc906 (edcc906)
AliFMDQAChecker Class Reference

Quality assurance checker for the FMD. More...

#include <AliFMDQAChecker.h>

Inheritance diagram for AliFMDQAChecker:

Public Member Functions

 AliFMDQAChecker ()
 
virtual ~AliFMDQAChecker ()
 
void Check (Double_t *rv, AliQAv1::ALITASK_t what, TObjArray **list, const AliDetectorRecoParam *t)
 
void MakeImage (TObjArray **list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode)
 
void SetDoScale (Bool_t on=true)
 
- Public Member Functions inherited from AliQACheckerBase
 AliQACheckerBase (const char *name="", const char *title="")
 
virtual ~AliQACheckerBase ()
 
void DeleteImages ()
 
TList * GetExternParamlist ()
 
TCanvas ** GetImage ()
 
TCanvas * GetImage (AliRecoParam::EventSpecie_t es)
 
virtual void Init (const AliQAv1::DETECTORINDEX_t det)
 
void PrintExternParam ()
 
void Run (AliQAv1::ALITASK_t tsk, const AliDetectorRecoParam *recoParam=NULL)
 
void Run (AliQAv1::ALITASK_t tsk, TObjArray **list, const AliDetectorRecoParam *recoParam=NULL)
 
void Run (AliQAv1::ALITASK_t, TNtupleD **, const AliDetectorRecoParam *)
 
void SetExternParamlist (TList *list)
 
void SetHiLo (Float_t *hiValue, Float_t *lowValue)
 
void SetPrintImage (Bool_t opt=kTRUE)
 

Protected Types

enum  { kOK, kProblem, kBad, kWhatTheFk }
 

Protected Member Functions

void AddStatusPave (TH1 *hist, Int_t qual, Double_t xl=-1, Double_t yl=-1, Double_t xh=-1, Double_t yh=-1) const
 
UShort_t CheckOne (AliQAv1::ALITASK_t what, AliRecoParam::EventSpecie_t specie, TH1 *hist) const
 
UShort_t CheckRaw (AliRecoParam::EventSpecie_t specie, TH1 *hist) const
 
UShort_t CheckSim (AliRecoParam::EventSpecie_t specie, TH1 *hist) const
 
UShort_t CheckESD (AliRecoParam::EventSpecie_t specie, TH1 *hist) const
 
UShort_t CheckRec (AliRecoParam::EventSpecie_t specie, TH1 *hist) const
 
void SetQA (AliQAv1::ALITASK_t index, Double_t *values) const
 
void ProcessExternalParams ()
 
void ProcessExternalParam (const char *name, Double_t &v)
 
void GetThresholds ()
 
UShort_t BasicCheck (TH1 *hist) const
 
AliQAv1::QABIT_t Quality2Bit (UShort_t qual) const
 
UShort_t CheckFit (TH1 *hist, const TFitResultPtr &res, Double_t low, Double_t high, Int_t &color) const
 
- Protected Member Functions inherited from AliQACheckerBase
Double_t DiffC (const TH1 *href, const TH1 *hin) const
 
Double_t DiffK (const TH1 *href, const TH1 *hin) const
 
void Finish () const
 
void GetRefSubDir (const char *det, const char *task, TDirectory *&dirFile, TObjArray **&dirOCDB)
 

Protected Attributes

Bool_t fDoScale
 
Bool_t fDidExternal
 
Bool_t fShowFitResults
 
Double_t fELossLowCut
 
Double_t fELossNRMS
 
Double_t fELossBadChi2Nu
 
Double_t fELossFkupChi2Nu
 
Int_t fELossMinEntries
 
Int_t fELossMaxEntries
 
Double_t fELossGoodParError
 
Double_t fELossMinSharing
 
Double_t fROErrorsBad
 
Double_t fROErrorsFkup
 
Int_t fMaxNProblem
 
Int_t fMaxNBad
 
Double_t fMinMPV
 
Double_t fMaxXi
 
Double_t fMaxSigma
 
Bool_t fNoFits
 
- Protected Attributes inherited from AliQACheckerBase
TDirectory * fDataSubDir
 
TDirectory * fRefSubDir
 directory for the current task directory in the current detector directory in the data file More...
 
TObjArray ** fRefOCDBSubDir
 directory for the current task directory in the current detector directory in the reference file More...
 
Float_t * fLowTestValue
 Entry in OCDB for the current detector. More...
 
Float_t * fUpTestValue
 
TCanvas ** fImage
 
Bool_t fPrintImage
 
TList * fExternParamList
 flag to print the images or not More...
 

Private Member Functions

 AliFMDQAChecker (const AliFMDQAChecker &qac)
 
AliFMDQACheckeroperator= (const AliFMDQAChecker &qac)
 

Detailed Description

Quality assurance checker for the FMD.

Definition at line 18 of file AliFMDQAChecker.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
kOK 
kProblem 
kBad 
kWhatTheFk 

Definition at line 57 of file AliFMDQAChecker.h.

Constructor & Destructor Documentation

AliFMDQAChecker::AliFMDQAChecker ( )

Constructor

Definition at line 249 of file AliFMDQAChecker.cxx.

virtual AliFMDQAChecker::~AliFMDQAChecker ( )
inlinevirtual

Destructor

Definition at line 24 of file AliFMDQAChecker.h.

AliFMDQAChecker::AliFMDQAChecker ( const AliFMDQAChecker qac)
private

Copy constructor - not implemented

Parameters
qacObject to copy from

Member Function Documentation

void AliFMDQAChecker::AddStatusPave ( TH1 *  hist,
Int_t  qual,
Double_t  xl = -1,
Double_t  yl = -1,
Double_t  xh = -1,
Double_t  yh = -1 
) const
protected

Add a status pave to the plot

Parameters
llList to add to
qualQuality
xlX coordinate of lower-left corner (NDC)
ylY coordinate of lower-left corner (NDC)
xhX coordinate of upper-right corner (NDC)
yhY coordinate of upper-right corner (NDC)

Definition at line 763 of file AliFMDQAChecker.cxx.

Referenced by Check().

UShort_t AliFMDQAChecker::BasicCheck ( TH1 *  hist) const
protected

The basic check on a histogram

Parameters
histHistogram
Returns
1 empty - 0 otherwise

Definition at line 411 of file AliFMDQAChecker.cxx.

Referenced by CheckESD(), CheckRaw(), CheckRec(), and CheckSim().

void AliFMDQAChecker::Check ( Double_t *  rv,
AliQAv1::ALITASK_t  what,
TObjArray **  list,
const AliDetectorRecoParam t 
)
virtual

Member function called to do the actual checking

Parameters
rvArray of return values.
whatWhat to check
listArray of arrays of histograms. There's one arrat for each 'specie'
tReconstruction parameters - not used.

Reimplemented from AliQACheckerBase.

Definition at line 797 of file AliFMDQAChecker.cxx.

Referenced by ~AliFMDQAChecker().

UShort_t AliFMDQAChecker::CheckESD ( AliRecoParam::EventSpecie_t  specie,
TH1 *  hist 
) const
protected

Check ESD. Does a simple test of whether the histogram is empty or not.

Parameters
specieEvent specie
histHistogram to check
Returns
0 if all is good, increasing severity for increasingly bad data

Definition at line 431 of file AliFMDQAChecker.cxx.

Referenced by CheckOne().

UShort_t AliFMDQAChecker::CheckFit ( TH1 *  hist,
const TFitResultPtr &  res,
Double_t  low,
Double_t  high,
Int_t &  color 
) const
protected

Add fit results to to plot

Parameters
histHistogram
resFit result
colorColor to use for the text - depends on quality
lowLower bound on fit range
highUpper bound on fit range

Definition at line 473 of file AliFMDQAChecker.cxx.

Referenced by CheckRaw().

UShort_t AliFMDQAChecker::CheckOne ( AliQAv1::ALITASK_t  what,
AliRecoParam::EventSpecie_t  specie,
TH1 *  hist 
) const
protected

Check one histogram

Parameters
specieEvent specie
histHistogram to check
Returns
0 if all is good, increasing severity for increasingly bad data

Definition at line 419 of file AliFMDQAChecker.cxx.

Referenced by Check().

UShort_t AliFMDQAChecker::CheckRaw ( AliRecoParam::EventSpecie_t  specie,
TH1 *  hist 
) const
protected

Check raw input. If the reconstructor is enabled, then we try to fit

\[ f(\Delta;\Delta_p,\xi,\sigma) = \int_{-\infty}^{\infty}d\Delta_p' f_{L}(\Delta;\Delta_p',\xi) \times e^{\frac{(\Delta-\Delta_p')^2}{\sigma^2}} \]

where \(f_L\) is the Landau distribution, to the data. The quality is set according to the value of \(\chi^2/\nu\).

If no reconstructor is set, then simply check that the histogram isn't empty

Parameters
specieEvent specie
histHistogram to check
Returns
0 if all is good, increasing severity for increasingly bad data

Definition at line 602 of file AliFMDQAChecker.cxx.

Referenced by CheckOne().

UShort_t AliFMDQAChecker::CheckRec ( AliRecoParam::EventSpecie_t  specie,
TH1 *  hist 
) const
protected

Check reconstruction points. Does a simple test of whether the histogram is empty or not.

Parameters
specieEvent specie
histHistogram to check
Returns
0 if all is good, increasing severity for increasingly bad data

Definition at line 753 of file AliFMDQAChecker.cxx.

Referenced by CheckOne().

UShort_t AliFMDQAChecker::CheckSim ( AliRecoParam::EventSpecie_t  specie,
TH1 *  hist 
) const
protected

Check simulation output. Does a simple test of whether the histogram is empty or not.

Parameters
specieEvent specie
histHistogram to check
Returns
0 if all is good, increasing severity for increasingly bad data

Definition at line 743 of file AliFMDQAChecker.cxx.

Referenced by CheckOne().

void AliFMDQAChecker::GetThresholds ( )
protected

Get the thresholds from OCDB

Definition at line 321 of file AliFMDQAChecker.cxx.

Referenced by ProcessExternalParams().

void AliFMDQAChecker::MakeImage ( TObjArray **  list,
AliQAv1::TASKINDEX_t  task,
AliQAv1::MODE_t  mode 
)
virtual

Make output images. This is overridden relative to the base class so that we can set the log(y) scale and put everything on the same axis.

Parameters
listList of specie array of histograms
taskWhat to show
modeMode

Reimplemented from AliQACheckerBase.

Definition at line 953 of file AliFMDQAChecker.cxx.

Referenced by ~AliFMDQAChecker().

AliFMDQAChecker& AliFMDQAChecker::operator= ( const AliFMDQAChecker qac)
private

assignment operator - not implemented

Parameters
qacObject to assign from
Returns
Reference to this object
void AliFMDQAChecker::ProcessExternalParam ( const char *  name,
Double_t &  v 
)
protected

Process a single external parameter

Parameters
nameName of parameter
vOn return, the value - as a double

Definition at line 310 of file AliFMDQAChecker.cxx.

Referenced by ProcessExternalParams().

void AliFMDQAChecker::ProcessExternalParams ( )
protected

Process external parameters

Definition at line 275 of file AliFMDQAChecker.cxx.

Referenced by Check().

AliQAv1::QABIT_t AliFMDQAChecker::Quality2Bit ( UShort_t  qual) const
protected

Translate our internal quality measure to QA framework bit

Parameters
qualInternal quality
Returns
QA framework quality bit

Definition at line 373 of file AliFMDQAChecker.cxx.

Referenced by Check(), and SetQA().

void AliFMDQAChecker::SetDoScale ( Bool_t  on = true)
inline

Set wether to scale the histograms to a common Y axis or not when generating plots

Parameters
onIf true, do scale

Definition at line 54 of file AliFMDQAChecker.h.

void AliFMDQAChecker::SetQA ( AliQAv1::ALITASK_t  index,
Double_t *  values 
) const
protectedvirtual

Set the returned QA from this checker based on the values in the array values. Note, this by-passes the Low/High setting of the base class (which are very confusing)

Parameters
indexTask index
valuesArray of values

Reimplemented from AliQACheckerBase.

Definition at line 385 of file AliFMDQAChecker.cxx.

Member Data Documentation

Bool_t AliFMDQAChecker::fDidExternal
protected

Definition at line 201 of file AliFMDQAChecker.h.

Referenced by Check(), and ProcessExternalParams().

Bool_t AliFMDQAChecker::fDoScale
protected

Definition at line 200 of file AliFMDQAChecker.h.

Referenced by MakeImage(), ProcessExternalParams(), and SetDoScale().

Double_t AliFMDQAChecker::fELossBadChi2Nu
protected

Definition at line 205 of file AliFMDQAChecker.h.

Referenced by CheckFit(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fELossFkupChi2Nu
protected

Definition at line 206 of file AliFMDQAChecker.h.

Referenced by CheckFit(), CheckRaw(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fELossGoodParError
protected

Definition at line 209 of file AliFMDQAChecker.h.

Referenced by CheckFit(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fELossLowCut
protected

Definition at line 203 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), and ProcessExternalParams().

Int_t AliFMDQAChecker::fELossMaxEntries
protected

Definition at line 208 of file AliFMDQAChecker.h.

Referenced by CheckFit(), CheckRaw(), and ProcessExternalParams().

Int_t AliFMDQAChecker::fELossMinEntries
protected

Definition at line 207 of file AliFMDQAChecker.h.

Referenced by CheckFit(), CheckRaw(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fELossMinSharing
protected

Definition at line 210 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fELossNRMS
protected

Definition at line 204 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), and ProcessExternalParams().

Int_t AliFMDQAChecker::fMaxNBad
protected

Definition at line 214 of file AliFMDQAChecker.h.

Referenced by Check(), GetThresholds(), and ProcessExternalParams().

Int_t AliFMDQAChecker::fMaxNProblem
protected

Definition at line 213 of file AliFMDQAChecker.h.

Referenced by Check(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fMaxSigma
protected

Definition at line 217 of file AliFMDQAChecker.h.

Referenced by CheckFit(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fMaxXi
protected

Definition at line 216 of file AliFMDQAChecker.h.

Referenced by CheckFit(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fMinMPV
protected

Definition at line 215 of file AliFMDQAChecker.h.

Referenced by CheckFit(), GetThresholds(), and ProcessExternalParams().

Bool_t AliFMDQAChecker::fNoFits
protected

Definition at line 218 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fROErrorsBad
protected

Definition at line 211 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), GetThresholds(), and ProcessExternalParams().

Double_t AliFMDQAChecker::fROErrorsFkup
protected

Definition at line 212 of file AliFMDQAChecker.h.

Referenced by CheckRaw(), GetThresholds(), and ProcessExternalParams().

Bool_t AliFMDQAChecker::fShowFitResults
protected

Definition at line 202 of file AliFMDQAChecker.h.

Referenced by CheckFit().


The documentation for this class was generated from the following files: