KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVAutoFit.h
Go to the documentation of this file.
1 
4 #ifndef __KVAUTOFIT_H
5 #define __KVAUTOFIT_H
6 
7 #include "KVBase.h"
8 
9 #include "TObject.h"
10 #include "TH1F.h"
11 #include "TF1.h"
12 #include "TF2.h"
13 #include "KVHashList.h"
14 #include "TCanvas.h"
15 #include "TString.h"
16 #include "KVList.h"
17 #include "TPaveLabel.h"
18 
25 class KVAutoFit : public KVBase {
26 
27 protected:
29 
32 
37 
41 
43 
46  /*
47  TString spath,sdir,sfile;
48  TString output_file;
49  */
52 
53  virtual void init();
54  void ClearRange(void);
55 
57  virtual Bool_t NewFunction_1D();
58  virtual Bool_t NewFunction_2D();
59 
60  TF1* ReloadFunction(const Char_t*, Int_t);
61  virtual TF1* ReloadFunction_1D(const Char_t*, Int_t);
62  virtual TF1* ReloadFunction_2D(const Char_t*, Int_t);
63 
64 
65  virtual Double_t f2D(Double_t* xx, Double_t* para);
66  virtual Double_t f1D(Double_t* xx, Double_t* para);
67 
68  void NextHisto();
69  Bool_t IsKnown(const Char_t*);
70 
71 
72 public:
74 
75  KVAutoFit();
76  KVAutoFit(Bool_t batch);
77  KVAutoFit(const KVAutoFit&) ;
78  ROOT_COPY_ASSIGN_OP(KVAutoFit)
79  virtual ~KVAutoFit();
80  void Copy(TObject&) const;
81 
82  void Clear(Option_t* opt = "");
83  void Print(Option_t* opt = "") const;
84  KVHashList* GetFunctions() const;
85 
86  virtual void SetHistos(KVHashList* lh, TString option = "");
87  virtual void SetHisto(TH1* hh);
88  void GetInterval();
89  void Recommence();
90  virtual void Gather();
91 
92  virtual void Save();
93  virtual void Relecture(const Char_t* name);
94  virtual void ExtraDrawing() {}
95  virtual void HandleKey(Int_t) {}
96 
97  ClassDef(KVAutoFit, 1) //Manage SemiAutomatic Fits
98 };
99 
100 #endif
int Int_t
char Char_t
bool Bool_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Manage SemiAutomatic Fits.
Definition: KVAutoFit.h:25
virtual Double_t f1D(Double_t *xx, Double_t *para)
userdefined = kTRUE;
Definition: KVAutoFit.cpp:387
KVHashList * lfunc
liste des fonctions de fit
Definition: KVAutoFit.h:28
Bool_t XminSet
Definition: KVAutoFit.h:38
Bool_t is2D
histogramme analyse herite de TH1 ou TH2
Definition: KVAutoFit.h:73
virtual void SetHisto(TH1 *hh)
Definition: KVAutoFit.cpp:399
virtual Double_t f2D(Double_t *xx, Double_t *para)
userdefined = kTRUE;
Definition: KVAutoFit.cpp:375
Bool_t XmaxSet
Indique que l intervalle du fit est defini.
Definition: KVAutoFit.h:38
Bool_t userdefined
Definition: KVAutoFit.h:50
Double_t Xmax
Borne en X du fit.
Definition: KVAutoFit.h:39
virtual void Gather()
Definition: KVAutoFit.cpp:564
TF2 * f2Dfit
fonction de fit deux dimensions
Definition: KVAutoFit.h:31
Double_t Xmin
Definition: KVAutoFit.h:39
TF1 * ReloadFunction(const Char_t *, Int_t)
Definition: KVAutoFit.cpp:338
TString koption
Definition: KVAutoFit.h:51
void NextHisto()
Definition: KVAutoFit.cpp:235
virtual void SetHistos(KVHashList *lh, TString option="")
Definition: KVAutoFit.cpp:204
virtual void ExtraDrawing()
Definition: KVAutoFit.h:94
Double_t Ymax
Borne en Y du fit.
Definition: KVAutoFit.h:40
virtual void Save()
Definition: KVAutoFit.cpp:585
virtual ~KVAutoFit()
Destructor.
Definition: KVAutoFit.cpp:181
virtual TF1 * ReloadFunction_1D(const Char_t *, Int_t)
Definition: KVAutoFit.cpp:353
TH1 * hfit
histogramme analyse
Definition: KVAutoFit.h:33
Bool_t NewFunction()
Definition: KVAutoFit.cpp:300
void Clear(Option_t *opt="")
Definition: KVAutoFit.cpp:151
void Copy(TObject &) const
Definition: KVAutoFit.cpp:132
KVHashList * GetFunctions() const
Definition: KVAutoFit.cpp:287
void Print(Option_t *opt="") const
Definition: KVAutoFit.cpp:273
KVHashList * lplabel
contient la liste des TPaveLabel constituant le menu contextuel
Definition: KVAutoFit.h:42
Int_t nhisto
nombre d'histo traites
Definition: KVAutoFit.h:45
TCanvas * c1
Canvas ou est trace l histo a analyse.
Definition: KVAutoFit.h:35
virtual Bool_t NewFunction_2D()
Definition: KVAutoFit.cpp:325
virtual void init()
Definition: KVAutoFit.cpp:59
virtual void Relecture(const Char_t *name)
Definition: KVAutoFit.cpp:630
virtual void HandleKey(Int_t)
Definition: KVAutoFit.h:95
TH1 * hclone
clone de histogramme analyse
Definition: KVAutoFit.h:34
virtual Bool_t NewFunction_1D()
Definition: KVAutoFit.cpp:315
Bool_t IsKnown(const Char_t *)
Definition: KVAutoFit.cpp:759
void Recommence()
Definition: KVAutoFit.cpp:528
Bool_t fBatch
set if graphical objects are used or not
Definition: KVAutoFit.h:36
KVHashList * lhisto
liste des histos initialise via SetHistos method
Definition: KVAutoFit.h:44
TF1 * f1Dfit
fonction de fit une dimension
Definition: KVAutoFit.h:30
virtual TF1 * ReloadFunction_2D(const Char_t *, Int_t)
Definition: KVAutoFit.cpp:363
void GetInterval()
Definition: KVAutoFit.cpp:446
Double_t Ymin
Definition: KVAutoFit.h:40
void ClearRange(void)
Efface les bornes min et max pour le prochain fit.
Definition: KVAutoFit.cpp:165
Base class for KaliVeda framework.
Definition: KVBase.h:141
Extended version of ROOT THashList.
Definition: KVHashList.h:28