Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Example2Step/TXXXCalibPar.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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 CALIBPAR_H
00017 #define CALIBPAR_H
00018 
00019 #define __LINESNUMBER__ 20
00020 #define __TEXTMAX__ 256
00021 #define __POLORDER__ 4
00022 #define __DATANAME__ "data1"
00023 #define __GRAPHNAME__ "graph1"
00024 
00025 class TGraph;
00026 class TH1;
00027 
00028 #include "Go4StatusBase/TGo4Parameter.h"
00029 #include "Go4Fit/TGo4Fitter.h"
00030 
00031 class TXXXCalibPar : public TGo4Parameter {
00032 
00033 public:
00034            TXXXCalibPar();
00035            TXXXCalibPar(Text_t * name, TH1* spectrum, TGraph* curve);
00036   virtual ~TXXXCalibPar();
00037   Int_t PrintParameter(Text_t * n, Int_t);
00038   Bool_t UpdateFrom(TGo4Parameter *);
00039 
00040  /* Read calibration lines from database (ascii file)  */
00041   void ReadDatabase();
00042 
00043 
00044   /* calculate energy from channel number using the current polynom  */
00045   Double_t Energy(Int_t channel);
00046 
00048   Double_t fdA[__POLORDER__];
00050   Bool_t fbRecalibrate;
00052   Bool_t fbReadDatabase;
00054   TString fxDatabase;
00056   Int_t fiLinesChannel[__LINESNUMBER__];
00058   Float_t ffLinesEnergy[__LINESNUMBER__];
00060   TString fxLinesNames[__LINESNUMBER__];
00061 
00063   TGo4Fitter* fxLinesFinder;
00064 
00066   TGo4Fitter* fxCalibrator;
00067 
00069   TGraph* fxCalibCurve; 
00070 
00071   TString fxGraphName;
00072 
00074   TH1* fxCalibSpectrum; 
00075 
00077   TString fxSpectrumName;
00078 
00079 ClassDef(TXXXCalibPar,1)
00080 };
00081 
00082 #endif //CALIBPAR_H
00083 
00084 
00085 
00086 
00087 
00088 
00089 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:54 2005 for Go4-v2.10-5 by doxygen1.2.15