Improved particle selection in TOF
authorlramona <lramona@cern.ch>
Mon, 15 Sep 2014 14:41:59 +0000 (16:41 +0200)
committerlramona <lramona@cern.ch>
Mon, 15 Sep 2014 14:41:59 +0000 (16:41 +0200)
PWGLF/STRANGENESS/Hypernuclei/AliAnalysisTaskNucleiv2SP.cxx

index 1122e57..c8b5891 100644 (file)
@@ -667,6 +667,9 @@ void AliAnalysisTaskNucleiv2SP::UserExec(Option_t *)
     Float_t  mass  = -99;
     Double_t pt  = esdtrack->Pt();
 
+    if(fptc==3)
+      pt = 2*pt;
+
     if(TMath::Abs(ptot) < pmax && TMath::Abs(pullTPC) <= 3 && TMath::Abs(pt) < ptmax){
 
       fhBBDeu->Fill(ptot*esdtrack->GetSign(),TPCSignal);
@@ -680,8 +683,18 @@ void AliAnalysisTaskNucleiv2SP::UserExec(Option_t *)
        mass = ptot/TMath::Sqrt(gamma*gamma - 1); // using inner TPC mom. as approx.
        
        fhTOF->Fill(ptot*esdtrack->GetSign(),beta);
-       if(TMath::Abs(mass) > 2.7)continue;
-       if(TMath::Abs(mass) < 1. )continue;
+       if(fptc==1){
+         if(TMath::Abs(mass) > 2.7)continue;
+         if(TMath::Abs(mass) < 1. )continue;
+       }
+       if(fptc==2){
+         if(TMath::Abs(mass) > 5.0)continue;
+         if(TMath::Abs(mass) < 1.8 )continue;
+       }
+       if(fptc==3){
+         if(TMath::Abs(mass) > 5.0)continue;
+         if(TMath::Abs(mass) < 1.8 )continue;
+       }
        fhMassTOF->Fill(mass);
       }