PandaRoot
HypStatDecay.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- HypStatDecay header file -----
3 // ----- Created 30/10/08 by A.Sanchez -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef HYPSTATDECAY_HH
16 #define HYPSTATDECAY_HH
17 
18 //#include "THParticle.h"
19 #include <vector>
20 #include "TRandom.h"
21 
22 class TClonesArray;
23 class TFile;
24 class TTree;
25 
26 class HypStatDecay {
27 
28  public:
30  HypStatDecay();
31 
35  HypStatDecay(const Char_t *fileName);
36 
38  virtual ~HypStatDecay();
39 
44  void GetFragment(Int_t primGen);
45  void GetData(Int_t tr, TVector3 &p, Int_t &pid, Double_t &mass);
46  void GetAZH(Int_t ion, Int_t &AI, Int_t &ZI, Int_t &L);
47 
49  Int_t GetNtr() const { return fNtr; }
50  // TClonesArray* GetFrag() const { return fFrag; }
51 
53  void SetNtr(Int_t t) { fNtr = t; };
54  // void SetFrag(TClonesArray* frag) { fFrag = frag; };
55 
56  private:
57  Int_t iEvent;
58  Int_t fev;
59  const Char_t *fFileName;
60 
61  double she;
62  int an, zn, hn;
63 
64  Int_t fNtr;
65  std::vector<int> fPid;
66  TVector3 fMom;
67  TLorentzVector v, vN;
68  TVector3 tvL, tNvL;
69 
70  std::vector<double> fPx;
71  std::vector<double> fPy;
72  std::vector<double> fPz;
73  // Double fPhx[1000],fPhy[1000],fPhz[1000];
74  std::vector<double> fMass;
75  std::vector<double> fEx;
76  std::vector<int> A;
77  std::vector<int> Z;
78  std::vector<int> H;
79 
80  TLorentzVector GetPgCMSLab(float mass, float &Delta, TVector3 &PL);
81  TLorentzVector GetPNuCMSLab(float mass, float &Delta, TVector3 &PL);
82  Double_t GetEtot(Float_t mass, TVector3 P);
83 
86  void CloseInput();
87 
88  ClassDef(HypStatDecay, 2);
89 };
90 
91 #endif
void GetFragment(Int_t primGen)
void GetAZH(Int_t ion, Int_t &AI, Int_t &ZI, Int_t &L)
void GetData(Int_t tr, TVector3 &p, Int_t &pid, Double_t &mass)
search fragment in event
void SetNtr(Int_t t)
return multiplicity
Definition: HypStatDecay.h:53
Int_t GetNtr() const
Definition: HypStatDecay.h:49
virtual ~HypStatDecay()