KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVAutoFit.h
1
3
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
26class KVAutoFit : public KVBase {
27
28protected:
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
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
73public:
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;
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)
virtual Double_t f2D(Double_t *xx, Double_t *para)
userdefined = kTRUE;
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()
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)
TString koption
Definition KVAutoFit.h:52
void NextHisto()
virtual void SetHistos(KVHashList *lh, TString option="")
virtual void ExtraDrawing()
Definition KVAutoFit.h:95
Double_t Ymax
Borne en Y du fit.
Definition KVAutoFit.h:41
virtual void Save()
virtual ~KVAutoFit()
Destructor.
virtual TF1 * ReloadFunction_1D(const Char_t *, Int_t)
TH1 * hfit
histogramme analyse
Definition KVAutoFit.h:34
Bool_t NewFunction()
void Clear(Option_t *opt="")
void Copy(TObject &) const
KVHashList * GetFunctions() const
void Print(Option_t *opt="") const
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()
virtual void init()
Definition KVAutoFit.cpp:59
virtual void Relecture(const Char_t *name)
virtual void HandleKey(Int_t)
Definition KVAutoFit.h:96
TH1 * hclone
clone de histogramme analyse
Definition KVAutoFit.h:35
virtual Bool_t NewFunction_1D()
Bool_t IsKnown(const Char_t *)
void Recommence()
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)
void GetInterval()
Double_t Ymin
Definition KVAutoFit.h:41
void ClearRange(void)
Efface les bornes min et max pour le prochain fit.
Base class for KaliVeda framework.
Definition KVBase.h:142
Extended version of ROOT THashList.
Definition KVHashList.h:29