]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/TPC/runROCClusterAnalysis.C
redoing of TPC vertex when flag is set
[u/mrichter/AliRoot.git] / PWG0 / TPC / runROCClusterAnalysis.C
CommitLineData
fe8871b7 1/* $Id$ */
2
3//
4//
5//
6
7#include "../CreateESDChain.C"
8#include "../PWG0Helper.C"
9
10void runROCClusterAnalysis(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Int_t runNumber=0, 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;libPWG0dep");
17 TString packages("PWG0base;PWG0dep");
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 // TNamed* comment = new TNamed("comment",runStr.Data());
27 if (runNumber!=0)
28 inputList.Add(new TNamed("comment",Form("%d",runNumber)));
29
30 TString selectorName = "AliROCClusterAnalysisSelector";
31 AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);
32
33 if (aDebug != kFALSE)
34 {
35 AliLog::SetClassDebugLevel(selectorName, AliLog::kDebug);
36 selectorName += ".cxx++g";
37 }
38 else
39 selectorName += ".cxx+";
40
41 Int_t result = executeQuery(chain, &inputList, selectorName, option);
42}