Moving the TPC calibration using tracks from separate directory to the TPC directory
[u/mrichter/AliRoot.git] / TPC / AliTPCFitPad.h
CommitLineData
10757ee9 1#ifndef ALITPCFITPAD_H
2#define ALITPCFITPAD_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 <iostream>
8#include "AliTPCCalPadRegion.h"
9#include <TLinearFitter.h>
10#include <TIterator.h>
11
12using namespace std;
13
14class TString;
15
16class AliTPCFitPad: public AliTPCCalPadRegion {
17public:
18 AliTPCFitPad() : AliTPCCalPadRegion() { }
19 AliTPCFitPad(const AliTPCFitPad& obj) : AliTPCCalPadRegion(obj), fNdim(obj.fNdim), fFormula(obj.fFormula), fOpt(obj.fOpt) { }
20 AliTPCFitPad(Int_t ndim, const char* formula, Option_t* opt = "D");
21 AliTPCFitPad& operator=(const AliTPCFitPad& rhs);
22 //AliTPCFitPad(const char *name, const char *title) : AliTPCCalPadRegion(name, title) { }
23 //AliTPCFitPad(const TString &name, const TString &title) : AliTPCCalPadRegion(name, title) { }
24 virtual ~AliTPCFitPad();
25
26 void Add(AliTPCFitPad* fit);
27 TLinearFitter* GetFitter(UInt_t segment, UInt_t padType, Bool_t workaround = kFALSE);
28 TLinearFitter* GetFitterSimple(UInt_t segment, UInt_t padType);
29 Int_t Evaluate(Bool_t robust = kFALSE, Double_t frac = -1.);
30
31protected:
32 Int_t fNdim; // used for generating new TLinearFitter objects
33 TString fFormula; // used for generating new TLinearFitter objects
34 TString fOpt; // used for generating new TLinearFitter objects
35
36 ClassDef(AliTPCFitPad, 1)
37};
38
39
40#endif