bug in StepManager fixed, thanks to Andreas
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2009 10:54:10 +0000 (10:54 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2009 10:54:10 +0000 (10:54 +0000)
T0/AliT0v1.cxx

index d0cea6f..cd9298e 100644 (file)
@@ -710,11 +710,9 @@ void AliT0v1::StepManager()
            Float_t ttime=gMC->TrackTime();
            hits[5]=ttime*1e12;
            if(RegisterPhotoE(vol[1]-1,hits[3])) {
-             AddHit(fIshunt,vol,hits);
+             AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,hits);
        // Create a track reference at the exit of photocatode
-        
-             gMC->TrackMomentum(mom);
-             AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kT0);
+                     AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kT0);
            }       
          }
          //  cout<< gAlice->GetMCApp()->GetCurrentTrackNumber()<<" hit added "<<endl;