X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PWG0%2FdNdEta%2FtestAnalysis2.C;h=e7928b1e5f9178e86e59eb8021dfe954ac244a07;hb=dc740de48a62d07a71c6af1f05f7df0d0e49caba;hp=a01a379dd2ca627303b5ef49a5fa9c4079af97b6;hpb=dc3ff20ea3648b3933878fbb6c4ccc238458584e;p=u%2Fmrichter%2FAliRoot.git diff --git a/PWG0/dNdEta/testAnalysis2.C b/PWG0/dNdEta/testAnalysis2.C index a01a379dd2c..e7928b1e5f9 100644 --- a/PWG0/dNdEta/testAnalysis2.C +++ b/PWG0/dNdEta/testAnalysis2.C @@ -1,3 +1,5 @@ +/* $Id$ */ + // // Script to test the dN/dEta analysis using the dNdEtaAnalysis and // dNdEtaCorrection classes. Note that there is a cut on the events, @@ -8,12 +10,11 @@ #include "../CreateESDChain.C" -testAnalysis2(Char_t* dataDir, Int_t nRuns=20, Bool_t aMC = kFALSE) +testAnalysis2(Char_t* dataDir, Int_t nRuns=20, Int_t offset=0, Bool_t aMC = kFALSE) { gSystem->Load("libPWG0base"); - gSystem->SetIncludePath("-I$ALICE_ROOT/PWG0"); - TChain* chain = CreateESDChainFromDir(dataDir, nRuns); + TChain* chain = CreateESDChainFromDir(dataDir, nRuns, offset, kFALSE); // ######################################################## // selection of esd tracks @@ -34,12 +35,12 @@ testAnalysis2(Char_t* dataDir, Int_t nRuns=20, Bool_t aMC = kFALSE) { dNdEtaCorrection* dNdEtaCorrection = new dNdEtaCorrection(); dNdEtaCorrection->LoadHistograms("correction_map.root","dndeta_correction"); - dNdEtaCorrection->RemoveEdges(2,0,2); + dNdEtaCorrection->RemoveEdges(2, 0, 2); chain->GetUserInfo()->Add(dNdEtaCorrection); } - TString selectorName = ((aMC == kFALSE) ? "AlidNdEtaAnalysisSelector" : "AlidNdEtaAnalysisMCSelector"); + TString selectorName = ((aMC == kFALSE) ? "AlidNdEtaAnalysisESDSelector" : "AlidNdEtaAnalysisMCSelector"); AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);