]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 1 | |
2 | #include <stdio.h> | |
b0f5e3fc | 3 | |
b0f5e3fc | 4 | #include "AliITSdictSSD.h" |
b0f5e3fc | 5 | |
608f25d8 | 6 | ClassImp(AliITSdictSSD) |
b0f5e3fc | 7 | |
8 | void AliITSdictSSD::AddTrack(Int_t track) { | |
9 | // add track | |
10 | if (fTracks > 9) return; | |
e8189707 | 11 | Int_t exist = 0; |
b0f5e3fc | 12 | |
e8189707 | 13 | for(Int_t i=0; i<10; i++) |
b0f5e3fc | 14 | { |
15 | if(track == fTrack[i]) | |
16 | { | |
17 | exist = 1; | |
18 | } | |
19 | ||
20 | } | |
21 | if (!exist) | |
22 | { | |
23 | fTrack[fTracks++] = track; | |
24 | } | |
25 | ||
26 | } | |
27 | ||
28 | ||
29 | Int_t AliITSdictSSD::GetTrack(Int_t index) { | |
30 | // get track | |
31 | if(index > fTracks) return 0; | |
32 | else return fTrack[index]; | |
33 | } | |
34 | ||
35 | ||
36 | //**************************************************************************** |