Compilation on Windows/Cygwin
[u/mrichter/AliRoot.git] / PWG0 / TPC / runROCRawAnalysis.C
CommitLineData
eb884e16 1/* $Id$ */
2
3//
4//
5//
6
7#include "../CreateESDChain.C"
8#include "../PWG0Helper.C"
9
1d7991a5 10void runROCRawAnalysis(Char_t* dataDir, Int_t nRuns=20, Int_t offset=0, Long64_t entries = TChain::kBigNumber, Bool_t aDebug = kFALSE, Bool_t aProof = kFALSE,
eb884e16 11 const char* option = "", const char* proofServer = "jgrosseo@lxb6046")
12{
13 if (aProof)
14 connectProof(proofServer);
15
1d7991a5 16 TString libraries("libEG;libGeom;libPWG0base;libPWG0dep");
eb884e16 17 TString packages;
18
19 if (!prepareQuery(libraries, packages, 2))
20 return;
21
1d7991a5 22 TChain* chain = CreateChain("RAW", dataDir, nRuns, offset);
eb884e16 23
c50f9dc0 24 cout << "Entries in chain " << chain->GetEntries() << endl;
25
eb884e16 26 TList inputList;
27
c50f9dc0 28 TString selectorName = "AliROCRawAnalysisSelector";
eb884e16 29 AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);
30
31 if (aDebug != kFALSE)
32 {
33 AliLog::SetClassDebugLevel(selectorName, AliLog::kDebug);
34 selectorName += ".cxx+g";
35 }
36 else
37 selectorName += ".cxx+";
38
1d7991a5 39 Int_t result = executeQuery(chain, &inputList, selectorName, option, entries);
eb884e16 40}