]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/TPC/runROCRawAnalysis.C
updated to new BG histo naming
[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 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, 
11     const char* option = "", const char* proofServer = "jgrosseo@lxb6046")
12 {
13   if (aProof)
14     connectProof(proofServer);
15
16   TString libraries("libEG;libGeom;libPWG0base;libPWG0dep");
17   TString packages;
18
19   if (!prepareQuery(libraries, packages, 2))
20     return;
21
22   TChain* chain = CreateChain("RAW", dataDir, nRuns, offset);
23   
24   cout << "Entries in chain " << chain->GetEntries() << endl;
25
26   TList inputList;
27   
28   TString selectorName = "AliROCRawAnalysisSelector";
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
39   Int_t result = executeQuery(chain, &inputList, selectorName, option, entries);
40 }