/* Copyright(c) 2002-2003, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#include "Rtypes.h"
+///////////////////////////////////////////////////////////
+// AliITSTableSSD is used by AliITSsimulationSSD class to//
+//fill the AliITSpList object starting from the map with//
+//energy depositions //
+///////////////////////////////////////////////////////////
-class AliITSTableSSD {
+#include "Rtypes.h"
+#include <TObject.h>
- private:
-Int_t SearchValue(Int_t *arr, Int_t refer, Int_t max){
- for(Int_t i=0;i<max;i++)if(arr[i]==refer)return i;
- return -1;
-}
+class AliITSTableSSD : public TObject{
public:
- AliITSTableSSD(); // Default constructor
- AliITSTableSSD(const AliITSTableSSD & source); //Copy constructor
- AliITSTableSSD(Int_t noelem); // Standard Constructor
- virtual ~AliITSTableSSD(); //destructor
- 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
+ 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 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,1) // SSD table
+ 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