/*
$Log$
+Revision 1.6 2002/08/21 22:09:58 nilsen
+Updated SPD simulation with difusion effects. ReWritten Hit to SDigits
+code.
+
*/
#include <iostream.h>
#include <TRandom.h>
// expect module to be an
// integer
UpdateMapSignal(kz-1,kx-1,
- mod->GetHitTrackIndex(hit),
+// mod->GetHitTrackIndex(hit),
+ ((AliITShit*)(mod->GetHit(hit)))->GetTrack(),
hit,fModule,dXCharge,pList);
} // dXCharge > 1 e-
} // jx loop
Float_t electronics;
// Float_t phys;
Double_t sig;
- const Int_t nmaxtrk=3;
+ const Int_t nmaxtrk=AliITSdigitSPD::GetNTracks();
static AliITSdigitSPD dig;
for(Int_t iz=0; iz<fNPixelsZ; iz++){
digits[2] = 1; */
for(j=0;j<nmaxtrk;j++){
// charges[j] = 0.0;
- if (pList->GetTrack(iz,ix,0)) {
+ if (j<pList->GetNEnteries()) {
dig.fTracks[j] = pList->GetTrack(iz,ix,j);
dig.fHits[j] = pList->GetHit(iz,ix,j);
/*
hits[j] = pList->GetHit(iz,ix,j);
*/
}else { // Default values
- dig.fTracks[j] = pList->GetTrack(iz,ix,j);
- dig.fHits[j] = pList->GetHit(iz,ix,j);
+ dig.fTracks[j] = -3;
+ dig.fHits[j] = -1;
/* tracks[j] = -2; //noise
hits[j] = -1; */
} // end if pList