PandaRoot
HypStatDecay.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- HypStatDecay header file -----
15 // ----- Created 30/10/08 by A.Sanchez -----
16 // -------------------------------------------------------------------------
17 
27 #ifndef HYPSTATDECAY_HH
28 #define HYPSTATDECAY_HH
29 
30 //#include "THParticle.h"
31 #include <vector>
32 #include "TRandom.h"
33 
34 class TClonesArray;
35 class TFile;
36 class TTree;
37 
38 class HypStatDecay {
39 
40  public:
42  HypStatDecay();
43 
47  HypStatDecay(const Char_t *fileName);
48 
50  virtual ~HypStatDecay();
51 
56  void GetFragment(Int_t primGen);
57  void GetData(Int_t tr, TVector3 &p, Int_t &pid, Double_t &mass);
58  void GetAZH(Int_t ion, Int_t &AI, Int_t &ZI, Int_t &L);
59 
61  Int_t GetNtr() const { return fNtr; }
62  // TClonesArray* GetFrag() const { return fFrag; }
63 
65  void SetNtr(Int_t t) { fNtr = t; };
66  // void SetFrag(TClonesArray* frag) { fFrag = frag; };
67 
68  private:
69  Int_t iEvent;
70  Int_t fev;
71  const Char_t *fFileName;
72 
73  double she;
74  int an, zn, hn;
75 
76  Int_t fNtr;
77  std::vector<int> fPid;
78  TVector3 fMom;
79  TLorentzVector v, vN;
80  TVector3 tvL, tNvL;
81 
82  std::vector<double> fPx;
83  std::vector<double> fPy;
84  std::vector<double> fPz;
85  // Double fPhx[1000],fPhy[1000],fPhz[1000];
86  std::vector<double> fMass;
87  std::vector<double> fEx;
88  std::vector<int> A;
89  std::vector<int> Z;
90  std::vector<int> H;
91 
92  TLorentzVector GetPgCMSLab(float mass, float &Delta, TVector3 &PL);
93  TLorentzVector GetPNuCMSLab(float mass, float &Delta, TVector3 &PL);
94  Double_t GetEtot(Float_t mass, TVector3 P);
95 
98  void CloseInput();
99 
100  ClassDef(HypStatDecay, 2);
101 };
102 
103 #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:65
Int_t GetNtr() const
Definition: HypStatDecay.h:61
virtual ~HypStatDecay()