KaliVeda
Toolkit for HIC analysis
KVTGIDFitter.h
1 /*
2 $Id: KVTGIDFitter.h,v 1.2 2009/03/03 14:27:15 franklan Exp $
3 $Revision: 1.2 $
4 $Date: 2009/03/03 14:27:15 $
5 */
6 
9 
10 #ifndef __KVTGIDFITTER_H
11 #define __KVTGIDFITTER_H
12 
13 #include "KVVirtualIDFitter.h"
14 #include "KVTGID.h"
15 
82 protected:
96 
97  void MakeTGID();
98 
99 public:
100  KVTGIDFitter();
101  virtual ~KVTGIDFitter();
102 
103  virtual void Fit(KVIDGraph*);
104 
105  void FitPanel(Int_t functional_type = 1, Bool_t with_csi_light_energy = kTRUE,
106  Int_t first_Z = -1, Int_t last_Z = -1, Double_t xmin = 0.0, Double_t xmax = 0.0); // *MENU*
107 
109  {
117  fType = t;
118  };
120  {
121  return fType;
122  };
123  void SetLight(Int_t ih)
124  {
131  fLight = ih;
132  };
133  Int_t GetLight() const
134  {
135  return fLight;
136  };
137  Int_t GetFitStatus() const;
138  const Char_t* GetFitStatusString() const;
139 
141  {
142  return fPar;
143  };
144  Int_t* GetStatusOfParameters() const;
145 
146  KVTGID* GetTGID() const
147  {
148  return fTGID;
149  };
150 
151  ClassDef(KVTGIDFitter, 0) //For fitting ID grids with LTG functionals
152 };
153 
154 #endif
int Int_t
bool Bool_t
char Char_t
float Float_t
double Double_t
#define ClassDef(name, id)
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:32
Fit of E-DE functional.
Definition: KVTGIDFitter.h:81
Float_t * fPar
array of fit parameters
Definition: KVTGIDFitter.h:86
Float_t * zd
array of Z's
Definition: KVTGIDFitter.h:87
Int_t GetFitStatus() const
Float_t * yd
array of Y coordinates
Definition: KVTGIDFitter.h:90
Float_t * xd
array of X coordinates
Definition: KVTGIDFitter.h:89
KVTGIDFitter()
Default constructor.
virtual void Fit(KVIDGraph *)
virtual ~KVTGIDFitter()
Destructor.
Int_t * GetStatusOfParameters() const
Int_t fZorA
is grid for Z&A or only Z identification ?
Definition: KVTGIDFitter.h:85
void FitPanel(Int_t functional_type=1, Bool_t with_csi_light_energy=kTRUE, Int_t first_Z=-1, Int_t last_Z=-1, Double_t xmin=0.0, Double_t xmax=0.0)
void MakeTGID()
Make a KVTGID out of fit result, if fit converged (irc<2)
KVTGID * GetTGID() const
Definition: KVTGIDFitter.h:146
Float_t * ad
array of A's
Definition: KVTGIDFitter.h:88
Int_t * istate
status of parameters
Definition: KVTGIDFitter.h:92
Double_t fXmin
limit for fit
Definition: KVTGIDFitter.h:94
Int_t irc
status code
Definition: KVTGIDFitter.h:91
Int_t GetLight() const
Definition: KVTGIDFitter.h:133
Double_t fXmax
limit for fit
Definition: KVTGIDFitter.h:95
Int_t fType
type of functional
Definition: KVTGIDFitter.h:83
const Char_t * GetFitStatusString() const
String with meaning of fit status codes (see GetFitStatus)
KVTGID * fTGID
KVTGID object representing fit result.
Definition: KVTGIDFitter.h:93
Int_t fLight
handles CsI total light-energy conversion
Definition: KVTGIDFitter.h:84
void SetFunctionalType(Int_t t)
Definition: KVTGIDFitter.h:108
void SetLight(Int_t ih)
Definition: KVTGIDFitter.h:123
Int_t GetFunctionalType() const
Definition: KVTGIDFitter.h:119
Float_t * GetParameters() const
Definition: KVTGIDFitter.h:140
Abstract base class for particle identfication using functionals developed by L. Tassan-Got (IPN Orsa...
Definition: KVTGID.h:44
ABC for fitting ID grids with functionals.