KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDalitzPlot.h
Go to the documentation of this file.
1 
4 #ifndef __KVDALITZPLOT_H
5 #define __KVDALITZPLOT_H
6 
7 #include "TH2F.h"
8 #include "TLine.h"
9 #include "Riostream.h"
10 
27 class KVDalitzPlot : public TH2F {
28 
29 protected:
33 
34  TLine* lb1, *lb2, *lb3;
35  TLine* lc1, *lc2, *lc3;
36 
38 
39 public:
40  KVDalitzPlot();
41  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);
42  KVDalitzPlot(const KVDalitzPlot&) ;
43  virtual ~KVDalitzPlot();
44  void Copy(TObject&) const;
45 
47  void Draw(Option_t* opt = "");
48  void SetOrdered(Bool_t ordered = kTRUE)
49  {
50  fOrdered = ordered;
51  }
52  void SetShowBorder(Int_t value = 1); // *TOGGLE*
53  void SetShowCenter(Int_t value = 1); // *TOGGLE*
55  {
56  return fShowBorder;
57  }
59  {
60  return fShowCenter;
61  }
62 
64 
65  ClassDef(KVDalitzPlot, 1) //Fill 3D observables in a dalitz plot
66 };
67 
68 #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:27
void Draw(Option_t *opt="")
Bool_t fOrdered
Definition: KVDalitzPlot.h:30
Int_t GetShowBorder()
Definition: KVDalitzPlot.h:54
TLine * lc1
Definition: KVDalitzPlot.h:35
Int_t fShowCenter
Definition: KVDalitzPlot.h:32
void SetShowBorder(Int_t value=1)
Int_t FillMe(Double_t a1, Double_t a2, Double_t a3)
TLine * lb2
Definition: KVDalitzPlot.h:34
Int_t GetShowCenter()
Definition: KVDalitzPlot.h:58
void SetShowCenter(Int_t value=1)
void SetOrdered(Bool_t ordered=kTRUE)
Definition: KVDalitzPlot.h:48
TLine * lb1
Definition: KVDalitzPlot.h:34
KVDalitzPlot()
Default constructor.
void Copy(TObject &) const
TLine * lc2
Definition: KVDalitzPlot.h:35
TLine * lc3
Definition: KVDalitzPlot.h:35
Int_t fShowBorder
Definition: KVDalitzPlot.h:31
virtual ~KVDalitzPlot()
Destructor.
TLine * lb3
Definition: KVDalitzPlot.h:34
Int_t FillAsDalitz(Double_t a1, Double_t a2, Double_t a3)
TH1 * GetDistanceFromCenter()