]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSTableSSD.h
Comments updated and merge problems solved.
[u/mrichter/AliRoot.git] / ITS / AliITSTableSSD.h
CommitLineData
d895ac37 1#ifndef ALIITSTABLESSD_H
2#define ALIITSTABLESSD_H
3/* Copyright(c) 2002-2003, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6#include "Rtypes.h"
7
8class AliITSTableSSD {
9
10 private:
11Int_t SearchValue(Int_t *arr, Int_t refer, Int_t max){
12 for(Int_t i=0;i<max;i++)if(arr[i]==refer)return i;
13 return -1;
14}
15 public:
16 AliITSTableSSD(); // Default constructor
17 AliITSTableSSD(const AliITSTableSSD & source); //Copy constructor
18 AliITSTableSSD(Int_t noelem); // Standard Constructor
19 virtual ~AliITSTableSSD(); //destructor
20 void Add(Int_t side, Int_t strip); // add an element to the table
21 void Clear(); // Clears the contents of the table
22 void DumpTable(); // it dumps the contents of the table
23 Int_t Use(Int_t side); // use current element - returns -1 if none
24
25 private:
26 Int_t fDim; //! dimension of the table
27 Int_t * fArray; //! table
28 Int_t fCurrUse[2]; //! current element in use (0: P side; 1: N side)
29 Int_t fCurrFil[2]; //! element to be filled (0: P side; 1: N side)
30 ClassDef(AliITSTableSSD,1) // SSD table
31};
32#endif