// 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
//
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);