]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentationSSD.h
cleanup
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSSD.h
index 52ff9a21ca4193203369b86bb8a6f56fa70817d5..38b3a50d0e6adb6be8adc7e9aa55684fb6c5797d 100644 (file)
@@ -3,7 +3,10 @@
 
 #include "AliITSsegmentation.h"
 
-// segmentation for SSD
+//////////////////////////////////////////////////////
+// Segmentation class for SSD                       //
+//                                                  //
+//////////////////////////////////////////////////////
 
 /* $Id$ */
 
@@ -35,7 +38,8 @@ public AliITSsegmentation {
     // Transform from real coordinates to strips
     virtual void    GetPadIxz(Float_t x ,Float_t z ,Int_t   &iP,Int_t  &iN) const;
     // Transform from strips to real coordinates
-    virtual void    GetPadCxz(Int_t iP, Int_t iN, Float_t &x , Float_t &z) const;
+            void    GetPadCxz(Float_t iP, Float_t iN, Float_t &x , Float_t &z) const;
+    virtual void    GetPadCxz(Int_t iP, Int_t iN, Float_t &x , Float_t &z) const { GetPadCxz((Float_t) iP, (Float_t) iN, x, z); }
     virtual void    GetPadTxz(Float_t &x , Float_t &z) const;
     // Transformation from Geant cm detector center local coordinates
     // to detector P and N side strip numbers..
@@ -44,16 +48,13 @@ public AliITSsegmentation {
     // from 0. iPN=0 for P side and 1 for N side strip. Returned is z=0.0
     // and the corresponding x value..
     virtual void    DetToLocal(Int_t ix,Int_t iPN,Float_t &x,Float_t &z) const;
-    // Given one P side strip and one N side strip, Returns kTRUE if they
-    // cross each other and the location of the two crossing strips and
-    // their correxlation matrix c[2][2].
-    virtual Bool_t  GetCrossing(Int_t iP,Int_t iN,Float_t &x,Float_t &z,
-                               Float_t c[2][2]);
-
 
     virtual Int_t    GetNumberOfChips() const {
       return fgkNchipsPerSide;
     }
+    virtual Int_t    GetMaximumChipIndex() const{
+      return fgkNchipsPerSide*2-1;
+    }
     virtual Int_t    GetChipFromLocal(Float_t xloc, Float_t zloc) const;
     virtual Int_t    GetChipFromChannel(Int_t ix, Int_t iz) const;
     virtual Int_t    GetChipsInLocalWindow(Int_t* array, Float_t zmin, Float_t zmax, Float_t xmin, Float_t xmax) const;