// Standard Creator.
fHits= new TClonesArray("AliEMCALHit",1000);
- gAlice->GetMCApp()->AddHitList(fHits);
+ // gAlice->GetMCApp()->AddHitList(fHits); // 20-dec-04 - advice of Andreas
fNhits = 0;
fIshunt = 2; // All hits are associated with particles entering the calorimeter
new((*fHits)[fNhits]) AliEMCALHit(*newHit);
fNhits++;
} // end if
-
+
delete newHit;
}
//______________________________________________________________________
AliEMCALGeometry * geom = GetGeometry() ;
- if(gMC->CurrentVolID(copy) == gMC->VolId("XPHI") ) { // We are in a Scintillator Layer
+ static Int_t idXPHI = gMC->VolId("XPHI");
+ if(gMC->CurrentVolID(copy) == idXPHI ) { // We are in a Scintillator Layer
Float_t depositedEnergy ;
if( ((depositedEnergy = gMC->Edep()) > 0.) && (gMC->TrackTime() < fTimeCut)){// Track is inside a scintillator and deposits some energy