base class for conversion of formatted survey files into array of alignment objects
[u/mrichter/AliRoot.git] / STEER / AliSurveyToAlignObjs.h
CommitLineData
00627e37 1#ifndef ALISURVEYTOALIGNOBJS_H
2#define ALISURVEYTOALIGNOBJS_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/////////////////////////////////////////////////////////////////////////
8// Base class for creating the alignment objects from survey //
9// for a given subdetector //
10// //
11/////////////////////////////////////////////////////////////////////////
12#include <TSystem.h>
13#include <TObjArray.h>
14#include <TClonesArray.h>
15
16#include "AliAlignObjParams.h"
17#include "AliSurveyObj.h"
18
19
20class AliSurveyToAlignObjs : public TObject {
21
22 public:
23 AliSurveyToAlignObjs();
24 AliSurveyToAlignObjs(const char* det, Int_t repNum, Int_t repVer);
25 AliSurveyToAlignObjs(const AliSurveyToAlignObjs &align); // copy constructor
26 AliSurveyToAlignObjs &operator = (const AliSurveyToAlignObjs &align); //assignment operator
27
28 Bool_t LoadSurveyFromLocalFile(const char* filename);
29 Bool_t LoadSurveyFromAlienFile(const char* det, Int_t repNum, Int_t repVersion);
30
31 virtual void CreateAlignObjs() = 0;
32 virtual void Run() = 0;
33 void StoreAlignObjToFile(const char* filename, const char* det);
34 void StoreAlignObjToCDB(const char* cdbFolder, const char* det);
35 virtual ~AliSurveyToAlignObjs();
36 //
37 protected:
38 AliSurveyObj *fSurveyObj; // survey object
39 TObjArray *fSurveyPoints; // array of survey points
40 TClonesArray *fAlignObjArray; // TClonesArray of alignment objects
41 AliAlignObjParams *fAlignObj; // alignment object
42
43 ClassDef(AliSurveyToAlignObjs,0);
44};
45#endif