]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added get functions to access mapping.
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2005 10:28:28 +0000 (10:28 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2005 10:28:28 +0000 (10:28 +0000)
(Ivana)

MUON/AliMUONGeometrySegmentation.cxx
MUON/AliMUONGeometrySegmentation.h
MUON/AliMUONSt12QuadrantSegmentation.cxx
MUON/AliMUONSt12QuadrantSegmentation.h
MUON/mapping/AliMpSectorSegmentation.h

index 47532dca54718e711175ee97b010fc9e7179c423..2009258d0f23adcab34997a81b14b88fce2e43e0 100644 (file)
@@ -152,6 +152,18 @@ void AliMUONGeometrySegmentation::Add(Int_t detElemId,
   fDESegmentations->Add(detElemId, segmentation); 
 }  
 
+
+//______________________________________________________________________________
+const AliMUONVGeometryDESegmentation* 
+AliMUONGeometrySegmentation::GetDESegmentation(Int_t detElemId) const
+{
+// Return the DE segmentation 
+
+  if (!OwnNotify(detElemId)) return 0;
+
+  return fCurrentSegmentation;
+}
+
 //______________________________________________________________________________
 AliMUONGeometryDirection 
 AliMUONGeometrySegmentation::GetDirection(Int_t detElemId) const
index 0082f632deae4d474956b2fa5fb75164af28fb51..c5d40aa5430e4aac273570a5be4a645f37f6bbca 100644 (file)
@@ -41,6 +41,8 @@ class AliMUONGeometrySegmentation : public TObject
  
     // get methods
     AliMUONGeometryModule* GetGeometry() const;              
+    virtual const AliMUONVGeometryDESegmentation* GetDESegmentation(Int_t detElemId) const;
+                       // DE segmentation
     virtual AliMUONGeometryDirection GetDirection(Int_t detElemId) const;
                        // Direction with a constant pad size  
                       // (Direction or coordinate where the resolution is the best)
index 22938e20e71019a113ddef39295ca70a434ad043..1258f3728edd0ceb14b832927afb1e178c5aab4d 100644 (file)
@@ -252,6 +252,16 @@ AliMUONGeometryDirection  AliMUONSt12QuadrantSegmentation::GetDirection()
   }  
 }  
 
+//______________________________________________________________________________
+const AliMpSectorSegmentation*  
+AliMUONSt12QuadrantSegmentation::GetMpSegmentation() const
+{
+// Returns the mapping segmentation
+// (provides access to electronics info)
+
+  return fSectorSegmentation;
+}  
+
 //______________________________________________________________________________
 Float_t AliMUONSt12QuadrantSegmentation::GetAnod(Float_t xhit) const
 {
index c6c501058f0125d859b866935a4cea52130b10ff..cf5bccdee7bb56eb298a20806cdc6bb31f49b609 100644 (file)
@@ -60,6 +60,8 @@ class AliMUONSt12QuadrantSegmentation : public AliMUONVGeometryDESegmentation
     //
     virtual AliMUONGeometryDirection  GetDirection();
                        // Returns the direction with a constant pad size
+    // Access to mapping
+    virtual const AliMpSectorSegmentation* GetMpSegmentation() const;                 
 
     // Transform from pad (wire) to real coordinates and vice versa
     //
index ebd3de0be22e64b2e97c49c2c89991daf97e9d7b..3f5106eba1ffd874e8b81d6ae6a855ea97b9daf0 100755 (executable)
@@ -58,6 +58,8 @@ class AliMpSectorSegmentation : public AliMpVSegmentation
     TVector2 GetMinPadDimensions() const;
     Bool_t CircleTest(const AliMpIntPair& indices) const;
     void   PrintZones() const;
+   
+    const AliMpSector* GetSector() const;
 
   protected:
     AliMpSectorSegmentation(const AliMpSectorSegmentation& right);
@@ -99,5 +101,11 @@ class AliMpSectorSegmentation : public AliMpVSegmentation
   ClassDef(AliMpSectorSegmentation,1)  // Segmentation
 };
 
+
+// inline functions
+
+inline const AliMpSector* AliMpSectorSegmentation::GetSector() const
+{ return fkSector; }
+
 #endif //ALI_MP_SECTOR_SEGMENTATION_H