AliPhysics  59e0e03 (59e0e03)
trigEffQA.C File Reference
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TGraphAsymmErrors.h"
#include "TSystem.h"
#include "Riostream.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "TROOT.h"
#include "TLegend.h"
#include "TMath.h"
#include "TObjArray.h"
#include "TList.h"
#include "TObjString.h"
#include "TString.h"
#include "TGrid.h"
#include "TArrayD.h"
#include "TArrayI.h"
#include "TMap.h"
#include "TGridResult.h"
#include "TF1.h"
#include "TPad.h"
#include "TLatex.h"
#include "AliCDBManager.h"
#include "AliCDBEntry.h"
#include "AliCDBPath.h"
#include "AliCDBStorage.h"
#include "AliMTRChEffAnalysis.h"
#include "AliMUONTriggerUtilities.h"
#include "AliMUONDigitMaker.h"
#include "AliMUONVDigit.h"
#include "AliMUONDigitStoreV2R.h"
#include "AliMUONCalibrationData.h"
#include "AliAnalysisTriggerScalers.h"
#include "AliCounterCollection.h"
#include "AliTriggerConfiguration.h"
Include dependency graph for trigEffQA.C:

Go to the source code of this file.

Functions

void SetMyStyle ()
 
Bool_t IsRunNum (TString stringToken)
 
void SetRunAxisRange (TH1 *histo, TString runAxis="X")
 
Int_t GetRunNumber (TString filePath)
 
Double_tGetProdErr (Double_t *effErr, Int_t exclude, Int_t nFactors=kNch)
 
Double_tGetConditionalEffErr (Double_t *effErr1, Double_t *effErr2, Double_t *effErrBoth, Int_t exclude=-1)
 
Double_tGetBinomial (Double_t *effErr1, Double_t *effErr2=0x0, Double_t *effErrBoth=0x0)
 
Bool_t CheckOCDBFile (TString cdbDir, Int_t runNum)
 
TListGetOCDBList (TString ocdbDirs)
 
Bool_t SetAndCheckOCDB (TString defaultStorage)
 
Bool_t IsOCDBChanged (Int_t currRun, Int_t previousRun, TList *fileList)
 
void TrigEffTrending (TString fileNameList, TList &outList)
 
void MaskTrending (TObjArray runNumArray, TString defaultStorage, TList &outList)
 
Bool_t CheckPattern (TString trigName, TObjArray *keepArray, TObjArray *rejectArray)
 
TObjArrayBuildListOfTrigger (const TObjArray *triggerArray, TString keepPattern="", TString rejectPattern="OTHER,TRUE,PHI,ANY,EMC,-ACE-,-ABCE-,WU,MUP,SPI,SHM")
 
TString FindCorrespondingTrigger (TString checkTrigger, TObjArray *triggerArray)
 
void ScalerTrending (TObjArray runNumArray, TString mergedFileName, TString defaultStorage, TList &outList)
 
void trigEffQA (TString fileListName, TString outFilename="", TString defaultStorage="raw://", Bool_t doScalers=kFALSE, TString trackerQAmergedOut="QAresults_merged.root")
 

Variables

const Int_t kNch = 4
 
const Double_t kZero = 1.e-7
 

Function Documentation

TObjArray* BuildListOfTrigger ( const TObjArray triggerArray,
TString  keepPattern = "",
TString  rejectPattern = "OTHER,TRUE,PHI,ANY,EMC,-ACE-,-ABCE-,WU,MUP,SPI,SHM" 
)

Build list of trigger classes

Definition at line 503 of file trigEffQA.C.

Referenced by ScalerTrending().

Bool_t CheckOCDBFile ( TString  cdbDir,
Int_t  runNum 
)

Check if (run-by-run) CDB object is there This is needed for example for the scalers when the default storage is cvmfs. Indeed, the cvmfs OCDB has sometimes synchro problem and the latest files are not copied

Definition at line 221 of file trigEffQA.C.

Referenced by ScalerTrending().

Bool_t CheckPattern ( TString  trigName,
TObjArray keepArray,
TObjArray rejectArray 
)

Check pattern

Definition at line 488 of file trigEffQA.C.

Referenced by BuildListOfTrigger().

TString FindCorrespondingTrigger ( TString  checkTrigger,
TObjArray triggerArray 
)

Find trigger from pattern

Definition at line 524 of file trigEffQA.C.

Referenced by ScalerTrending().

Double_t* GetBinomial ( Double_t effErr1,
Double_t effErr2 = 0x0,
Double_t effErrBoth = 0x0 
)

Binomial error

Definition at line 176 of file trigEffQA.C.

Double_t* GetConditionalEffErr ( Double_t effErr1,
Double_t effErr2,
Double_t effErrBoth,
Int_t  exclude = -1 
)

Error on conditional efficiency

Definition at line 148 of file trigEffQA.C.

Referenced by GetBinomial().

TList* GetOCDBList ( TString  ocdbDirs)

Get list of CDB objetcs

Definition at line 238 of file trigEffQA.C.

Referenced by MaskTrending(), and SetAndCheckOCDB().

Double_t* GetProdErr ( Double_t effErr,
Int_t  exclude,
Int_t  nFactors = kNch 
)

Error of product

Definition at line 127 of file trigEffQA.C.

Referenced by GetBinomial().

Int_t GetRunNumber ( TString  filePath)

Get run number from file path

Definition at line 98 of file trigEffQA.C.

Referenced by trigEffQA().

Bool_t IsOCDBChanged ( Int_t  currRun,
Int_t  previousRun,
TList fileList 
)

Check if the OCDB object is changed w.r.t. the previous run

Definition at line 334 of file trigEffQA.C.

Referenced by MaskTrending().

Bool_t IsRunNum ( TString  stringToken)

Definition at line 73 of file trigEffQA.C.

Referenced by GetRunNumber().

void MaskTrending ( TObjArray  runNumArray,
TString  defaultStorage,
TList outList 
)

Get the masks vs. run number

Definition at line 393 of file trigEffQA.C.

Referenced by trigEffQA().

void ScalerTrending ( TObjArray  runNumArray,
TString  mergedFileName,
TString  defaultStorage,
TList outList 
)

Get the scalers vs. run number

Definition at line 545 of file trigEffQA.C.

Referenced by trigEffQA().

Bool_t SetAndCheckOCDB ( TString  defaultStorage)

Set the default storage and check if it is ok

Definition at line 274 of file trigEffQA.C.

Referenced by MaskTrending(), ScalerTrending(), and trigEffQA().

void SetMyStyle ( )

Set graphic style

Definition at line 47 of file trigEffQA.C.

void SetRunAxisRange ( TH1 histo,
TString  runAxis = "X" 
)

Set axis range

Definition at line 80 of file trigEffQA.C.

Referenced by MaskTrending().

void trigEffQA ( TString  fileListName,
TString  outFilename = "",
TString  defaultStorage = "raw://",
Bool_t  doScalers = kFALSE,
TString  trackerQAmergedOut = "QAresults_merged.root" 
)

Main function

Definition at line 780 of file trigEffQA.C.

void TrigEffTrending ( TString  fileNameList,
TList outList 
)

Definition at line 354 of file trigEffQA.C.

Referenced by trigEffQA().

Variable Documentation

const Int_t kNch = 4

Definition at line 43 of file trigEffQA.C.

Referenced by GetBinomial(), GetConditionalEffErr(), and MaskTrending().

const Double_t kZero = 1.e-7