ROOT logo
#ifndef ALIITSTABLESSD_H
#define ALIITSTABLESSD_H
/* Copyright(c) 2002-2003, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice     */

///////////////////////////////////////////////////////////
// AliITSTableSSD is used by AliITSsimulationSSD class to// 
//fill the AliITSpList  object starting from the map with// 
//energy depositions                                     //
///////////////////////////////////////////////////////////

#include "Rtypes.h"
#include <TObject.h>

class AliITSTableSSD : public TObject{
 public:
    AliITSTableSSD(); // Default constructor
    AliITSTableSSD(const AliITSTableSSD & source); //Copy constructor
    AliITSTableSSD(Int_t noelem); // Standard Constructor
    virtual ~AliITSTableSSD(); //destructor
    AliITSTableSSD& operator=(const AliITSTableSSD &source);// = operator
    void Add(Int_t side, Int_t strip); // add an element to the table
    void Clear(); // Clears the contents of the table
    void DumpTable(); // it dumps the contents of the table
    Int_t Use(Int_t side); // use current element - returns -1 if none
    
    virtual void Clear(Option_t*)  {TObject::Clear();}

 private:
    Int_t SearchValue(const Int_t *arr, Int_t refer, Int_t max) const{
	for(Int_t i=0;i<max;i++)if(arr[i]==refer)return i;
	return -1;}
 private:
    Int_t fDim;        //! dimension of the table 
    Int_t * fArray;     //! table
    Int_t fCurrUse[2];    //! current element in use (0: P side; 1: N side)
    Int_t fCurrFil[2];    //! element to be filled (0: P side; 1: N side)
    ClassDef(AliITSTableSSD,0) // SSD table
};
#endif
 AliITSTableSSD.h:1
 AliITSTableSSD.h:2
 AliITSTableSSD.h:3
 AliITSTableSSD.h:4
 AliITSTableSSD.h:5
 AliITSTableSSD.h:6
 AliITSTableSSD.h:7
 AliITSTableSSD.h:8
 AliITSTableSSD.h:9
 AliITSTableSSD.h:10
 AliITSTableSSD.h:11
 AliITSTableSSD.h:12
 AliITSTableSSD.h:13
 AliITSTableSSD.h:14
 AliITSTableSSD.h:15
 AliITSTableSSD.h:16
 AliITSTableSSD.h:17
 AliITSTableSSD.h:18
 AliITSTableSSD.h:19
 AliITSTableSSD.h:20
 AliITSTableSSD.h:21
 AliITSTableSSD.h:22
 AliITSTableSSD.h:23
 AliITSTableSSD.h:24
 AliITSTableSSD.h:25
 AliITSTableSSD.h:26
 AliITSTableSSD.h:27
 AliITSTableSSD.h:28
 AliITSTableSSD.h:29
 AliITSTableSSD.h:30
 AliITSTableSSD.h:31
 AliITSTableSSD.h:32
 AliITSTableSSD.h:33
 AliITSTableSSD.h:34
 AliITSTableSSD.h:35
 AliITSTableSSD.h:36
 AliITSTableSSD.h:37
 AliITSTableSSD.h:38
 AliITSTableSSD.h:39
 AliITSTableSSD.h:40