KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVVirtualIDFitter.h
Go to the documentation of this file.
1 /*
2 $Id: KVVirtualIDFitter.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 __KVVIRTUALIDFITTER_H
11 #define __KVVIRTUALIDFITTER_H
12 
13 #include "KVBase.h"
14 #include "KVIDGrid.h"
15 #include "TPad.h"
16 
23 class KVVirtualIDFitter : public KVBase {
25 
26 protected:
29 
30 public:
32  virtual ~KVVirtualIDFitter();
33 
34  virtual void Fit(KVIDGraph*) = 0;
35 
37  {
38  fGrid = g;
39  };
40  KVIDGraph* GetGrid() const
41  {
42  return fGrid;
43  };
45  {
46  fPad = p;
47  };
49  {
50  return fPad;
51  };
52 
54 
55  ClassDef(KVVirtualIDFitter, 0) //ABC for fitting ID grids with functionals
56 };
57 
58 #endif
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:135
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:31
ABC for fitting ID grids with functionals.
static KVVirtualIDFitter * GetDefaultFitter()
TVirtualPad * GetPad() const
TVirtualPad * fPad
the pad in which grid is drawn (=0 if not drawn)
KVIDGraph * fGrid
the grid to fit
KVVirtualIDFitter()
Default constructor.
void SetPad(TVirtualPad *p)
virtual ~KVVirtualIDFitter()
Destructor.
KVIDGraph * GetGrid() const
static KVVirtualIDFitter * gDefaultFitter
void SetGrid(KVIDGraph *g)
virtual void Fit(KVIDGraph *)=0
const long double g
masses
Definition: KVUnits.h:72