]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSTableSSD.h
Minor fixes in the event tag to take into account the new way of storing the trigger...
[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"
25393432 7#include <TObject.h>
d895ac37 8
25393432 9class 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
d2f55a22 20
2645edaa 21 virtual void Clear(Option_t*) {TObject::Clear();}
d895ac37 22
23 private:
25393432 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
d895ac37 33};
34#endif