PandaRoot
CRes.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // KinTools.cpp - Helper tools for DalitzGUI
3 // --------------------------------------------------------------------------
4 //
5 // Original author: Klaus Goetzen - GSI Darmstadt
6 // Last modified : 2014/08/15
7 // --------------------------------------------------------------------------
8 #pragma once
9 
10 #include <Rtypes.h>
11 #include <iostream>
12 #include "TComplex.h"
13 // #include "TColor.h"
14 #include "TArrayD.h"
15 // #include "TStyle.h"
16 
17 // using std::cout;
18 // using std::endl;
19 // using std::flush;
20 
21 class CRes {
22  public:
23  CRes();
24  CRes(Double_t m0, Double_t G0, Double_t m1, Double_t m2, Double_t Amp = 1.0, Double_t Ph = 0., Int_t J = 0);
25 
26  void Set(Double_t m0, Double_t G0, Double_t m1, Double_t m2, Double_t Amp = 1.0, Double_t Ph = 0., Int_t J = 0);
27 
28  Double_t GetM0() { return fm0; }
29  Double_t GetG0() { return fG0; }
30  Double_t GetAmp() { return fAmp; }
31  Double_t GetPh() { return fPh; }
32  Int_t GetJ() { return fJ; }
33 
34  Double_t GetQ0() { return fq0; }
35 
36  Bool_t GetState() { return fOn; }
37  void SetState(Bool_t st) { fOn = st; }
38 
39  void SetM0(Double_t m0) { fm0 = m0; }
40  void SetG0(Double_t G0) { fG0 = G0; }
41  void SetAmp(Double_t Amp) { fAmp = Amp; }
42  void SetPh(Double_t Ph) { fPh = Ph; }
43  void SetJ(Int_t J) { fJ = J; }
44 
45  TComplex GetCoeff() { return TComplex(fAmp, fPh, true); }
46 
47  void SetCacheLen(Int_t n);
48  Int_t GetCacheLen() { return fnCache; }
49 
50  void SetCache(Int_t i, TComplex c);
51  TComplex GetCache(Int_t i) { return TComplex(fCacheRe[i], fCacheIm[i]); }
52 
53  Bool_t IsCacheValid() { return fCacheValid; }
54  void SetCacheValid(Bool_t v) { fCacheValid = v; }
55 
56  private:
57  Double_t fm0;
58  Double_t fG0;
59  Double_t fAmp;
60  Double_t fPh;
61  Int_t fJ;
62 
63  Double_t fq0;
64 
65  Bool_t fOn;
66  Bool_t fCacheValid;
67 
68  Int_t fnCache;
69 
70  TArrayD fCacheRe;
71  TArrayD fCacheIm;
72 
73  ClassDef(CRes, 1);
74 };
Int_t GetJ()
Definition: CRes.h:32
Double_t GetM0()
Definition: CRes.h:28
void SetAmp(Double_t Amp)
Definition: CRes.h:41
void SetState(Bool_t st)
Definition: CRes.h:37
Definition: CRes.h:21
void SetCacheValid(Bool_t v)
Definition: CRes.h:54
void Set(Double_t m0, Double_t G0, Double_t m1, Double_t m2, Double_t Amp=1.0, Double_t Ph=0., Int_t J=0)
Double_t GetPh()
Definition: CRes.h:31
__m128 v
Definition: P4_F32vec4.h:3
void SetJ(Int_t J)
Definition: CRes.h:43
unsigned int i
Definition: P4_F32vec4.h:21
void SetCacheLen(Int_t n)
Double_t GetQ0()
Definition: CRes.h:34
TComplex GetCache(Int_t i)
Definition: CRes.h:51
Double_t GetAmp()
Definition: CRes.h:30
Bool_t IsCacheValid()
Definition: CRes.h:53
void SetM0(Double_t m0)
Definition: CRes.h:39
void SetPh(Double_t Ph)
Definition: CRes.h:42
Double_t GetG0()
Definition: CRes.h:29
void SetCache(Int_t i, TComplex c)
void SetG0(Double_t G0)
Definition: CRes.h:40
Int_t GetCacheLen()
Definition: CRes.h:48
TComplex GetCoeff()
Definition: CRes.h:45
Bool_t GetState()
Definition: CRes.h:36