*
* 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>
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
@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
/** 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
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
Int_t fRunMin; // Run validity start
Int_t fRunMax; // Run validity end
TClonesArray* fArray; // Cache
+ TString fComment; // Comment on data
ClassDef(AliFMDAlignFaker,0)
};