]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSdictSSD.cxx
Updated version of the Bari code to work with the HEAD. A new test macros has also...
[u/mrichter/AliRoot.git] / ITS / AliITSdictSSD.cxx
1 #include "AliITSdictSSD.h"
2
3 void AliITSdictSSD::AddTrack(Int_t track) {
4   // add track
5     if (fTracks > 9) return;
6     Int_t exist = 0;
7     
8     for(Int_t i=0; i<10; i++) 
9      {
10        if(track == fTrack[i]) 
11         {
12          exist = 1;
13         }
14       
15       } 
16     if (!exist) 
17      {
18      fTrack[fTracks++] = track;     
19      }
20
21 }
22
23
24 Int_t AliITSdictSSD::GetTrack(Int_t index) {
25   // get track
26     if(index > fTracks) return 0;
27     else return fTrack[index];
28 }
29
30
31 //****************************************************************************