]>
Commit | Line | Data |
---|---|---|
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" | |
25393432 | 7 | #include <TObject.h> |
d895ac37 | 8 | |
25393432 | 9 | class AliITSTableSSD : public TObject{ |
d895ac37 | 10 | public: |
25393432 | 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 | |
d895ac37 | 20 | |
21 | private: | |
25393432 | 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 | |
d895ac37 | 31 | }; |
32 | #endif |