KaliVeda
Toolkit for HIC analysis
KVAutoFit.h
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 
26 class KVAutoFit : public KVBase {
27 
28 protected:
30 
33 
38 
42 
44 
47  /*
48  TString spath,sdir,sfile;
49  TString output_file;
50  */
53 
54  virtual void init();
55  void ClearRange(void);
56 
58  virtual Bool_t NewFunction_1D();
59  virtual Bool_t NewFunction_2D();
60 
61  TF1* ReloadFunction(const Char_t*, Int_t);
62  virtual TF1* ReloadFunction_1D(const Char_t*, Int_t);
63  virtual TF1* ReloadFunction_2D(const Char_t*, Int_t);
64 
65 
66  virtual Double_t f2D(Double_t* xx, Double_t* para);
67  virtual Double_t f1D(Double_t* xx, Double_t* para);
68 
69  void NextHisto();
70  Bool_t IsKnown(const Char_t*);
71 
72 
73 public:
75 
76  KVAutoFit();
77  KVAutoFit(Bool_t batch);
78  KVAutoFit(const KVAutoFit&) ;
79  ROOT_COPY_ASSIGN_OP(KVAutoFit)
80  virtual ~KVAutoFit();
81  void Copy(TObject&) const;
82 
83  void Clear(Option_t* opt = "");
84  void Print(Option_t* opt = "") const;
85  KVHashList* GetFunctions() const;
86 
87  virtual void SetHistos(KVHashList* lh, TString option = "");
88  virtual void SetHisto(TH1* hh);
89  void GetInterval();
90  void Recommence();
91  virtual void Gather();
92 
93  virtual void Save();
94  virtual void Relecture(const Char_t* name);
95  virtual void ExtraDrawing() {}
96  virtual void HandleKey(Int_t) {}
97 
98  ClassDef(KVAutoFit, 1) //Manage SemiAutomatic Fits
99 };
100 
101 #endif
int Int_t
bool Bool_t
char Char_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Manage SemiAutomatic Fits.
Definition: KVAutoFit.h:26
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:29
Bool_t XminSet
Definition: KVAutoFit.h:39
Bool_t is2D
histogramme analyse herite de TH1 ou TH2
Definition: KVAutoFit.h:74
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:39
Bool_t userdefined
Definition: KVAutoFit.h:51
Double_t Xmax
Borne en X du fit.
Definition: KVAutoFit.h:40
virtual void Gather()
Definition: KVAutoFit.cpp:564
TF2 * f2Dfit
fonction de fit deux dimensions
Definition: KVAutoFit.h:32
Double_t Xmin
Definition: KVAutoFit.h:40
TF1 * ReloadFunction(const Char_t *, Int_t)
Definition: KVAutoFit.cpp:338
TString koption
Definition: KVAutoFit.h:52
void NextHisto()
Definition: KVAutoFit.cpp:235
virtual void SetHistos(KVHashList *lh, TString option="")
Definition: KVAutoFit.cpp:204
virtual void ExtraDrawing()
Definition: KVAutoFit.h:95
Double_t Ymax
Borne en Y du fit.
Definition: KVAutoFit.h:41
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:34
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:43
Int_t nhisto
nombre d'histo traites
Definition: KVAutoFit.h:46
TCanvas * c1
Canvas ou est trace l histo a analyse.
Definition: KVAutoFit.h:36
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:96
TH1 * hclone
clone de histogramme analyse
Definition: KVAutoFit.h:35
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:37
KVHashList * lhisto
liste des histos initialise via SetHistos method
Definition: KVAutoFit.h:45
TF1 * f1Dfit
fonction de fit une dimension
Definition: KVAutoFit.h:31
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:41
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:142
Extended version of ROOT THashList.
Definition: KVHashList.h:29