Changed 10 to Digit::Ntracks()
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Mar 2006 16:51:34 +0000 (16:51 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Mar 2006 16:51:34 +0000 (16:51 +0000)
(Laurent)

MUON/AliMUONPoints.cxx

index 7bd74f3..328675d 100644 (file)
@@ -173,7 +173,7 @@ void AliMUONPoints::InspectDigit()
       char ptitle[11][100];
       //      sprintf(ptitle[11],"Tracks making this digit");
       //      pad->AddText(ptitle[11]);
-  for (int i=0;i<10;i++) {
+  for (int i=0;i<digit->Ntracks();i++) {
       if (digit->Track(i) == 0) continue;  
       sprintf(ptitle[i],"fTrackIndex: %d  Charge: %d",
              digit->Track(i), digit->TrackCharge(i));