Fix the config file
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Aug 2009 10:21:29 +0000 (10:21 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Aug 2009 10:21:29 +0000 (10:21 +0000)
PWG2/SPECTRA/macros/configProtonAnalysis.C

index cbdd29f..ca3bc22 100644 (file)
@@ -7,8 +7,8 @@ AliProtonAnalysis *GetProtonAnalysisObject(const char* analysisLevel = "ESD",
 
   AliProtonAnalysis *analysis = new AliProtonAnalysis();
   analysis->SetBaseAnalysis(baseAnalysis);
-  if(analysisBase->GetEtaMode()) analysis->SetEtaMode();
-  if(analysisBase->GetAnalysisMode() == AliProtonAnalysisBase::kGlobal) {
+  if(baseAnalysis->GetEtaMode()) analysis->SetEtaMode();
+  if(baseAnalysis->GetAnalysisMode() == AliProtonAnalysisBase::kGlobal) {
     Double_t gY[17] = {-0.9,-0.75,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.75,0.9};
     Double_t gPt[18] = {0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.7,1.9,2.1,2.4,2.7,3.1};
     analysis->InitAnalysisHistograms(16,gY,17,gPt);