]>
Commit | Line | Data |
---|---|---|
0af6f9be | 1 | #ifndef ALIITSSURVEYTOALIGNSSD_H |
2 | #define ALIITSSURVEYTOALIGNSSD_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | ///////////////////////////////////////////////////////////////////////// | |
10 | // This class creates the alignment object from the survey data // | |
11 | // for the SSD layers. // | |
12 | // // | |
13 | // Author: Panos.Christakoglou@cern.ch - NIKHEF/UU // | |
14 | ///////////////////////////////////////////////////////////////////////// | |
eda96f1f | 15 | #include <TSystem.h> |
0af6f9be | 16 | #include <TObjArray.h> |
17 | #include <TClonesArray.h> | |
18 | ||
19 | #include "AliAlignObjParams.h" | |
20 | ||
21 | ||
22 | class AliITSSurveyToAlignSSD : public TObject { | |
23 | ||
24 | public: | |
25 | AliITSSurveyToAlignSSD(); | |
eda96f1f | 26 | AliITSSurveyToAlignSSD(Int_t reportId, Int_t runNumber); |
0af6f9be | 27 | AliITSSurveyToAlignSSD(const AliITSSurveyToAlignSSD &align); // copy constructor |
28 | AliITSSurveyToAlignSSD &operator = (const AliITSSurveyToAlignSSD &align); //assignment operator | |
eda96f1f | 29 | |
30 | void SetRun(Int_t runNumber) {fRun = runNumber;} | |
31 | void SetReportId(Int_t reportId) { | |
32 | fFileLocal = new Char_t[80]; | |
33 | Char_t path[50]; | |
34 | sprintf(path,gSystem->Getenv("ALICE_ROOT")); | |
35 | sprintf(fFileLocal,"%s/ITS/Survey_SSD_%d.txt",path,reportId); | |
36 | } | |
0af6f9be | 37 | Bool_t LoadSurveyData(); |
38 | void CreateAlignObj(); | |
39 | void Run(); | |
40 | void SetDebug(Int_t debug){fDebug=debug;} | |
41 | void StoreAlignObj(); | |
42 | virtual ~AliITSSurveyToAlignSSD(); | |
43 | // | |
44 | private: | |
eda96f1f | 45 | Int_t fRun; // run number |
46 | Char_t *fFileLocal; // local file with surveyed points | |
47 | Char_t *fFileGrid; // GRID file with surveyed points | |
0af6f9be | 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 | |
52 | ||
53 | ||
54 | ClassDef(AliITSSurveyToAlignSSD,0); | |
55 | }; | |
56 | #endif |