]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentation.h
removing unneeded include
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentation.h
index f001a335dc1b58a12ceb07f2d04a941cec3c0a9a..80ee5d546508ea9d02c513217b6edaeff61f56e2 100644 (file)
@@ -7,7 +7,17 @@
 /// \class AliMUONSegmentation
 /// \brief Container class for modules segmentations
 ///
-/// Author: Ivana Hrivnacova, IPN Orsay
+/// It provides access to DE segmentations based on the
+/// old AliSegmentation interface:
+/// - DE segmentation (operating in local DE reference frame)
+/// - module segmentation (operating in global reference frame)
+///
+/// As some detection elements are sharing the same objects
+/// (AliMUONVGeometryDESegmentation),
+/// all segmentations objects have to be always deleted
+/// altogether via deleting this container object. 
+/// 
+/// \author Ivana Hrivnacova, IPN Orsay
 
 #ifndef ALI_MUON_SEGMENTATION_H
 #define ALI_MUON_SEGMENTATION_H
@@ -34,7 +44,10 @@ class AliMUONSegmentation : public TObject
 
     void  AddModuleSegmentation(Int_t moduleId, Int_t cathod,
                             AliMUONGeometrySegmentation* segmentation);
-    void  Init();                          
+    void  Init();
+            // This function should not be needed;
+           // the segmentations should be built in a valid state
+           // To be revised                        
 
     //
     // get methods
@@ -42,8 +55,6 @@ class AliMUONSegmentation : public TObject
     
     // Geometry segmentations
     //
-    AliMUONGeometrySegmentation* GetModuleSegmentation(
-                     Int_t moduleId, Int_t cathod, Bool_t warn = true) const;
 
     AliMUONGeometrySegmentation* GetModuleSegmentationByDEId(
                      Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
@@ -53,11 +64,7 @@ class AliMUONSegmentation : public TObject
     const AliMUONVGeometryDESegmentation* GetDESegmentation(
                      Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
 
-    // Mapping segmentations
-    //
-    const AliMpVSegmentation* GetMpSegmentation(
-                     Int_t detElemId, Int_t cathod, Bool_t warn = true) const;
-                    
+                        
     // DE properties
     //
     Bool_t   HasDE(Int_t detElemId, Int_t cathod = 0) const;
@@ -66,14 +73,16 @@ class AliMUONSegmentation : public TObject
   protected:
     AliMUONSegmentation(const AliMUONSegmentation& right);
     AliMUONSegmentation&  operator = (const AliMUONSegmentation& right);
+     
   private:
-    // data members
-    TObjArray*  fDESegmentations;        // array of DE segmentations
-    TObjArray*  fModuleSegmentations[2]; // array of module segmentations
-                                         // for two cathods         
+    AliMUONGeometrySegmentation* GetModuleSegmentation(
+                     Int_t moduleId, Int_t cathod, Bool_t warn = true) const;
 
-  ClassDef(AliMUONSegmentation,1)  // Container class for module segmentations
+    // data members
+    TObjArray*  fDESegmentations;        ///< array of DE segmentations
+    TObjArray*  fModuleSegmentations[2]; ///< \brief array of module segmentations
+                                         /// for two cathods         
+  ClassDef(AliMUONSegmentation,2)  // Container class for module segmentations
 };
 
 #endif //ALI_MUON_SEGMENTATION_H