]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSTableSSD.h
Changes done in order to remove compilation warnings
[u/mrichter/AliRoot.git] / ITS / AliITSTableSSD.h
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 #include <TObject.h>
8
9 class AliITSTableSSD : public TObject{
10  public:
11     AliITSTableSSD(); // Default constructor
12     AliITSTableSSD(const AliITSTableSSD & source); //Copy constructor
13     AliITSTableSSD(Int_t noelem); // Standard Constructor
14     virtual ~AliITSTableSSD(); //destructor
15     AliITSTableSSD& operator=(const AliITSTableSSD &source);// = operator
16     void Add(Int_t side, Int_t strip); // add an element to the table
17     void Clear(); // Clears the contents of the table
18     void DumpTable(); // it dumps the contents of the table
19     Int_t Use(Int_t side); // use current element - returns -1 if none
20     
21     virtual void Clear(Option_t*)  {return TObject::Clear();}
22
23  private:
24     Int_t SearchValue(Int_t *arr, Int_t refer, Int_t max){
25         for(Int_t i=0;i<max;i++)if(arr[i]==refer)return i;
26         return -1;}
27  private:
28     Int_t fDim;        //! dimension of the table 
29     Int_t * fArray;     //! table
30     Int_t fCurrUse[2];    //! current element in use (0: P side; 1: N side)
31     Int_t fCurrFil[2];    //! element to be filled (0: P side; 1: N side)
32     ClassDef(AliITSTableSSD,0) // SSD table
33 };
34 #endif