]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDSurveyToAlignObjs.h
Disable caching for async prefetching
[u/mrichter/AliRoot.git] / FMD / AliFMDSurveyToAlignObjs.h
index 8b27bad37b4d84401b4c0b19243f50841577465e..af7f571984a394a9068313e394a543db95c90762 100644 (file)
@@ -6,7 +6,7 @@
 // Forward decl
 class TVector3;
 class TGeoMatrix;
-
+class AliAlignObjParams;
 
 /**
  * Class to take survey data and transform that to alignment objects. 
@@ -19,12 +19,15 @@ public:
    * Constructor
    * 
    */
-  AliFMDSurveyToAlignObjs() : AliSurveyToAlignObjs() {}
+  AliFMDSurveyToAlignObjs() : AliSurveyToAlignObjs(),
+                             fFMD1Delta(0),
+                             fFMD2Delta(0) {}
   /** 
    * Run the task.
    * 
    */  
   void Run();
+  void Run(const char** files);
   /** 
    * 
    * Method to create the alignment objects
@@ -163,9 +166,9 @@ protected:
    * 
    * @return Newly 
    */
-  Bool_t MakeDelta(TGeoMatrix*  global,
-                  Double_t*    rot, 
-                  Double_t*    trans,
+  Bool_t MakeDelta(const TGeoMatrix*  global,
+                  const Double_t*    rot, 
+                  const Double_t*    trans,
                   TGeoHMatrix& delta) const;
   /** 
    * Create a delta transform from a global rotation matrix and
@@ -179,9 +182,33 @@ protected:
    * @return Newly 
    */
   Bool_t MakeDelta(const char*  path, 
-                  Double_t*    rot, 
-                  Double_t*    trans,
+                  const Double_t*    rot, 
+                  const Double_t*    trans,
                   TGeoHMatrix& delta) const;
+  /** 
+   * Create a default (i.e., no rotation or translation) alignment object. 
+   * 
+   * @param path Path to volume 
+   * @param id   Id of volume
+   * 
+   * @return Created object
+   */
+  AliAlignObjParams* CreateDefaultAlignObj(const TString& path, Int_t id=0);
+  /** 
+   * Check if we have an alignment object for the given path alread 
+   * 
+   * @param path PAth to check 
+   * 
+   * @return Pointer to object if found, otherwise 0
+   */
+  AliAlignObjParams* FindAlignObj(const TString& path) const;
+  /** 
+   * Fill In default alignmen objects 
+   * 
+   * @return true on sucess
+   */
+  Bool_t FillDefaultAlignObjs();
+
   /** 
    * Service member function to print a vector
    *