]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationSlat.h
Updated selection in ReadFromTracks()
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationSlat.h
index 5cca149c426e6748408b6e934ea3715d17a1580c..049964475c4229813be41f573bac55d692b9eef4 100644 (file)
@@ -22,7 +22,8 @@ class AliMUONSegmentationSlat :
 public AliSegmentation {
  public:
     AliMUONSegmentationSlat();
-    virtual ~AliMUONSegmentationSlat(){}
+    AliMUONSegmentationSlat(Int_t nsec);    
+    virtual ~AliMUONSegmentationSlat();
     //    
     // Set Chamber Segmentation Parameters
     //
@@ -87,6 +88,13 @@ public AliSegmentation {
     virtual Int_t ISector();
     // calculate sector from pad coordinates
     virtual Int_t Sector(Int_t ix, Int_t iy);
+    virtual Int_t Sector(Float_t  x, Float_t y)
+       {
+           Int_t ix, iy;
+           GetPadI(x,y,0.,ix,iy);
+           return Sector(ix,iy);
+       }
+    
     //
     // Signal Generation Condition during Stepping
     virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z);
@@ -111,7 +119,8 @@ public AliSegmentation {
     // Test points for auto calibration
     virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *y)  const {;}
     // Draw the segmentation zones
-    virtual void Draw(const char *opt = "") const {;}
+    virtual void Draw(const char *opt = "") const;
+
     
     // Function for systematic corrections
     // Set the correction function
@@ -138,7 +147,7 @@ public AliSegmentation {
  protected:
 
     AliMUONChamber*      fChamber;               // Parent Chamber
-    
+    Int_t                fId;                    // Identifier
     //
     //  Geometry
     //
@@ -160,11 +169,11 @@ public AliSegmentation {
     
     TArrayI*    fNDiv;                             // Pad size division
     // Slats
-    TObjArray*  fSlats;                           // Array of Slats
+    TObjArray*  fSlats;                            // Array of Slats
     // Proxy data
-    AliMUONSegmentationSlatModule* fCurrentSlat;  // Pointer to current slat
-    Int_t       fSlatIndex;                       // Current slat index
-    ClassDef(AliMUONSegmentationSlat,1)           // Segmentation for Muon Chamber built from Slat Modules
+    AliMUONSegmentationSlatModule* fCurrentSlat;   // Pointer to current slat
+    Int_t       fSlatIndex;                        // Current slat index
+    ClassDef(AliMUONSegmentationSlat,1)            // Segmentation for Muon Chamber built from Slat Modules
 };