]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 1 | #include "AliITSdictSSD.h" |
b0f5e3fc | 2 | |
b0f5e3fc | 3 | void AliITSdictSSD::AddTrack(Int_t track) { |
4 | // add track | |
5 | if (fTracks > 9) return; | |
e8189707 | 6 | Int_t exist = 0; |
b0f5e3fc | 7 | |
e8189707 | 8 | for(Int_t i=0; i<10; i++) |
b0f5e3fc | 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 | //**************************************************************************** |