minor fix
authorfnoferin <fnoferin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 13:09:51 +0000 (13:09 +0000)
committerfnoferin <fnoferin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 13:09:51 +0000 (13:09 +0000)
PWGPP/pid/AliAnalysisTaskK0sBayes.cxx
PWGPP/pid/AliAnalysisTaskLambdaBayes.cxx
PWGPP/pid/AliAnalysisTaskPhiBayes.cxx

index c8de271..f9f8029 100644 (file)
@@ -653,9 +653,7 @@ void AliAnalysisTaskK0sBayes::Analyze(AliAODEvent* aodEvent)
        
        nSigmaTOF = PIDResponse->NumberOfSigmasTOF(KpTrack,AliPID::kPion);
        fPiTOF[icentr]->Fill(fPtKp,nSigmaTOF);
-               
-       nSigmaTOF = TMath::Abs(nSigmaTOF);
-       
+                       
        if(fIsMC){
          Float_t mismAdd = addMismatchForMC;
          if(KpTrack->Pt() < 1) mismAdd = addMismatchForMC/KpTrack->Pt();
@@ -675,6 +673,7 @@ void AliAnalysisTaskK0sBayes::Analyze(AliAODEvent* aodEvent)
        }
 
        if(fCentrality < 20 && KpTrack->Pt() < 0.9 && KpTrack->Pt() > 0.8)fTOFTPCsignal->Fill(nSigmaTOF,nSigmaTPC);
+        nSigmaTOF = TMath::Abs(nSigmaTOF);
 
        if(nSigmaTOF < 2) fPidKp += 256;
        else if(nSigmaTOF < 3) fPidKp += 512;
index 40ffdca..66d0b79 100644 (file)
@@ -656,8 +656,6 @@ void AliAnalysisTaskLambdaBayes::Analyze(AliAODEvent* aodEvent)
        nSigmaTOF = PIDResponse->NumberOfSigmasTOF(KpTrack,AliPID::kProton);
        if(isLambda) fPrTOF[icentr]->Fill(fPtKp,nSigmaTOF);
        
-       nSigmaTOF = TMath::Abs(nSigmaTOF);
-       
        if(fIsMC){
          Float_t mismAdd = addMismatchForMC;
          if(KpTrack->Pt() < 1) mismAdd = addMismatchForMC/KpTrack->Pt();
@@ -677,6 +675,7 @@ void AliAnalysisTaskLambdaBayes::Analyze(AliAODEvent* aodEvent)
        }
 
        if(fCentrality < 20 && KpTrack->Pt() < 1.3 && KpTrack->Pt() > 1.2)fTOFTPCsignal->Fill(nSigmaTOF,nSigmaTPC);
+        nSigmaTOF = TMath::Abs(nSigmaTOF);
 
        if(nSigmaTOF < 2) fPidKp += 256;
        else if(nSigmaTOF < 3) fPidKp += 512;
index f393bce..b419096 100644 (file)
@@ -623,8 +623,6 @@ void AliAnalysisTaskPhiBayes::Analyze(AliAODEvent* aodEvent)
        nSigmaTOF = PIDResponse->NumberOfSigmasTOF(KpTrack,AliPID::kKaon);
        fKaTOF[icentr]->Fill(fPtKp,nSigmaTOF);
                
-       nSigmaTOF = TMath::Abs(nSigmaTOF);
-       
        if(fIsMC){
          Float_t mismAdd = addMismatchForMC;
          if(KpTrack->Pt() < 1) mismAdd = addMismatchForMC/KpTrack->Pt();
@@ -644,6 +642,7 @@ void AliAnalysisTaskPhiBayes::Analyze(AliAODEvent* aodEvent)
        }
 
        if(fCentrality < 20 && KpTrack->Pt() < 0.9 && KpTrack->Pt() > 0.8)fTOFTPCsignal->Fill(nSigmaTOF,nSigmaTPC);
+        nSigmaTOF = TMath::Abs(nSigmaTOF);
 
        if(nSigmaTOF < 2) fPidKp += 256;
        else if(nSigmaTOF < 3) fPidKp += 512;