![]() |
AliPhysics
116b2d6 (116b2d6)
|
#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 "AliCDBManager.h"
#include "AliCDBEntry.h"
#include "AliCDBPath.h"
#include "AliCDBStorage.h"
#include "AliMUONTriggerEfficiencyCells.h"
#include "AliMUONTriggerChamberEfficiency.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"
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) |
TObjArray * | ChangeFilenames (const TObjArray &fileNameArray) |
Double_t * | GetProdErr (Double_t *effErr, Int_t exclude, Int_t nFactors=kNch) |
Double_t * | GetConditionalEffErr (Double_t *effErr1, Double_t *effErr2, Double_t *effErrBoth, Int_t exclude=-1) |
Double_t * | GetBinomial (Double_t *effErr1, Double_t *effErr2=0x0, Double_t *effErrBoth=0x0) |
TH1 * | GetHisto (TString histoName, TFile *file, TList *histoList) |
Int_t | GetEffIndex (Int_t iel, Int_t icount, Int_t ich=-1) |
TList * | GetOCDBList (TString ocdbDirs) |
Bool_t | SetAndCheckOCDB (TString defaultStorage) |
Bool_t | IsOCDBChanged (Int_t currRun, Int_t previousRun, TList *fileList) |
TH2 * | GetOutliers (TH2 *histo, Double_t nSigmas=3.) |
void | TrigEffTrending (TObjArray runNumArray, TObjArray fileNameArray, TList &outCanList, TList &outList) |
void | MaskTrending (TObjArray runNumArray, TString defaultStorage, TList &outCanList, TList &outList) |
Bool_t | CheckPattern (TString trigName, TObjArray *keepArray, TObjArray *rejectArray) |
TObjArray * | BuildListOfTrigger (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 &outCanList, 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 |
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 761 of file trigEffQA.C.
Referenced by ScalerTrending().
TObjArray* ChangeFilenames | ( | const TObjArray & | fileNameArray | ) |
Use custom output We used to perform the QA on the MTR chamber efficiency but since it is obtained form tracks matching with the tracker it is not that good for QA since we are dependent on the tracker status. In recent versions, the task also calculates the efficiency from all trigger tracks (including ghosts). Analyse this output instead.
Definition at line 126 of file trigEffQA.C.
Referenced by trigEffQA().
Bool_t CheckPattern | ( | TString | trigName, |
TObjArray * | keepArray, | ||
TObjArray * | rejectArray | ||
) |
TString FindCorrespondingTrigger | ( | TString | checkTrigger, |
TObjArray * | triggerArray | ||
) |
Find trigger from pattern
Definition at line 782 of file trigEffQA.C.
Referenced by ScalerTrending().
Double_t* GetBinomial | ( | Double_t * | effErr1, |
Double_t * | effErr2 = 0x0 , |
||
Double_t * | effErrBoth = 0x0 |
||
) |
Double_t* GetConditionalEffErr | ( | Double_t * | effErr1, |
Double_t * | effErr2, | ||
Double_t * | effErrBoth, | ||
Int_t | exclude = -1 |
||
) |
Error on conditional efficiency
Definition at line 193 of file trigEffQA.C.
Referenced by GetBinomial().
Int_t GetEffIndex | ( | Int_t | iel, |
Int_t | icount, | ||
Int_t | ich = -1 |
||
) |
Get efficienct histogram index
Definition at line 280 of file trigEffQA.C.
Referenced by TrigEffTrending().
TH1* GetHisto | ( | TString | histoName, |
TFile * | file, | ||
TList * | histoList | ||
) |
TList* GetOCDBList | ( | TString | ocdbDirs | ) |
Get list of CDB objetcs
Definition at line 288 of file trigEffQA.C.
Referenced by MaskTrending(), and SetAndCheckOCDB().
TH2* GetOutliers | ( | TH2 * | histo, |
Double_t | nSigmas = 3. |
||
) |
Definition at line 403 of file trigEffQA.C.
Referenced by TrigEffTrending().
Double_t* GetProdErr | ( | Double_t * | effErr, |
Int_t | exclude, | ||
Int_t | nFactors = kNch |
||
) |
Int_t GetRunNumber | ( | TString | filePath | ) |
Get run number from file path
Definition at line 97 of file trigEffQA.C.
Referenced by ChangeFilenames(), and 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 384 of file trigEffQA.C.
Referenced by MaskTrending().
Bool_t IsRunNum | ( | TString | stringToken | ) |
Definition at line 72 of file trigEffQA.C.
Referenced by GetRunNumber().
void MaskTrending | ( | TObjArray | runNumArray, |
TString | defaultStorage, | ||
TList & | outCanList, | ||
TList & | outList | ||
) |
void ScalerTrending | ( | TObjArray | runNumArray, |
TString | mergedFileName, | ||
TString | defaultStorage, | ||
TList & | outCanList, | ||
TList & | outList | ||
) |
Get the scalers vs. run number
Definition at line 803 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 324 of file trigEffQA.C.
Referenced by MaskTrending(), ScalerTrending(), and trigEffQA().
void SetMyStyle | ( | ) |
void SetRunAxisRange | ( | TH1 * | histo, |
TString | runAxis = "X" |
||
) |
Set axis range
Definition at line 79 of file trigEffQA.C.
Referenced by MaskTrending(), and TrigEffTrending().
void trigEffQA | ( | TString | fileListName, |
TString | outFilename = "" , |
||
TString | defaultStorage = "raw://" , |
||
Bool_t | doScalers = kFALSE , |
||
TString | trackerQAmergedOut = "QAresults_merged.root" |
||
) |
Main function
Definition at line 1036 of file trigEffQA.C.
void TrigEffTrending | ( | TObjArray | runNumArray, |
TObjArray | fileNameArray, | ||
TList & | outCanList, | ||
TList & | outList | ||
) |
Get the efficiency vs. run number
Definition at line 425 of file trigEffQA.C.
Referenced by trigEffQA().
const Int_t kNch = 4 |
Definition at line 42 of file trigEffQA.C.
Referenced by GetBinomial(), GetConditionalEffErr(), MaskTrending(), and TrigEffTrending().
const Double_t kZero = 1.e-7 |
Definition at line 43 of file trigEffQA.C.
Referenced by GetConditionalEffErr(), and GetProdErr().