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 */
9 class AliITSTableSSD : public TObject{
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
21 virtual void Clear(Option_t*) {TObject::Clear();}
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;
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