FairRoot/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 
16 #ifndef HYPSTATDECAY_HH
17 #define HYPSTATDECAY_HH
18 
19 
20 //#include "THParticle.h"
21 #include <vector>
22 #include "TRandom.h"
23 
24 class TClonesArray;
25 class TFile;
26 class TTree;
27 
29 {
30 
31  public:
32 
34  HypStatDecay();
35 
36 
40  HypStatDecay(const Char_t* fileName);
41 
42 
44  virtual ~HypStatDecay();
45 
46 
51  void GetFragment(Int_t primGen);
52  void GetData(Int_t tr,TVector3 &p,Int_t &pid,Double_t &mass);
53  void GetAZH(Int_t ion,Int_t &AI,Int_t &ZI,Int_t &L);
54 
55 
57  Int_t GetNtr() const { return fNtr; }
58  //TClonesArray* GetFrag() const { return fFrag; }
59 
61  void SetNtr(Int_t t) { fNtr = t; };
62  //void SetFrag(TClonesArray* frag) { fFrag = frag; };
63 
64  private:
65 
66  Int_t iEvent;
67  Int_t fev;
68  const Char_t* fFileName;
69 
70  TRandom r;
71  double she;
72  int an, zn, hn;
73 
74 
75  Int_t fNtr;
76  std::vector<int>fPid;
77  TVector3 fMom;
78  TLorentzVector v,vN;
79  TVector3 tvL,tNvL;
80 
81  std::vector<double> fPx;
82  std::vector<double> fPy;
83  std::vector<double> fPz;
84  //Double fPhx[1000],fPhy[1000],fPhz[1000];
85  std::vector<double> fMass;
86  std::vector<double>fEx;
87  std::vector<int> A;
88  std::vector<int>Z;
89  std::vector<int>H;
90 
91  TLorentzVector GetPgCMSLab(float mass,float& Delta,TVector3& PL,TRandom& rd);
92  TLorentzVector GetPNuCMSLab(float mass,float& Delta,TVector3& PL,TRandom& rd);
93  Double_t GetEtot(Float_t mass,TVector3 P);
94 
97  void CloseInput();
98 
100 
101 };
102 
103 #endif
Double_t p
Definition: anasim.C:58
void GetFragment(Int_t primGen)
int pid()
TLorentzVector GetPgCMSLab(float mass, float &Delta, TVector3 &PL, TRandom &rd)
std::vector< int > H
Definition: HypStatDecay.h:89
std::vector< int > fPid
Definition: HypStatDecay.h:76
TVector3 fMom
Definition: HypStatDecay.h:77
std::vector< int > A
Definition: HypStatDecay.h:87
TLorentzVector v
Definition: HypStatDecay.h:78
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
virtual ~HypStatDecay()
TLorentzVector vN
Definition: HypStatDecay.h:78
std::vector< double > fPz
Definition: HypStatDecay.h:83
std::vector< double > fPx
Definition: HypStatDecay.h:81
std::vector< int > Z
Definition: HypStatDecay.h:88
Double_t
const Char_t * fFileName
Event number.
Definition: HypStatDecay.h:68
TRandom r
Input file name.
Definition: HypStatDecay.h:70
ClassDef(HypStatDecay, 2)
Int_t GetNtr() const
Definition: HypStatDecay.h:57
GeV c P
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:61
TLorentzVector GetPNuCMSLab(float mass, float &Delta, TVector3 &PL, TRandom &rd)
std::vector< double > fPy
Definition: HypStatDecay.h:82
TTree * t
Definition: bump_analys.C:13
std::vector< double > fMass
Definition: HypStatDecay.h:85
TVector3 tvL
Definition: HypStatDecay.h:79
TVector3 tNvL
Definition: HypStatDecay.h:79
Double_t GetEtot(Float_t mass, TVector3 P)
std::vector< double > fEx
Definition: HypStatDecay.h:86