1 #ifndef ALISURVEYTOALIGNOBJS_H
2 #define ALISURVEYTOALIGNOBJS_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /////////////////////////////////////////////////////////////////////////
8 // Base class for creating the alignment objects from survey //
9 // for a given subdetector //
11 /////////////////////////////////////////////////////////////////////////
13 #include <TObjArray.h>
14 #include <TClonesArray.h>
16 #include "AliAlignObjParams.h"
17 #include "AliSurveyObj.h"
20 class AliSurveyToAlignObjs : public TObject {
23 AliSurveyToAlignObjs();
24 AliSurveyToAlignObjs(const AliSurveyToAlignObjs &align); // copy constructor
25 AliSurveyToAlignObjs &operator = (const AliSurveyToAlignObjs &align); //assignment operator
27 Bool_t LoadSurveyFromLocalFile(const char* filename);
28 Bool_t LoadSurveyFromAlienFile(const char* det, Int_t repNum, Int_t repVersion);
30 virtual Bool_t CreateAlignObjs() = 0;
31 virtual void Run() = 0;
32 Bool_t StoreAlignObjToFile(const char* filename, const char* det);
33 Bool_t StoreAlignObjToCDB(const char* cdbFolder, const char* det);
34 TClonesArray* GetAlignObjsArray() {return fAlignObjArray;}
35 virtual ~AliSurveyToAlignObjs();
38 AliSurveyObj *fSurveyObj; // survey object
39 TObjArray *fSurveyPoints; // array of survey points
40 TClonesArray *fAlignObjArray; // TClonesArray of alignment objects
41 AliAlignObjParams *fAlignObj; // alignment object
43 ClassDef(AliSurveyToAlignObjs,0);