]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/TPC/runROCRawAnalysis.C
added skeleton for AliROCRawAnalysis and a few other updates
[u/mrichter/AliRoot.git] / PWG0 / TPC / runROCRawAnalysis.C
1 /* $Id$ */
2
3 //
4 // 
5 //
6
7 #include "../CreateESDChain.C"
8 #include "../PWG0Helper.C"
9
10 void runROCESDAnalysis(Char_t* dataDir, 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;libPWG0base");
17   TString packages;
18
19   if (!prepareQuery(libraries, packages, 2))
20     return;
21
22   TChain* chain = CreateRawChain(dataDir, nRuns);
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 }