AliPhysics  vAN-20150630 (513c479)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
PlotMuonQA.C File Reference
#include <Riostream.h>
#include "TEnv.h"
#include "TMath.h"
#include "TGrid.h"
#include "TGridResult.h"
#include "THashList.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "TSystem.h"
#include "TStyle.h"
#include "TCanvas.h"
#include "TPad.h"
#include "TLegend.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "TFileMerger.h"
#include "AliCounterCollection.h"
Include dependency graph for PlotMuonQA.C:

Go to the source code of this file.

Functions

Int_t GetRunNumber (TString)
 
TString GetRunList (const char *runList, TObjArray *runs)
 
Bool_t MergeOutputs (const char *, const char *)
 
Bool_t GetTriggerLists (const char *triggerList, TString listFromContainer, TObjArray *triggersB=0, TObjArray *triggersShortName=0)
 
void SetCanvas (TCanvas *canvas, Int_t logy=1)
 
TH1 * ProcessHisto (AliCounterCollection *counter, TString variable, TString selection, TString hName="", TString xName="", TString yName="", Int_t color=1)
 
TH2 * ProcessHisto2D (AliCounterCollection *counter, TString hVariable, TString hVariable2, TString hSelection, TString hName)
 
Int_t GetIndex (TObjArray *triggersB, Int_t trigNr, Int_t centNr)
 
TCanvas * ProcessCanvasAllTrigger (AliCounterCollection *counter, TString canvasName)
 
TCanvas * ProcessCanvasTriggerContent (TObjArray *trigName, TObjArray trigNoPS, TObjArray trigWithPS, TString canvasName)
 
TCanvas * ProcessCanvasRelativeTriggerContent (TObjArray *array, TObjArray trigNoPS, TString canvasName)
 
TCanvas * ProcessCanvasPhysSelCut (TObjArray *triggersB, TObjArray trigNoPS, TObjArray trigWithPS, TString canvasName)
 
TCanvas * ProcessCanvasPhysSelCutCentrality (TObjArray *triggersB, TObjArray trigNoPS, TObjArray trigBWithPS, Int_t trigNr, TString canvasName, TString *legendHeader)
 
TCanvas * ProcessCanvasCentralityPercentile (TObjArray *triggersB, TObjArray trigNoPS, TObjArray trigWithPS, Int_t trigNr, TString canvasName, TString *legendHeader)
 
