Added method ClearMisAlignmentData();
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Nov 2006 09:56:09 +0000 (09:56 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Nov 2006 09:56:09 +0000 (09:56 +0000)
MUON/AliMUONGeometryTransformer.cxx
MUON/AliMUONGeometryTransformer.h

index a95e284..e7559d8 100644 (file)
@@ -957,6 +957,16 @@ TClonesArray* AliMUONGeometryTransformer::CreateZeroAlignmentData() const
 }       
 
 //_____________________________________________________________________________
+void AliMUONGeometryTransformer::ClearMisAlignmentData()
+{
+/// Clear the array of misalignment data
+
+  if ( ! fMisAlignArray ) return;
+  
+  fMisAlignArray->Delete();
+}  
+                              
+//_____________________________________________________________________________
 void AliMUONGeometryTransformer::Global2Local(Int_t detElemId,
                  Float_t xg, Float_t yg, Float_t zg, 
                  Float_t& xl, Float_t& yl, Float_t& zl) const
index 6725ca8..9896a34 100644 (file)
@@ -42,7 +42,8 @@ class AliMUONGeometryTransformer : public TObject
     void  AddMisAlignDetElement(Int_t detElemId, const TGeoHMatrix& matrix);
 
     void  AddAlignableVolumes() const; 
-    TClonesArray* CreateZeroAlignmentData() const;                            
+    TClonesArray* CreateZeroAlignmentData() const;
+    void  ClearMisAlignmentData();                            
 
     // IO
     //
@@ -136,7 +137,7 @@ class AliMUONGeometryTransformer : public TObject
     TString GetDESymName(Int_t detElemId) const;
 
     // data members
-    TString        fDetectorName;       /// < Detector name
+    TString        fDetectorName;       ///< Detector name
     TObjArray*     fModuleTransformers; ///< array of module transformers
     TClonesArray*  fMisAlignArray;      ///< array of misalignment data