]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/TFluka.cxx
Various fixes in order to compile the DA source code
[u/mrichter/AliRoot.git] / TFluka / TFluka.cxx
index abc26192b43f5b1722b696397181c510a987a0dc..0fd9649ab1648ca2fcad8b974d17d1f9a1442b43 100644 (file)
@@ -1000,7 +1000,7 @@ Int_t TFluka::PDGFromId(Int_t id) const
     }
 // Error id    
     if (id == 0 || id < kFLUKAcodemin || id > kFLUKAcodemax) {
-        if (fVerbosityLevel >= -1)
+        if (fVerbosityLevel >= 3)
             printf("PDGFromId: Error id = 0 %5d %5d\n", id, fCaller);
         return -1;
     }
@@ -1611,6 +1611,7 @@ Int_t TFluka::CorrectFlukaId() const
    // and there is a call to endraw for energy deposition for each of them
    // and they have the track number of their parent, but different identity (pdg)
    // so we want to assign also their parent identity.
+
    if( (IsTrackStop())
         && TRACKR.ispusr[mkbmx2 - 4] == TRACKR.ispusr[mkbmx2 - 1]
         && TRACKR.jtrack != TRACKR.ispusr[mkbmx2 - 3] ) {
@@ -1621,7 +1622,11 @@ Int_t TFluka::CorrectFlukaId() const
                << " assign parent PDG=" << PDGFromId(TRACKR.ispusr[mkbmx2 - 3]) << endl;
       return TRACKR.ispusr[mkbmx2 - 3]; // assign parent identity
    }
-      return TRACKR.jtrack;
+   if (TRACKR.jtrack <= 64) {
+       return TRACKR.jtrack;
+   } else {
+       return TRACKR.j0trck;
+   }
 }