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:
31  Bool_t fOrdered;
32  Int_t fShowBorder;
33  Int_t fShowCenter;
34 
35  TLine* lb1, *lb2, *lb3;
36  TLine* lc1, *lc2, *lc3;
37 
38  Int_t FillMe(Double_t a1, Double_t a2, Double_t a3);
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 override;
46 
48  void Draw(Option_t* opt = "") override;
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  ClassDefOverride(KVDalitzPlot, 1) //Fill 3D observables in a dalitz plot
67 };
68 
69 #endif
int Int_t
bool Bool_t
constexpr Bool_t kFALSE
double Double_t
const char Option_t
#define ClassDefOverride(name, id)
char name[80]
Fill 3D observables in a dalitz plot ,.
Definition: KVDalitzPlot.h:28
void Copy(TObject &) const override
void Draw(Option_t *opt="") override
Int_t GetShowBorder()
Definition: KVDalitzPlot.h:55
void SetShowBorder(Int_t value=1)
Int_t GetShowCenter()
Definition: KVDalitzPlot.h:59
void SetShowCenter(Int_t value=1)
void SetOrdered(Bool_t ordered=kTRUE)
Definition: KVDalitzPlot.h:49
KVDalitzPlot()
Default constructor.
virtual ~KVDalitzPlot()
Destructor.
Int_t FillAsDalitz(Double_t a1, Double_t a2, Double_t a3)
TH1 * GetDistanceFromCenter()