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 a95e284ea80bc79a982e67de34d44df75c9fb802..e7559d849bee3fa47902ef9dba0767d88ef6e87e 100644 (file)
@@ -956,6 +956,16 @@ TClonesArray* AliMUONGeometryTransformer::CreateZeroAlignmentData() const
   return array;
 }       
 
+//_____________________________________________________________________________
+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, 
index 6725ca85562704296ed6253b542a4ce0d13cb745..9896a341c75e06ecdddf7076b475fd90144c785d 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