TCanvas * ProcessCanvasTracksoverTrigger (TObjArray *triggersB, TObjArray trigSel, TObjArray trackTracker, TObjArray trackTrigger, TObjArray trackMatched, TObjArray trackAll, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
TCanvas * ProcessCanvasTrackMultB (TObjArray *triggersB, TObjArray trigSel, TObjArray trackTracker, TObjArray trackTrigger, TObjArray trackMatched, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
TCanvas * ProcessCanvasRatioTrackB (TObjArray *triggersB, TObjArray trigSel, TObjArray trackTracker, TObjArray trackTrigger, TObjArray trackMatched, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
TCanvas * ProcessCanvasAsymMatched (TObjArray *triggersB, TObjArray trackPosMatched, TObjArray trackNegMatched, TObjArray trackhAllMatched, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
TCanvas * ProcessCanvasHighPtMuons (TObjArray *triggersB, TObjArray trigSel, TObjArray trackMatchedLowPt, TObjArray trackAllMatchedHightPt, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
TCanvas * ProcessCanvasBeamGasMatched (TObjArray *triggersB, TObjArray trackBeamGasMatched, TObjArray trackBeamGasMatchedHighPt, TObjArray trackAllMatched, TObjArray trackMatchedHighPt, Int_t trigNr, Int_t centNr, TString canvasName, TString legendHeader="")
 
Bool_t IsHeavyIonCollision (AliCounterCollection *eventCounters)
 
void PlotMuonQA (const char *baseDir, const char *runList=0x0, const char *triggerList=0x0, Bool_t selectPhysics=kFALSE, const char *LHCPeriod="LHC11c", const char *QAFileName="QAresults.root")
 

Variables

const Int_t kCentBinMax = 4
 
TString kCentBinName [kCentBinMax] = {"v0mult:any/","v0mult:low,int,high/","v0mult:low/","v0mult:high/"}
 
TString kCentLegendName [kCentBinMax] ={"all collisions","[0-80%] from V0 amplitude","low mult. [60-80%] from V0 amplitude","high mult. [0-10%] from V0 amplitude"}
 
TString kCentLegendNameShort [kCentBinMax] ={"all","[0-80%]","[60-80%]","[0-10%]"}
 

Function Documentation

TString GetRunList ( const char *  runList,
TObjArray *  runs 
)

Definition at line 2265 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

Bool_t GetTriggerLists ( const char *  triggerList,
TString  listFromContainer,
TObjArray *  triggersB = 0,
TObjArray *  triggersShortName = 0 
)

Definition at line 2098 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

Bool_t IsHeavyIonCollision ( AliCounterCollection *  eventCounters)

Definition at line 1373 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

Bool_t MergeOutputs ( const char *  inputList,
const char *  outFilename 
)

Definition at line 2304 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

void PlotMuonQA ( const char *  baseDir,
const char *  runList = 0x0,
const char *  triggerList = 0x0,
Bool_t  selectPhysics = kFALSE,
const char *  LHCPeriod = "LHC11c",
const char *  QAFileName = "QAresults.root" 
)

Macro for QA monitoring. Example: baseDir = "alien:///alice/cern.ch/user/p/ppillot/pp7TeV/LHC10d/MuonQA/pass1/results/". If runList != 0x0: only the given runs will be used. Otherwise use all runs found in baseDir. If triggerList !=0x0: only the given triggers are displayed. Otherwise use the default list of triggers (see GetTriggerLists)

Definition at line 78 of file PlotMuonQA.C.

TCanvas * ProcessCanvasAllTrigger ( AliCounterCollection *  counter,
TString  canvasName 
)

Definition at line 1388 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasAsymMatched ( TObjArray *  triggersB,
TObjArray  trackPosMatched,
TObjArray  trackNegMatched,
TObjArray  trackhAllMatched,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1907 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasBeamGasMatched ( TObjArray *  triggersB,
TObjArray  trackBeamGasMatched,
TObjArray  trackBeamGasMatchedHighPt,
TObjArray  trackAllMatched,
TObjArray  trackMatchedHighPt,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1996 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasCentralityPercentile ( TObjArray *  triggersB,
TObjArray  trigNoPS,
TObjArray  trigWithPS,
Int_t  trigNr,
TString  canvasName,
TString *  legendHeader 
)

Definition at line 1629 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasHighPtMuons ( TObjArray *  triggersB,
TObjArray  trigSel,
TObjArray  trackMatchedLowPt,
TObjArray  trackAllMatchedHightPt,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1945 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasPhysSelCut ( TObjArray *  triggersB,
TObjArray  trigNoPS,
TObjArray  trigWithPS,
TString  canvasName 
)

Definition at line 1510 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasPhysSelCutCentrality ( TObjArray *  triggersB,
TObjArray  trigNoPS,
TObjArray  trigBWithPS,
Int_t  trigNr,
TString  canvasName,
TString *  legendHeader 
)

Definition at line 1564 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasRatioTrackB ( TObjArray *  triggersB,
TObjArray  trigSel,
TObjArray  trackTracker,
TObjArray  trackTrigger,
TObjArray  trackMatched,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1848 of file PlotMuonQA.C.

TCanvas * ProcessCanvasRelativeTriggerContent ( TObjArray *  array,
TObjArray  trigNoPS,
TString  canvasName 
)

Definition at line 1460 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasTrackMultB ( TObjArray *  triggersB,
TObjArray  trigSel,
TObjArray  trackTracker,
TObjArray  trackTrigger,
TObjArray  trackMatched,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1796 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasTracksoverTrigger ( TObjArray *  triggersB,
TObjArray  trigSel,
TObjArray  trackTracker,
TObjArray  trackTrigger,
TObjArray  trackMatched,
TObjArray  trackAll,
Int_t  trigNr,
Int_t  centNr,
TString  canvasName,
TString  legendHeader = "" 
)

Definition at line 1722 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TCanvas * ProcessCanvasTriggerContent ( TObjArray *  trigName,
TObjArray  trigNoPS,
TObjArray  trigWithPS,
TString  canvasName 
)

Definition at line 1415 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TH1 * ProcessHisto ( AliCounterCollection *  counter,
TString  variable,
TString  selection,
TString  hName = "",
TString  xName = "",
TString  yName = "",
Int_t  color = 1 
)

Definition at line 2053 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TH2 * ProcessHisto2D ( AliCounterCollection *  counter,
TString  hVariable,
TString  hVariable2,
TString  hSelection,
TString  hName 
)

Definition at line 2078 of file PlotMuonQA.C.

Referenced by ProcessCanvasAllTrigger().

Variable Documentation

const Int_t kCentBinMax = 4
TString kCentBinName[kCentBinMax] = {"v0mult:any/","v0mult:low,int,high/","v0mult:low/","v0mult:high/"}

Definition at line 73 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TString kCentLegendName[kCentBinMax] ={"all collisions","[0-80%] from V0 amplitude","low mult. [60-80%] from V0 amplitude","high mult. [0-10%] from V0 amplitude"}

Definition at line 74 of file PlotMuonQA.C.

Referenced by PlotMuonQA().

TString kCentLegendNameShort[kCentBinMax] ={"all","[0-80%]","[60-80%]","[0-10%]"}

Definition at line 75 of file PlotMuonQA.C.

Referenced by PlotMuonQA().