]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDAlignFaker.h
MakeImage is now a method of AliCheckerBase, was AliQADataMaker before. This will...
[u/mrichter/AliRoot.git] / FMD / AliFMDAlignFaker.h
index e819704270188db838fa4ff53f2d9243fa5f4301..691f6609b0cb075933bb333327c2e1565ceff549 100644 (file)
 */
 //____________________________________________________________________
 //
-//  Class to make fake alignration parameters 
+//  Class 
+//  to 
+//  make 
+//  fake 
+//  alignment
+//  parameters 
 //
 #ifndef ROOT_TTask
 # include <TTask.h>
@@ -55,7 +60,7 @@ public:
       @param loc  Where to store the result */
   AliFMDAlignFaker(Int_t mask=kAll, 
                   const char* geo="geometry.root",
-                  const char* loc="local://cdb");
+                  const char* loc="");
   /** Destructor */
   virtual ~AliFMDAlignFaker() {}
   /** Add something to make alignment for 
@@ -115,10 +120,33 @@ public:
   /** Set the file to read the geometry from. 
       @param file File name */
   void SetGeometryFile(const char* file) { SetName(file); }
+  /** Set the comment  */ 
+  void SetComment(const Char_t* comment="dummy data") { fComment = comment; }
   /** Make the alignment objects. 
       @param option Not used. */
   void Exec(Option_t* option="");
+  /** Get the geometry */
+  static Bool_t GetGeometry(Bool_t toCdb=kFALSE, 
+                           const TString& storage=TString());
 protected:
+  AliFMDAlignFaker(const AliFMDAlignFaker& o) 
+    : TTask(o), 
+      fMask(0), 
+      fSensorTransMin(0,0,0),
+      fSensorTransMax(0,0,0),
+      fSensorRotMin(0,0,0),
+      fSensorRotMax(0,0,0),
+      fHalfTransMin(0,0,0),
+      fHalfTransMax(0,0,0),
+      fHalfRotMin(0,0,0),
+      fHalfRotMax(0,0,0),
+      fRunMin(0), 
+      fRunMax(0),
+      fArray(0),
+      fComment("")
+{}
+  AliFMDAlignFaker& operator=(const AliFMDAlignFaker&) { return *this; }
+  
   /** Make the alignment object for a path
       @param path   Node path.
       @param volID  Volume identifier 
@@ -144,7 +172,6 @@ protected:
   void   WriteToCDB();
   /** Write to file */
   void   WriteToFile();
-  
   Long_t        fMask;            // What to write 
   TVector3      fSensorTransMin;  // Minimum translations of a sensor
   TVector3      fSensorTransMax;  // Maximum translations of a sensor
@@ -157,6 +184,7 @@ protected:
   Int_t         fRunMin;          // Run validity start 
   Int_t         fRunMax;          // Run validity end
   TClonesArray* fArray;           // Cache
+  TString       fComment;         // Comment on data
   
   ClassDef(AliFMDAlignFaker,0)
 };