fix fcollisiontype assignment bug
authordgangadh <dhevan.raja.gangadharan@cern.ch>
Wed, 1 Oct 2014 10:18:57 +0000 (12:18 +0200)
committerdgangadh <dhevan.raja.gangadharan@cern.ch>
Wed, 1 Oct 2014 10:18:57 +0000 (12:18 +0200)
PWGCF/FEMTOSCOPY/Chaoticity/AliFourPion.cxx
PWGCF/FEMTOSCOPY/Chaoticity/AliFourPion.h

index 31f2d31..a6b293d 100755 (executable)
@@ -956,8 +956,7 @@ void AliFourPion::ParInit()
        ExchangeAmpPointSource[i][j]->FixParameter(2, fPbPbc3FitEA->GetBinContent(i+1, 3, j+1));
        ExchangeAmpPointSource[i][j]->FixParameter(3, fPbPbc3FitEA->GetBinContent(i+1, 4, j+1));
        ExchangeAmpPointSource[i][j]->FixParameter(4, 0);
-      }
-      else if(fCollisionType==1){
+      }else if(fCollisionType==1){
        ExchangeAmpPointSource[i][j]->FixParameter(0, fpPbc3FitEA->GetBinContent(i+1, 1, j+1));
        ExchangeAmpPointSource[i][j]->FixParameter(1, fpPbc3FitEA->GetBinContent(i+1, 2, j+1));
        ExchangeAmpPointSource[i][j]->FixParameter(2, fpPbc3FitEA->GetBinContent(i+1, 3, j+1));
@@ -972,7 +971,7 @@ void AliFourPion::ParInit()
       }
     }
   }
-  
   /////////////////////////////////////////////
   /////////////////////////////////////////////
   
index 3b9ecac..04ecfe6 100755 (executable)
@@ -81,7 +81,7 @@ class AliFourPion : public AliAnalysisTaskSE {
   void SetMCdecision(Bool_t mc) {fMCcase = mc;}
   void SetTabulatePairs(Bool_t tabulate) {fTabulatePairs = tabulate;}
   void SetInterpolationType(Bool_t linearInterp) {fLinearInterpolation = linearInterp;}
-  void SetCollisionType(Bool_t ct) {fCollisionType = ct;}
+  void SetCollisionType(Short_t ct) {fCollisionType = ct;}
   void SetGenerateSignal(Bool_t gen) {fGenerateSignal = gen;}
   void SetGeneratorOnly(Bool_t genOnly) {fGeneratorOnly = genOnly;}
   void SetCentBinRange(Int_t low, Int_t high) {fCentBinLowLimit = low; fCentBinHighLimit = high;}