AliRoot Core  3dc7879 (3dc7879)
AliFMDSurveyToAlignObjs.h
Go to the documentation of this file.
1 #ifndef ALIFMDSURVEYTOALIGNOBJS_H
2 #define ALIFMDSURVEYTOALIGNOBJS_H
3 #include <AliSurveyToAlignObjs.h>
4 #include <TGeoMatrix.h>
5 
6 // Forward decl
7 class TVector3;
8 class TGeoMatrix;
10 
16 {
17 public:
23  fFMD1Delta(0),
24  fFMD2Delta(0) {}
29  void Run();
30  void Run(const char** files);
37  Bool_t CreateAlignObjs();
38 
39 
40  TClonesArray* GetAlignObjArray() const { return fAlignObjArray; }
41 
42 protected:
60  Bool_t DoFMD1();
69  Bool_t GetFMD1Plane(Double_t* rot, Double_t* trans) const;
92  Bool_t DoFMD2();
103  Bool_t GetFMD2Plane(Double_t* rot, Double_t* trans) const;
110  Double_t GetUnitFactor() const;
120  Bool_t GetPoint(const char* name, TVector3& p, TVector3& e) const;
132  Bool_t CalculatePlane(const TVector3& a,
133  const TVector3& b,
134  const TVector3& c,
135  Double_t depth,
136  Double_t* trans,
137  Double_t* rot) const;
153  Bool_t FitPlane(const TObjArray& points,
154  const TObjArray& errors,
155  Double_t depth,
156  Double_t* trans,
157  Double_t* rot) const;
169  Bool_t MakeDelta(const TGeoMatrix* global,
170  const Double_t* rot,
171  const Double_t* trans,
172  TGeoHMatrix& delta) const;
184  Bool_t MakeDelta(const char* path,
185  const Double_t* rot,
186  const Double_t* trans,
187  TGeoHMatrix& delta) const;
196  AliAlignObjParams* CreateDefaultAlignObj(const TString& path, Int_t id=0);
204  AliAlignObjParams* FindAlignObj(const TString& path) const;
210  Bool_t FillDefaultAlignObjs();
211 
218  static void PrintVector(const char* text, const Double_t* v);
225  static void PrintVector(const char* text, const TVector3& v);
232  static void PrintRotation(const char* text, const Double_t* rot);
233 
234  TGeoHMatrix fFMD1Delta; // FMD1 delta transform
235  TGeoHMatrix fFMD2Delta; // FMD2 delta transform
236 
237  ClassDef(AliFMDSurveyToAlignObjs,0) // Convert FMD survey to alignments
238 };
239 
240 
241 #endif
242 //____________________________________________________________________
243 //
244 // Local Variables:
245 // mode: C++
246 // End:
247 //
248 
TBrowser b
Definition: RunAnaESD.C:12
Bool_t MakeDelta(const TGeoMatrix *global, const Double_t *rot, const Double_t *trans, TGeoHMatrix &delta) const
AliAlignObjParams * CreateDefaultAlignObj(const TString &path, Int_t id=0)
#define TObjArray
const char * path
Float_t p[]
Definition: kNNTest.C:133
AliAlignObjParams * FindAlignObj(const TString &path) const
bool trans(const AliFMDIndex &x, const AliFMDIndex &y, const AliFMDIndex &z)
Definition: TestIndex.C:94
Bool_t GetFMD1Plane(Double_t *rot, Double_t *trans) const
static void PrintRotation(const char *text, const Double_t *rot)
Bool_t GetFMD2Plane(Double_t *rot, Double_t *trans) const
TVectorD errors
Definition: driftITSTPC.C:97
Bool_t GetPoint(const char *name, TVector3 &p, TVector3 &e) const
Bool_t FitPlane(const TObjArray &points, const TObjArray &errors, Double_t depth, Double_t *trans, Double_t *rot) const
TClonesArray * fAlignObjArray
static void PrintVector(const char *text, const Double_t *v)
Bool_t CalculatePlane(const TVector3 &a, const TVector3 &b, const TVector3 &c, Double_t depth, Double_t *trans, Double_t *rot) const
TClonesArray * GetAlignObjArray() const