]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSt12QuadrantSegmentation.h
Additional protection in case of negative indexes. More investigation is needed
[u/mrichter/AliRoot.git] / MUON / AliMUONSt12QuadrantSegmentation.h
index ab62f616e976895af6f2c0fff4ffbdc161c6d8db..59b890c07e2fa975f33a6e5ba621d34103250267 100644 (file)
@@ -35,7 +35,8 @@ class AliMUONChamber;
 class AliMUONSt12QuadrantSegmentation : public AliMUONVGeometryDESegmentation 
 {
   public:
-    AliMUONSt12QuadrantSegmentation(AliMpStationType stationType,
+    AliMUONSt12QuadrantSegmentation(AliMpVSegmentation* segmentation,
+                                    AliMpStationType stationType, 
                                     AliMpPlaneType planeType);
     AliMUONSt12QuadrantSegmentation();
     
@@ -64,7 +65,7 @@ class AliMUONSt12QuadrantSegmentation : public AliMUONVGeometryDESegmentation
     virtual AliMUONGeometryDirection  GetDirection();
                        // Returns the direction with a constant pad size
     // Access to mapping
-    virtual const AliMpSectorSegmentation* GetMpSegmentation() const;                 
+    virtual const AliMpVSegmentation* GetMpSegmentation() const;                      
 
     // Transform from pad (wire) to real coordinates and vice versa
     //
@@ -162,20 +163,15 @@ class AliMUONSt12QuadrantSegmentation : public AliMUONVGeometryDESegmentation
   private:
     // methods
     void UpdateCurrentPadValues(const AliMpPad& pad);
-    void ReadMappingData();
   
-    // constants
-    static const Float_t  fgkWireD;     // default wire pitch
-    static const Float_t  fgkLengthUnit;// conversion between length units
-                                        // from mapping (mm) to AliRoot (cm)
     // data members
 
     // From mapping
     //
     AliMpStationType         fStationType;       // station type
     AliMpPlaneType           fPlaneType;         // plane type
-    AliMpSector*             fSector;            // ! sector (from mapping)
-    AliMpSectorSegmentation* fSectorSegmentation;// sector segmentation (from mapping)
+    const AliMpSector*       fSector;            // sector (from mapping)
+    AliMpSectorSegmentation* fSectorSegmentation;// sector segmentation (from mapping)
     AliMpVPadIterator*       fSectorIterator;    // ! iterator over pads
 
     // Wire pitch
@@ -214,7 +210,7 @@ class AliMUONSt12QuadrantSegmentation : public AliMUONVGeometryDESegmentation
 
     TObjArray* fCorrA; // ! Array of correction functions
 
-  ClassDef(AliMUONSt12QuadrantSegmentation,1) // Station1 segmentation
+  ClassDef(AliMUONSt12QuadrantSegmentation,2) // Station1 segmentation
 };
 
 #endif //ALI_MUON_ST12_QUADRANT_SEGMENTATION_H