Bug fix (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Mar 2004 15:57:15 +0000 (15:57 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Mar 2004 15:57:15 +0000 (15:57 +0000)
ITS/AliCascadeComparison.C

index 122a68df377fe09d4a2e07539d3cdb45a1a8426d..11ee6dd3a6889a830bad9d5280f3abaea228e72c 100644 (file)
@@ -296,7 +296,7 @@ Int_t AliCascadeComparison(Int_t code=3312, const Char_t *dir=".") {
          AliTrackReference *bref=(AliTrackReference*)brefs->UncheckedAt(i);
          AliTrackReference *nref=(AliTrackReference*)nrefs->UncheckedAt(i);
          AliTrackReference *pref=(AliTrackReference*)prefs->UncheckedAt(i);
-         Int_t pdg=(Int_t)bref->GetLength();  //this is the cascade's PDG !
+         Int_t pdg=(Int_t)nref->GetLength();  //this is the cascade's PDG !
          if (code!=pdg) continue;
          ng++;
          pxg=bref->Px()+nref->Px()+pref->Px();