documented or comments sufficiently.
+++ /dev/null
-#include "AliITSdictSSD.h"
-
-void AliITSdictSSD::AddTrack(Int_t track) {
- // add track
- if (fTracks > 9) return;
- Int_t exist = 0;
-
- for(Int_t i=0; i<10; i++)
- {
- if(track == fTrack[i])
- {
- exist = 1;
- }
-
- }
- if (!exist)
- {
- fTrack[fTracks++] = track;
- }
-
-}
-
-
-Int_t AliITSdictSSD::GetTrack(Int_t index) {
- // get track
- if(index > fTracks) return 0;
- else return fTrack[index];
-}
-
-
-//****************************************************************************
+++ /dev/null
-#ifndef ALIITSDICTSSD_H
-#define ALIITSDICTSSD_H
-
-#include <Rtypes.h>
-
-class AliITSdictSSD {
-
-public:
-
- AliITSdictSSD() {
- // constructor
- ZeroTracks();
- }
- virtual ~AliITSdictSSD() {
- // destructor
- };
-
- void AddTrack(Int_t track);
- Int_t GetTrack(Int_t index);
- Int_t GetNTracks() {
- // get num of tracks
- return fTracks;
- }
- void ZeroTracks() {
- // zero tracks
- for (Int_t i =0;i<10;i++) fTrack[i]=-3; fTracks = 0;
- }
-
-private:
- Int_t fTrack[10]; // Track array
- Int_t fTracks; // Tracks
-};
-
-
-#endif