]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryMisAligner.h
A few fixes
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryMisAligner.h
index 40943800540f39bdebe1b707e2314e1d93841d97..3a81849c2abaeb3337fef9565d905c0f512593b1 100644 (file)
@@ -17,8 +17,8 @@
 
 class AliMUONGeometryTransformer;
 
-class TRandom;
 class TGeoCombiTrans;
+class TClonesArray;
 
 class AliMUONGeometryMisAligner:public TObject
 {
@@ -75,6 +75,9 @@ class AliMUONGeometryMisAligner:public TObject
   /// Set module (half chambers) cartesian displacement parameters
   void SetModuleAngMisAlig(Double_t xmean, Double_t xwidth, Double_t ymean, Double_t ywidth, Double_t zmean, Double_t zwidth) 
     {fModuleMisAlig[3][0] = xmean; fModuleMisAlig[3][1] = xwidth; fModuleMisAlig[4][0] = ymean; fModuleMisAlig[4][1] = ywidth; fModuleMisAlig[5][0] = zmean; fModuleMisAlig[5][1] = zwidth;}
+
+  /// Set alignment resolution to misalign objects to be stored in CDB
+  void SetAlignmentResolution(const TClonesArray* misAlignArray, Int_t chId=-1, Double_t chResX=-1., Double_t chResY=-1., Double_t deResX=-1., Double_t deResY=-1.);
   
  protected:
   /// Not implemented
@@ -97,9 +100,9 @@ class AliMUONGeometryMisAligner:public TObject
 
   Double_t fXYAngMisAligFactor;  ///< factor (<1) to apply to angular misalignment range since range of motion is restricted out of the xy plane
   Double_t fZCartMisAligFactor; ///< factor (<1) to apply to cartetian misalignment range since range of motion is restricted in z direction
-  TRandom *fDisplacementGenerator;  ///< random number generator for the displacements
+
   
-  ClassDef(AliMUONGeometryMisAligner,3)        // Geometry parametrisation
+  ClassDef(AliMUONGeometryMisAligner,4)        // Geometry parametrisation
 };
 
 #endif //ALI_MUON_GEOMETRY_MIS_ALIGNER_H