]>
Commit | Line | Data |
---|---|---|
10ebe68d | 1 | /* $Id$ */ |
2 | ||
3 | // | |
4 | // Script to run the creation of input for systematics | |
5 | // | |
6 | ||
7 | #include "../CreateESDChain.C" | |
0bd1f8a0 | 8 | #include "../PWG0Helper.C" |
10ebe68d | 9 | |
0bd1f8a0 | 10 | void makeSystematics(Char_t* dataDir, Int_t nRuns=20, Int_t offset = 0, Bool_t debug = kFALSE, Bool_t aProof = kFALSE, const Char_t* option = "") |
10ebe68d | 11 | { |
0bd1f8a0 | 12 | if (aProof) |
13 | connectProof("proof01@lxb6046"); | |
14 | ||
4c351225 | 15 | TString libraries("libEG;libGeom;libESD;libVMC;libMinuit;libSTEER;libEVGEN;libFASTSIM;libmicrocern;libpdf;libpythia6;libEGPythia6;libAliPythia6;libPWG0base;libPWG0dep"); |
0bd1f8a0 | 16 | TString packages("PWG0base;PWG0dep"); |
17 | ||
18 | if (!prepareQuery(libraries, packages, kTRUE)) | |
19 | return; | |
10ebe68d | 20 | |
21 | gROOT->ProcessLine(".L CreateCuts.C"); | |
22 | ||
23 | AliESDtrackCuts* esdTrackCuts = CreateTrackCuts(); | |
24 | if (!esdTrackCuts) | |
25 | { | |
26 | printf("ERROR: esdTrackCuts could not be created\n"); | |
27 | return; | |
28 | } | |
29 | ||
0bd1f8a0 | 30 | TList inputList; |
31 | inputList.Add(esdTrackCuts); | |
32 | ||
10ebe68d | 33 | TChain* chain = CreateESDChain(dataDir, nRuns, offset); |
10ebe68d | 34 | |
0bd1f8a0 | 35 | TString selector("AlidNdEtaSystematicsSelector.cxx++"); |
10ebe68d | 36 | if (debug != kFALSE) |
37 | selector += "g"; | |
38 | ||
0bd1f8a0 | 39 | Int_t result = executeQuery(chain, &inputList, selector, option); |
10ebe68d | 40 | } |