![]() |
AliPhysics
3bba2fe (3bba2fe)
|
Example of execution macro. 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 | ana (Int_t mode=mGRID) |
void | LoadLibraries (Int_t mode) |
Load analysis libraries. More... | |
void | SetupPar (char *pararchivename) |
void | CheckInputData (const anaModes mode) |
Sets input data and tree strings. More... | |
void | CreateChain (const anaModes mode, TChain *chain, TChain *chainxs) |
Fills chain with data files paths. More... | |
void | CheckEnvironmentVariables () |
Bool_t | GetAverageXsection (TTree *tree, Double_t &xs, Float_t &ntr, Int_t &n) |
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 * | kDatasetPROOF = "/alice/vernet/LHC11b_149646" |
Number of files to analyze in local mode. More... | |
Int_t | kDatasetNMaxFiles = 20 |
TString | ccin2p3UserName = "arbor" |
TString | alienUserName = "narbor" |
char * | kXML = "collection.xml" |
const char * | kXSFileName = "pyxsec.root" |
Global name for the xml collection file with data on grid. More... | |
TArrayF * | xsArr |
Name of file with pT-hard cross sections. More... | |
TArrayI * | trArr |
Bool_t | kMC = kFALSE |
TString | kInputData = "ESD" |
With real data kMC = kFALSE. More... | |
Int_t | kYear = 2011 |
ESD, AOD, MC, deltaAOD. More... | |
TString | kCollision = "pp" |
Bool_t | outAOD = kFALSE |
TString | kTreeName |
Some tasks doesnt need it. More... | |
TString | kPass = "" |
char | kTrigger [1024] |
Int_t | kRun = 0 |
Example of execution macro.
Example macro to do analysis with the analysis classes in CaloTrackCorrelations, in local, grid or plugin modes.
Pay attention to the options and definitions set in the lines below
Definition in file ana.C.
enum anaModes |
Different analysis modes.
Main execution method. It:
mode | analysis mode defined in enum anaModes |
Definition at line 86 of file ana.C.
Referenced by AddAnalysisTasks(), anaGenKine(), ConfigureChargedAnalysis(), ConfigureClusterPileUpAnalysis(), ConfigureElectronAnalysis(), ConfigureEMCALTriggerClusterAnalysis(), ConfigureGenKine(), ConfigureGenKineAnalysis(), ConfigureHadronCorrelationAnalysis(), ConfigureInClusterIMAnalysis(), ConfigureIsolationAnalysis(), ConfigurePhotonAnalysis(), ConfigurePhotonJetAnalysis(), ConfigurePi0Analysis(), ConfigurePi0EbEAnalysis(), ConfigurePi0Flow(), ConfigurePi0KineAnalysis(), ConfigureQAAnalysis(), ConfigureRandomTriggerAnalysis(), AliAnaCaloTrackCorrMaker::FillAndGetAODBranchList(), AliAnaCaloTrackCorrMaker::GetListOfAnalysisCuts(), AliAnaCaloTrackCorrMaker::GetOutputContainer(), AliAnaCaloTrackCorrMaker::Init(), EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents(), EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::Process(), EmpiricalMaker::ProcessCent(), AliAnaCaloTrackCorrMaker::ProcessEvent(), AliAnaPi0EbE::SetAnalysisType(), AliAnalysisTaskFullppJet::SetAnaType(), and AliAnaCaloTrackCorrMaker::Terminate().
void CheckEnvironmentVariables | ( | ) |
void CheckInputData | ( | const anaModes | mode | ) |
Read the PYTHIA statistics from the file pyxsec.root created by the function WriteXsection(): integrated cross section (xsection) and the number of Pyevent() calls (ntrials) and calculate the weight per one event xsection/ntrials The spectrum calculated by a user should be multiplied by this weight, something like this: TH1F *userSpectrum ... // book and fill the spectrum userSpectrum->Scale(weight)
Yuri Kharlov 19 June 2007 Gustavo Conesa 15 April 2008 Add recovery of xs from pyxsec_hists.root file 15/jan/2015
Definition at line 1212 of file ana.C.
Referenced by ana().
void LoadLibraries | ( | Int_t | mode | ) |
void SetupPar | ( | char * | pararchivename | ) |
Int_t kDatasetNMaxFiles = 20 |
Definition at line 38 of file ana.C.
Referenced by CreateChain().
char* kDatasetPROOF = "/alice/vernet/LHC11b_149646" |
Number of files to analyze in local mode.
Definition at line 37 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Int_t kFile = 2 |
Data are in files kInDir/kPattern+i.
Definition at line 31 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
char* kInDir = "/user/data/files/" |
Definition at line 29 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
TString kInputData = "ESD" |
With real data kMC = kFALSE.
Definition at line 63 of file ana.C.
Referenced by ConfigurePhotonAnalysis().
Bool_t kMC = kFALSE |
Definition at line 62 of file ana.C.
Referenced by ana(), CheckEnvironmentVariables(), CheckInputData(), and emcalReclusterize().
char* kPattern = "" |
Global, path to data files.
Definition at line 30 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Int_t kRun = 0 |
Definition at line 70 of file ana.C.
Referenced by ana(), CheckEnvironmentVariables(), CheckInputData(), and emcalReclusterize().
char kTrigger[1024] |
Definition at line 69 of file ana.C.
Referenced by CheckEnvironmentVariables().
char* kXML = "collection.xml" |
Definition at line 45 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
const char* kXSFileName = "pyxsec.root" |
Global name for the xml collection file with data on grid.
Definition at line 52 of file ana.C.
Referenced by CreateChain().
Int_t kYear = 2011 |
ESD, AOD, MC, deltaAOD.
Definition at line 64 of file ana.C.
Referenced by ana(), and CheckEnvironmentVariables().
Bool_t outAOD = kFALSE |
Definition at line 66 of file ana.C.
Referenced by ana(), AliAnaCaloTrackCorrBaseClass::ConnectInputOutputAODBranches(), emcalReclusterize(), and AliAnaCaloTrackCorrBaseClass::GetAODBranch().
TArrayF* xsArr |
Name of file with pT-hard cross sections.
Definition at line 55 of file ana.C.
Referenced by CreateChain(), and GetAverageXsection().