]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDAlignFaker.h
Compilation warning fixed
[u/mrichter/AliRoot.git] / FMD / AliFMDAlignFaker.h
index e9ffe8ea35e7971ebd43d853e345e7e8f003d93f..691f6609b0cb075933bb333327c2e1565ceff549 100644 (file)
@@ -7,10 +7,19 @@
  *
  * See cxx source for full Copyright notice                               
  */
-
+/** @file    AliFMDAlignFaker.h
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Sun Mar 26 18:26:39 2006
+    @brief   Make fake alignment 
+*/
 //____________________________________________________________________
 //
-//  Class to make fake alignration parameters 
+//  Class 
+//  to 
+//  make 
+//  fake 
+//  alignment
+//  parameters 
 //
 #ifndef ROOT_TTask
 # include <TTask.h>
@@ -22,8 +31,9 @@ class TClonesArray;
 class TString;
 
 /** @class AliFMDAlignFaker 
-    This task creates fake alignment. Which alignment, depends on the
-    bit mask passed to the constructor, or added by `AddAlign'.
+    @brief This task creates fake alignment. 
+    Which alignment, depends on the bit mask passed to the
+    constructor, or added by `AddAlign'.
 
     The default is to write all alignment parameters to a local
     storage @c local://cdb which is a directory in the current
@@ -50,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 
@@ -110,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 
@@ -139,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
@@ -152,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)
 };