AliPhysics  095eea3 (095eea3)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

Example of execution macro for calorimeter QA analysis. More...

Go to the source code of this file.

Enumerations

enum  anaModes {
  mLocal = 0, mPROOF = 1, mPlugin = 2, mGRID = 3,
  mLocal, mGRID, mLocal = 0, mPROOF = 1,
  mPlugin = 2, mGRID = 3, mLocal, mLocalCAF,
  mPROOF, mGRID, mLocal, mLocalCAF,
  mPROOF, mGRID
}
 Different analysis modes. More...
 

Functions

void anaQA (Int_t mode=mLocal)
 
void LoadLibraries (const anaModes mode)
 Load analysis libraries. More...
 
void SetupPar (char *pararchivename)
 
void CreateChain (const anaModes mode, TChain *chain)
 Fills chain with data files paths. More...
 

Variables

char * kInDir = "/user/data/files/"
 
char * kPattern = ""
 Global, path to data files. More...
 
Int_t kFile = 2
 Data are in files kInDir/kPattern+i. More...
 
char * kXML = "collection.xml"
 Number of files to analyze in local mode. More...
 
const Bool_t kMC = kFALSE
 Global name for the xml collection file with data on grid. More...
 
const TString kInputData = "ESD"
 With real data kMC = kFALSE. More...
 
TString kTreeName = "esdTree"
 ESD, AOD, MC. More...
 

Detailed Description

Example of execution macro for calorimeter QA analysis.

Example macro to do for calorimeter QA analysis in local, grid or plugin modes.

Pay attention to the options and definitions set in the lines below

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS)

Definition in file anaQA.C.

Enumeration Type Documentation

enum anaModes

Different analysis modes.

Enumerator
mLocal 
mPROOF 

Analyze locally files in your computer.

mPlugin 

Analyze files on GRID with Plugin.

mGRID 

Analyze files on GRID with Plugin.

mLocal 
mGRID 
mLocal 
mPROOF 

Analyze locally files in your computer.

mPlugin 

Analyze files on GRID with Plugin.

mGRID 

Analyze files on GRID with Plugin.

mLocal 
mLocalCAF 
mPROOF 
mGRID 
mLocal 
mLocalCAF 
mPROOF 
mGRID 

Definition at line 16 of file anaQA.C.

Function Documentation

void anaQA ( Int_t  mode = mLocal)

Main execution method. It:

  • 1) loads the needed libraries in method LoadLibraries
  • 2) The analysis frame is initialized via de analysis manager
  • 3) Different general analysis are initialized: Physics selection, centrality etc.
  • 4) Specialized analysis are initialized: AliAnalysistaskCounter, AliAnalysisTaskCaloTrackCorrelations with QA analysis in it.
  • 5) The output/input containers are passed to the analysis manager
  • 6) The analysis is executed
Parameters
modeanalysis mode defined in enum anaModes

Definition at line 53 of file anaQA.C.

void CreateChain ( const anaModes  mode,
TChain chain 
)

Fills chain with data files paths.

Definition at line 371 of file anaQA.C.

Referenced by anaQA().

void LoadLibraries ( const anaModes  mode)

Load analysis libraries.

Definition at line 213 of file anaQA.C.

Referenced by anaQA().

void SetupPar ( char *  pararchivename)

Load par files, create analysis libraries For testing, if par file already decompressed and modified classes then do not decompress.

Definition at line 315 of file anaQA.C.

Variable Documentation

Int_t kFile = 2

Data are in files kInDir/kPattern+i.

Definition at line 31 of file anaQA.C.

Referenced by CreateChain().

char* kInDir = "/user/data/files/"

Definition at line 29 of file anaQA.C.

Referenced by CreateChain().

const TString kInputData = "ESD"

With real data kMC = kFALSE.

Definition at line 39 of file anaQA.C.

const Bool_t kMC = kFALSE

Global name for the xml collection file with data on grid.

Definition at line 38 of file anaQA.C.

Referenced by anaQA().

char* kPattern = ""

Global, path to data files.

Definition at line 30 of file anaQA.C.

Referenced by CreateChain().

TString kTreeName = "esdTree"

ESD, AOD, MC.

Definition at line 40 of file anaQA.C.

char* kXML = "collection.xml"

Number of files to analyze in local mode.

Definition at line 36 of file anaQA.C.

Referenced by CreateChain().