Logo ROOT  
Reference Guide
TGenPhaseSpace.h
Go to the documentation of this file.
1 // @(#)root/physics:$Id$
2 // Author: Rene Brun , Valerio Filippini 06/09/2000
3 
4 ///////////////////////////////////////////////////////////////////////////////
5 // //
6 // Phase Space Generator, based on the GENBOD routine of CERNLIB //
7 // //
8 ///////////////////////////////////////////////////////////////////////////////
9 
10 #ifndef ROOT_TGenPhaseSpace
11 #define ROOT_TGenPhaseSpace
12 
13 #include "TLorentzVector.h"
14 
15 class TGenPhaseSpace : public TObject {
16 private:
17  Int_t fNt; // number of decay particles
18  Double_t fMass[18]; // masses of particles
19  Double_t fBeta[3]; // betas of decaying particle
20  Double_t fTeCmTm; // total energy in the C.M. minus the total mass
21  Double_t fWtMax; // maximum weigth
22  TLorentzVector fDecPro[18]; //kinematics of the generated particles
23 
25 
26 public:
27  TGenPhaseSpace(): fNt(0), fMass(), fBeta(), fTeCmTm(0.), fWtMax(0.) {}
28  TGenPhaseSpace(const TGenPhaseSpace &gen);
29  virtual ~TGenPhaseSpace() {}
31 
32  Bool_t SetDecay(TLorentzVector &P, Int_t nt, const Double_t *mass, Option_t *opt="");
35 
36  Int_t GetNt() const { return fNt;}
37  Double_t GetWtMax() const { return fWtMax;}
38 
39  ClassDef(TGenPhaseSpace,1) //Simple Phase Space Generator
40 };
41 
42 #endif
43 
c
#define c(i)
Definition: RSha256.hxx:119
n
const Int_t n
Definition: legend1.C:16
TGenPhaseSpace::fNt
Int_t fNt
Definition: TGenPhaseSpace.h:17
TGenPhaseSpace::fWtMax
Double_t fWtMax
Definition: TGenPhaseSpace.h:21
TGenPhaseSpace
Definition: TGenPhaseSpace.h:15
ROOT::Math::Cephes::P
static double P[]
Definition: SpecFuncCephes.cxx:285
TGenPhaseSpace::Generate
Double_t Generate()
Generate a random final state.
Definition: TGenPhaseSpace.cxx:98
Int_t
int Int_t
Definition: RtypesCore.h:45
TGenPhaseSpace::PDK
Double_t PDK(Double_t a, Double_t b, Double_t c)
The PDK function.
Definition: TGenPhaseSpace.cxx:34
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
b
#define b(i)
Definition: RSha256.hxx:118
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TGenPhaseSpace::SetDecay
Bool_t SetDecay(TLorentzVector &P, Int_t nt, const Double_t *mass, Option_t *opt="")
Input:
Definition: TGenPhaseSpace.cxx:192
a
auto * a
Definition: textangle.C:12
TGenPhaseSpace::fTeCmTm
Double_t fTeCmTm
Definition: TGenPhaseSpace.h:20
TLorentzVector
Definition: TLorentzVector.h:32
TGenPhaseSpace::~TGenPhaseSpace
virtual ~TGenPhaseSpace()
Definition: TGenPhaseSpace.h:29
TGenPhaseSpace::operator=
TGenPhaseSpace & operator=(const TGenPhaseSpace &gen)
Assignment operator.
Definition: TGenPhaseSpace.cxx:75
TGenPhaseSpace::GetWtMax
Double_t GetWtMax() const
Definition: TGenPhaseSpace.h:37
TGenPhaseSpace::fBeta
Double_t fBeta[3]
Definition: TGenPhaseSpace.h:19
TGenPhaseSpace::fDecPro
TLorentzVector fDecPro[18]
Definition: TGenPhaseSpace.h:22
Double_t
double Double_t
Definition: RtypesCore.h:59
TObject
Definition: TObject.h:37
TGenPhaseSpace::GetDecay
TLorentzVector * GetDecay(Int_t n)
Return Lorentz vector corresponding to decay n.
Definition: TGenPhaseSpace.cxx:173
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGenPhaseSpace::fMass
Double_t fMass[18]
Definition: TGenPhaseSpace.h:18
TGenPhaseSpace::GetNt
Int_t GetNt() const
Definition: TGenPhaseSpace.h:36
TLorentzVector.h
TGenPhaseSpace::TGenPhaseSpace
TGenPhaseSpace()
Definition: TGenPhaseSpace.h:27
int