1 #ifndef ALIITSSURVEYTOALIGNSSD_H
2 #define ALIITSSURVEYTOALIGNSSD_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 /////////////////////////////////////////////////////////////////////////
10 // This class creates the alignment object from the survey data //
11 // for the SSD layers. //
13 // Author: Panos.Christakoglou@cern.ch - NIKHEF/UU //
14 /////////////////////////////////////////////////////////////////////////
16 #include <TObjArray.h>
17 #include <TClonesArray.h>
19 #include "AliAlignObjParams.h"
22 class AliITSSurveyToAlignSSD : public TObject {
25 AliITSSurveyToAlignSSD();
26 AliITSSurveyToAlignSSD(Int_t reportId, Int_t runNumber);
27 AliITSSurveyToAlignSSD(const AliITSSurveyToAlignSSD &align); // copy constructor
28 AliITSSurveyToAlignSSD &operator = (const AliITSSurveyToAlignSSD &align); //assignment operator
30 void SetRun(Int_t runNumber) {fRun = runNumber;}
31 void SetReportId(Int_t reportId) {
32 fFileLocal = new Char_t[80];
34 sprintf(path,gSystem->Getenv("ALICE_ROOT"));
35 sprintf(fFileLocal,"%s/ITS/Survey_SSD_%d.txt",path,reportId);
37 Bool_t LoadSurveyData();
38 void CreateAlignObj();
40 void SetDebug(Int_t debug){fDebug=debug;}
42 virtual ~AliITSSurveyToAlignSSD();
45 Int_t fRun; // run number
46 Char_t *fFileLocal; // local file with surveyed points
47 Char_t *fFileGrid; // GRID file with surveyed points
48 TObjArray *fSurveyPoints; // array of survey points
49 TClonesArray *fSSDAlignObj; // TClonesArray of AliAlignObj
50 AliAlignObjParams *fSSDAlignObjParam; // SSD alignment object param
51 Int_t fDebug; // debug flag
54 ClassDef(AliITSSurveyToAlignSSD,0);