]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSTableSSD.h
Step size region by region.
[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  private:
22     Int_t SearchValue(Int_t *arr, Int_t refer, Int_t max){
23         for(Int_t i=0;i<max;i++)if(arr[i]==refer)return i;
24         return -1;}
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,0) // SSD table
31 };
32 #endif