![]() |
AliPhysics
86c65ee (86c65ee)
|
#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) |
Bool_t | CheckOCDBFile (TString cdbDir, Int_t runNum) |
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 778 of file trigEffQA.C.
Referenced by ScalerTrending().
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().
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 288 of file trigEffQA.C.
Referenced by ScalerTrending().
Find trigger from pattern
Definition at line 799 of file trigEffQA.C.
Referenced by ScalerTrending().
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().
Get efficienct histogram index
Definition at line 280 of file trigEffQA.C.
Referenced by TrigEffTrending().
Get list of CDB objetcs
Definition at line 305 of file trigEffQA.C.
Referenced by MaskTrending(), and SetAndCheckOCDB().
Definition at line 420 of file trigEffQA.C.
Referenced by TrigEffTrending().
Get run number from file path
Definition at line 97 of file trigEffQA.C.
Referenced by ChangeFilenames(), and trigEffQA().
Check if the OCDB object is changed w.r.t. the previous run
Definition at line 401 of file trigEffQA.C.
Referenced by MaskTrending().
Definition at line 72 of file trigEffQA.C.
Referenced by GetRunNumber().
void ScalerTrending | ( | TObjArray | runNumArray, |
TString | mergedFileName, | ||
TString | defaultStorage, | ||
TList & | outCanList, | ||
TList & | outList | ||
) |
Get the scalers vs. run number
Definition at line 820 of file trigEffQA.C.
Referenced by trigEffQA().
Set the default storage and check if it is ok
Definition at line 341 of file trigEffQA.C.
Referenced by MaskTrending(), ScalerTrending(), and trigEffQA().
void SetMyStyle | ( | ) |
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 1056 of file trigEffQA.C.
void TrigEffTrending | ( | TObjArray | runNumArray, |
TObjArray | fileNameArray, | ||
TList & | outCanList, | ||
TList & | outList | ||
) |
Get the efficiency vs. run number
Definition at line 442 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().