]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSTableSSD.h
Tracking2Local matrix is not stored in the geometry but precalculated
[u/mrichter/AliRoot.git] / ITS / AliITSTableSSD.h
index 89c05151e5ae7c474a837a87a8e50dd0a9822ab8..f6a5749e961278556e7b1d74d3bd51ff8c41edf5 100644 (file)
@@ -3,30 +3,38 @@
 /* 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