KaliVeda
Toolkit for HIC analysis
KVDalitzPlot.h
1 
4 #ifndef __KVDALITZPLOT_H
5 #define __KVDALITZPLOT_H
6 
7 #include "TH2F.h"
8 #include "TLine.h"
9 #include "Riostream.h"
10 
28 class KVDalitzPlot : public TH2F {
29 
30 protected:
34 
35  TLine* lb1, *lb2, *lb3;
36  TLine* lc1, *lc2, *lc3;
37 
39 
40 public:
41  KVDalitzPlot();
42  KVDalitzPlot(const char* name, const char* title, Bool_t ordered = kFALSE, Int_t nbinsx = 120, Double_t xlow = 0., Double_t xup = 1.2, Int_t nbinsy = 120, Double_t ylow = 0., Double_t yup = 1.2);
43  KVDalitzPlot(const KVDalitzPlot&) ;
44  virtual ~KVDalitzPlot();
45  void Copy(TObject&) const;
46 
48  void Draw(Option_t* opt = "");
49  void SetOrdered(Bool_t ordered = kTRUE)
50  {
51  fOrdered = ordered;
52  }
53  void SetShowBorder(Int_t value = 1); // *TOGGLE*
54  void SetShowCenter(Int_t value = 1); // *TOGGLE*
56  {
57  return fShowBorder;
58  }
60  {
61  return fShowCenter;
62  }
63 
65 
66  ClassDef(KVDalitzPlot, 1) //Fill 3D observables in a dalitz plot
67 };
68 
69 #endif
int Int_t
bool Bool_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Fill 3D observables in a dalitz plot ,.
Definition: KVDalitzPlot.h:28
void Draw(Option_t *opt="")
Bool_t fOrdered
Definition: KVDalitzPlot.h:31
Int_t GetShowBorder()
Definition: KVDalitzPlot.h:55
TLine * lc1
Definition: KVDalitzPlot.h:36
Int_t fShowCenter
Definition: KVDalitzPlot.h:33
void SetShowBorder(Int_t value=1)
Int_t FillMe(Double_t a1, Double_t a2, Double_t a3)
TLine * lb2
Definition: KVDalitzPlot.h:35
Int_t GetShowCenter()
Definition: KVDalitzPlot.h:59
void SetShowCenter(Int_t value=1)
void SetOrdered(Bool_t ordered=kTRUE)
Definition: KVDalitzPlot.h:49
TLine * lb1
Definition: KVDalitzPlot.h:35
KVDalitzPlot()
Default constructor.
void Copy(TObject &) const
TLine * lc2
Definition: KVDalitzPlot.h:36
TLine * lc3
Definition: KVDalitzPlot.h:36
Int_t fShowBorder
Definition: KVDalitzPlot.h:32
virtual ~KVDalitzPlot()
Destructor.
TLine * lb3
Definition: KVDalitzPlot.h:35
Int_t FillAsDalitz(Double_t a1, Double_t a2, Double_t a3)
TH1 * GetDistanceFromCenter()