]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/T0base/AliT0Align.h
T0 module
[u/mrichter/AliRoot.git] / T0 / T0base / AliT0Align.h
diff --git a/T0/T0base/AliT0Align.h b/T0/T0base/AliT0Align.h
new file mode 100644 (file)
index 0000000..b66a8c6
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef ALIT0ALIGN_H
+#define ALIT0ALIGN_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+/////////////////////////////////////////////////////////////////////////
+//     This class creates the alignment object from the surveyer data  //      
+//     for the T0                                                     //
+/////////////////////////////////////////////////////////////////////////
+#include "AliAlignObjParams.h"
+#include <TMatrixDfwd.h>
+#include <TMatrixT.h>
+
+// Class creating the T0 aligmnent objects
+// from the surveys done by surveyers at Point2.
+// Position of T0 alignment objects is computed.
+
+class AliT0Align : public TObject {
+
+ public:
+  AliT0Align();
+  AliT0Align(Int_t reportloc, Int_t side, Int_t reportglob); 
+  // reportloc - location of the report: 0 - DCDB (Grid), 1,2 ... - file on local disc
+  // side - side in ALICE: 0 - A-side or 1 - C-side
+  // reportglob - EDMS number of the survey report
+  AliT0Align(const AliT0Align &align); // copy constructor
+  AliT0Align &operator = (const AliT0Align &align); //assignment operator
+  virtual   ~AliT0Align();
+  // void SetDebug(Int_t debug){debug=fDebug;}
+  Bool_t LoadSurveyData();
+  Double_t ComputePosition();
+  void CreateAlignObj();
+  void Run();
+  void StoreAlignObj();
+  //
+ private:
+
+  Char_t *fFileGlob;                  // file with surveyed points
+  AliAlignObjParams *fT0AAlignObj;  // T0-A alignment object
+  AliAlignObjParams *fT0CAlignObj;  // T0-C alignment object
+  Int_t fDebug;                     // debug flag
+  Float_t fXPosC;                  // "x" coordinate of T0-C with respect to Global Reference System  
+  Float_t fYPosC;                  // "y" coordinate of T0-C with respect to Global Reference System
+  Float_t fXPosA;                    // "x" coordinate of T0-A with respect to Global Reference System
+  Float_t fYPosA;                    // "y" coordinate of T0-A with respect to Global Reference System
+
+  Int_t fRepLoc;                   // Location of the report: 0 - DCDB (Grid), 1,2 ... - file on local disc    
+  Int_t fRepGlob;                  // Number of the survey report      
+  Int_t fSide;                     // Side in ALICE: 0: A-side or 1: C-side    
+  Char_t *fUser;                    // AliEn user
+
+  ClassDef(AliT0Align,0);
+};
+#endif