ROOT logo
#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
 AliT0Align.h:1
 AliT0Align.h:2
 AliT0Align.h:3
 AliT0Align.h:4
 AliT0Align.h:5
 AliT0Align.h:6
 AliT0Align.h:7
 AliT0Align.h:8
 AliT0Align.h:9
 AliT0Align.h:10
 AliT0Align.h:11
 AliT0Align.h:12
 AliT0Align.h:13
 AliT0Align.h:14
 AliT0Align.h:15
 AliT0Align.h:16
 AliT0Align.h:17
 AliT0Align.h:18
 AliT0Align.h:19
 AliT0Align.h:20
 AliT0Align.h:21
 AliT0Align.h:22
 AliT0Align.h:23
 AliT0Align.h:24
 AliT0Align.h:25
 AliT0Align.h:26
 AliT0Align.h:27
 AliT0Align.h:28
 AliT0Align.h:29
 AliT0Align.h:30
 AliT0Align.h:31
 AliT0Align.h:32
 AliT0Align.h:33
 AliT0Align.h:34
 AliT0Align.h:35
 AliT0Align.h:36
 AliT0Align.h:37
 AliT0Align.h:38
 AliT0Align.h:39
 AliT0Align.h:40
 AliT0Align.h:41
 AliT0Align.h:42
 AliT0Align.h:43
 AliT0Align.h:44
 AliT0Align.h:45
 AliT0Align.h:46
 AliT0Align.h:47
 AliT0Align.h:48
 AliT0Align.h:49
 AliT0Align.h:50
 AliT0Align.h:51
 AliT0Align.h:52
 AliT0Align.h:53
 AliT0Align.h:54
 AliT0Align.h:55
 AliT0Align.h:56
 AliT0Align.h:57