KaliVeda
Toolkit for HIC analysis
KVVirtualIDFitter.h
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 
24 class KVVirtualIDFitter : public KVBase {
26 
27 protected:
30 
31 public:
33  virtual ~KVVirtualIDFitter();
34 
35  virtual void Fit(KVIDGraph*) = 0;
36 
37  void SetGrid(KVIDGraph* g)
38  {
39  fGrid = g;
40  };
41  KVIDGraph* GetGrid() const
42  {
43  return fGrid;
44  };
46  {
47  fPad = p;
48  };
50  {
51  return fPad;
52  };
53 
55 
56  ClassDef(KVVirtualIDFitter, 0) //ABC for fitting ID grids with functionals
57 };
58 
59 #endif
#define ClassDef(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t g
Base class for KaliVeda framework.
Definition: KVBase.h:142
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:32
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