coverity fix
[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"
46e89793 9#include "TString.h"
125d3a38 10class TTreeSRedirector;
11class TObjArray;
12class AliTPCcalibAlign;
13class TTreeSRedirector;
4486a91f 14class TTree;
15class AliTPCCalPad;
16
125d3a38 17
18class AliTPCkalmanAlign: public TNamed{
19public:
20 AliTPCkalmanAlign();
21 AliTPCkalmanAlign(const char* name, const char* title);
22 void ReadAlign(const char *fname="CalibObjects.root");
23 void MakeGlobalAlign();
24 void DrawDeltaAlign();
25 void UpdateOCDBTime0( AliTPCCalPad *pad, Int_t ustartRun, Int_t uendRun, const char* storagePath );
26 static void UpdateAlign1D(Double_t delta, Double_t sigma, Int_t s1, Int_t s2, TMatrixD &param, TMatrixD &covar);
5647625c 27 static void UpdateAlign1D(Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar);
46e89793 28 //
29 static void Update1D(Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar);
30 static void Update1D(TString &input, TString filter, TVectorD &param, TMatrixD & covar, Double_t mean, Double_t sigma);
31 static TString FilterFit(TString &input, TString filter, TVectorD &param, TMatrixD & covar);
32 //
125d3a38 33 static void BookAlign1D(TMatrixD &param, TMatrixD &covar, Double_t sigma, Double_t mean);
34 void DumpOldAlignment(TTreeSRedirector *pcstream);
35 void MakeNewAlignment(Bool_t add,TTreeSRedirector *pcstream=0);
4486a91f 36 void DrawAlignmentTrends();
37 void FitCE();
38 static void MakeAliasCE(TTree * chain);
125d3a38 39public:
40 AliTPCcalibAlign * fCalibAlign; // kalman alignemnt
41 TClonesArray *fOriginalAlign; // original alignment objects
42 TClonesArray *fNewAlign; // new alignment objects
4486a91f 43 //
44 AliTPCCalPad *fPadTime0; // pad time0 - for z alignment
45 // // time offset parameterization
46 TObjArray *fFitCEGlobal; // vector of parameter of the CE fits
47 TObjArray *fFitCELocal; // vector of parameter delta to global
48 //
125d3a38 49 TMatrixD * fDelta1D[4]; // deltas
50 TMatrixD * fCovar1D[4]; // covariance
51private:
52 AliTPCkalmanAlign(const AliTPCkalmanAlign&);
53 AliTPCkalmanAlign &operator=(const AliTPCkalmanAlign&);
54 ClassDef(AliTPCkalmanAlign,1);
55};
56
57#endif
58