]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCv4.cxx
Updating eta storing
[u/mrichter/AliRoot.git] / ZDC / AliZDCv4.cxx
index d6c1296fd007e4dbdf3e4cec0ac926d05add0ca2..7ffa1b23a428f6b97333b0455e6e569d707d903d 100644 (file)
@@ -2254,12 +2254,12 @@ void AliZDCv4::StepManager()
   // Routine called at every step in the Zero Degree Calorimeters
   //
   Int_t   j, vol[2]={0,0}, ibeta=0, ialfa=0, ibe=0, nphe=0;
-  Float_t hits[13], x[3], xdet[3]={999.,999.,999.}, um[3], ud[3];
+  Float_t hits[14], x[3], xdet[3]={999.,999.,999.}, um[3], ud[3];
   Float_t destep=0., be=0., out=0.;
   Double_t s[3], p[4];
   const char *knamed;
   //
-  for(j=0;j<13;j++) hits[j]=-999.;
+  for(j=0;j<14;j++) hits[j]=-999.;
   //
   // --- This part is for no shower developement in beam pipe, TDI, VColl
   // If particle interacts with beam pipe, TDI, VColl -> return
@@ -2459,13 +2459,16 @@ void AliZDCv4::StepManager()
       //
       Int_t imo = part->GetFirstMother();
       if(imo>0){
-       TParticle * pmot = gAlice->GetMCApp()->Particle(imo);
+       TParticle *pmot = gAlice->GetMCApp()->Particle(imo);
        hits[11] = pmot->GetPdgCode();
+        hits[13] = pmot->Eta();
+      }
+      else{
+        hits[11] = 0;
+        hits[13] = part->Eta();
       }
-      else hits[11]=0;
       //
       hits[12] = 1.0e09*gMC->TrackTime(); // in ns!
-      //printf("\t TrackTime = %f\n", hits[12]);
 
       AddHit(curTrackN, vol, hits);