Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4FitLinearTrans.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4FITLINEARTRANS_H
00017 #define TGO4FITLINEARTRANS_H
00018 
00019 #include "TGo4FitAxisTrans.h"
00020 
00021 #include "TGo4FitParameter.h"
00022 
00038 class TGo4FitLinearTrans : public TGo4FitAxisTrans {
00039    public:
00040       TGo4FitLinearTrans();
00041       TGo4FitLinearTrans(const char* iName, const char* iTitle, Int_t iAxis = 0);
00042       virtual ~TGo4FitLinearTrans();
00043 
00044       Int_t GetAxis() { return fiAxis; }
00045       void SetAxis(Int_t iAxis) { fiAxis = iAxis; }
00046       Double_t GetCoefK() { return GetPar(0)->GetValue(); }
00047       void SetCoefK(Double_t k) { GetPar(0)->SetValue(k); }
00048       Double_t GetCoefB() { return GetPar(1)->GetValue(); }
00049       void SetCoefB(Double_t b) { GetPar(1)->SetValue(b); }
00050 
00051       void SetCoef(Double_t iCoefK, Double_t iCoefB)
00052         { GetPar(0)->SetValue(iCoefK); GetPar(1)->SetValue(iCoefB); }
00053       void SetCoefByRange(Int_t nbins, Double_t y1, Double_t y2);
00054       void SetCoefByPoints(Double_t n1, Double_t y1, Double_t n2, Double_t y2);
00055 
00056       virtual void Transformation(Double_t* scales, Int_t naxis);
00057 
00058       virtual void Print(Option_t* option) const;
00059 
00060    protected:
00061       Int_t fiAxis;
00062       Double_t fdCoefK;
00063       Double_t fdCoefB;
00064 
00065    ClassDef(TGo4FitLinearTrans,1)
00066 };
00067 #endif // TGO4FITLINEARTRANS_H
00068 
00069 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:12 2008 for Go4-v3.04-1 by  doxygen 1.4.2