Bug fix (Rossella)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jun 2010 12:40:04 +0000 (12:40 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jun 2010 12:40:04 +0000 (12:40 +0000)
PWG3/vertexingHF/AliAODPidHF.cxx

index 9012c7a..9dc68f2 100644 (file)
@@ -432,11 +432,28 @@ Int_t AliAODPidHF::MatchTPCTOF(AliAODTrack *track,Int_t mode,Int_t specie,Bool_t
   Int_t TPCinfo=0;
   if(CheckStatus(track,"TPC")) {
    if(fAsym) {
-    if(TPCRawAsym(track,specie)) TPCinfo=1;
+    if(TPCRawAsym(track,specie)) {
+      TPCinfo=1;
+     }else{
+      TPCinfo=-1;
+     }
    }else{
-    if(specie==2 && IsPionRaw(track,"TPC")) TPCinfo=1;
-    if(specie==3 && IsKaonRaw(track,"TPC")) TPCinfo=1;
-    if(specie==4 && IsProtonRaw(track,"TPC")) TPCinfo=1;
+    if(specie==2 && IsPionRaw(track,"TPC")) {
+     TPCinfo=1;
+    }else{
+     TPCinfo=-1;
+    }
+    if(specie==3 && IsKaonRaw(track,"TPC")) {
+     TPCinfo=1;
+    }else{
+     TPCinfo=-1;
+    }
+    if(specie==4 && IsProtonRaw(track,"TPC")) {
+     TPCinfo=1;
+    }else{
+     TPCinfo=-1;
+    }
+
    }