more secure string operations
[u/mrichter/AliRoot.git] / TPC / AliTPCkalmanAlign.h
CommitLineData
125d3a38 1#ifndef ALITPCKALMANALIGN_H
2#define ALITPCKALMANALIGN_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7#include "TNamed.h"
8#include "TMatrixD.h"
9class TTreeSRedirector;
10class TObjArray;
11class AliTPCcalibAlign;
12class TTreeSRedirector;
4486a91f 13class TTree;
14class AliTPCCalPad;
15
125d3a38 16
17class AliTPCkalmanAlign: public TNamed{
18public:
19 AliTPCkalmanAlign();
20 AliTPCkalmanAlign(const char* name, const char* title);
21 void ReadAlign(const char *fname="CalibObjects.root");
22 void MakeGlobalAlign();
23 void DrawDeltaAlign();
24 void UpdateOCDBTime0( AliTPCCalPad *pad, Int_t ustartRun, Int_t uendRun, const char* storagePath );
25 static void UpdateAlign1D(Double_t delta, Double_t sigma, Int_t s1, Int_t s2, TMatrixD &param, TMatrixD &covar);
5647625c 26 static void UpdateAlign1D(Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar);
125d3a38 27 static void BookAlign1D(TMatrixD &param, TMatrixD &covar, Double_t sigma, Double_t mean);
28 void DumpOldAlignment(TTreeSRedirector *pcstream);
29 void MakeNewAlignment(Bool_t add,TTreeSRedirector *pcstream=0);
4486a91f 30 void DrawAlignmentTrends();
31 void FitCE();
32 static void MakeAliasCE(TTree * chain);
125d3a38 33public:
34 AliTPCcalibAlign * fCalibAlign; // kalman alignemnt
35 TClonesArray *fOriginalAlign; // original alignment objects
36 TClonesArray *fNewAlign; // new alignment objects
4486a91f 37 //
38 AliTPCCalPad *fPadTime0; // pad time0 - for z alignment
39 // // time offset parameterization
40 TObjArray *fFitCEGlobal; // vector of parameter of the CE fits
41 TObjArray *fFitCELocal; // vector of parameter delta to global
42 //
125d3a38 43 TMatrixD * fDelta1D[4]; // deltas
44 TMatrixD * fCovar1D[4]; // covariance
45private:
46 AliTPCkalmanAlign(const AliTPCkalmanAlign&);
47 AliTPCkalmanAlign &operator=(const AliTPCkalmanAlign&);
48 ClassDef(AliTPCkalmanAlign,1);
49};
50
51#endif
52