| 1 | /* $Id$ */ |
| 2 | |
| 3 | // |
| 4 | // |
| 5 | // |
| 6 | |
| 7 | #include "../CreateESDChain.C" |
| 8 | #include "../PWG0Helper.C" |
| 9 | |
| 10 | void runROCESDAnalysis(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Bool_t aProof = kFALSE, |
| 11 | const char* option = "", const char* proofServer = "jgrosseo@lxb6046") |
| 12 | { |
| 13 | if (aProof) |
| 14 | connectProof(proofServer); |
| 15 | |
| 16 | TString libraries("libEG;libGeom;libESD;libPWG0base"); |
| 17 | TString packages; |
| 18 | |
| 19 | if (!prepareQuery(libraries, packages, 2)) |
| 20 | return; |
| 21 | |
| 22 | TChain* chain = CreateESDChain(data, nRuns, offset, kTRUE, kTRUE); |
| 23 | |
| 24 | TList inputList; |
| 25 | |
| 26 | TString selectorName = "AliROCESDAnalysisSelector"; |
| 27 | AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo); |
| 28 | |
| 29 | if (aDebug != kFALSE) |
| 30 | { |
| 31 | AliLog::SetClassDebugLevel(selectorName, AliLog::kDebug); |
| 32 | selectorName += ".cxx+g"; |
| 33 | } |
| 34 | else |
| 35 | selectorName += ".cxx+"; |
| 36 | |
| 37 | Int_t result = executeQuery(chain, &inputList, selectorName, option); |
| 38 | } |