Compilation on Windows/Cygwin
[u/mrichter/AliRoot.git] / PWG0 / TPC / runROCESDAnalysis.C
CommitLineData
df71af87 1/* $Id$ */
2
3//
4//
5//
6
7#include "../CreateESDChain.C"
8#include "../PWG0Helper.C"
9
6c3d6245 10void runROCESDAnalysis(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Int_t runNumber=0, Bool_t aProof = kFALSE,
df71af87 11 const char* option = "", const char* proofServer = "jgrosseo@lxb6046")
12{
13 if (aProof)
14 connectProof(proofServer);
15
6c3d6245 16 TString libraries("libEG;libGeom;libESD;libPWG0base;libPWG0dep");
1d7991a5 17 TString packages("PWG0base;PWG0dep");
df71af87 18
19 if (!prepareQuery(libraries, packages, 2))
20 return;
21
22 TChain* chain = CreateESDChain(data, nRuns, offset, kTRUE, kTRUE);
23
24 TList inputList;
25
6c3d6245 26 // TNamed* comment = new TNamed("comment",runStr.Data());
27 if (runNumber!=0)
28 inputList.Add(new TNamed("comment",Form("%d",runNumber)));
29
df71af87 30 TString selectorName = "AliROCESDAnalysisSelector";
31 AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);
32
33 if (aDebug != kFALSE)
34 {
35 AliLog::SetClassDebugLevel(selectorName, AliLog::kDebug);
1d7991a5 36 selectorName += ".cxx++g";
df71af87 37 }
38 else
39 selectorName += ".cxx+";
40
41 Int_t result = executeQuery(chain, &inputList, selectorName, option);
42}