Logo ROOT   6.12/07
Reference Guide
TPythia6Decayer.h
Go to the documentation of this file.
1 // @(#)root/pythia6:$Id$
2 // Author: Christian Holm Christensen 22/04/06
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TPythia6Decayer
13 #define ROOT_TPythia6Decayer
14 
15 ///////////////////////////////////////////////////////////////////////////////
16 // //
17 // TPythia6Decayer //
18 // //
19 // This implements the TVirtualMCDecayer interface. The TPythia6 //
20 // singleton object is used to decay particles. Note, that since this //
21 // class modifies common blocks (global variables) it is defined as a //
22 // singleton. //
23 // //
24 ///////////////////////////////////////////////////////////////////////////////
25 
26 #include "TVirtualMCDecayer.h"
27 #include "TString.h"
28 #include "TArrayF.h"
29 
30 
32 
33 public:
34  // enum of decay mode types
35  enum EDecayType {
59  };
60 
61 protected:
62  TString fDecayTableFile; // File to read decay table from
63  EDecayType fDecay; // Forced decay mode
64  TArrayF fBraPart; //! Branching ratios
65 
67 
68  // Extra functions
69  void ForceHadronicD();
70  void ForceOmega();
71  Int_t CountProducts(Int_t channel, Int_t particle);
72 
73 public:
75  virtual ~TPythia6Decayer() { }
76  virtual void Init();
77  virtual void Decay(Int_t idpart, TLorentzVector* p);
78  virtual Int_t ImportParticles(TClonesArray *particles);
79  virtual void SetForceDecay(Int_t type);
80  virtual void ForceDecay();
81  void ForceParticleDecay(Int_t particle, Int_t* products,
82  Int_t* mult, Int_t npart);
83  void ForceParticleDecay(Int_t particle, Int_t product, Int_t mult);
84  virtual Float_t GetPartialBranchingRatio(Int_t ipart);
85  virtual Float_t GetLifetime(Int_t kf);
86  virtual void ReadDecayTable();
87  // Extension member functions
88  virtual void SetDecayTableFile(const char* name);
89  virtual void WriteDecayTable();
90  virtual void SetForceDecay(EDecayType type) { fDecay = type; }
91 
92  static TPythia6Decayer *Instance();
93 
94  ClassDef(TPythia6Decayer,1) // Particle Decayer Base Class
95 };
96 
97 inline void TPythia6Decayer::SetDecayTableFile(const char *name)
98 {
100 }
101 
102 #endif
TString fDecayTableFile
virtual void WriteDecayTable()
write particle data to an ASCII file.
float Float_t
Definition: RtypesCore.h:53
virtual void SetForceDecay(Int_t type)
Force a particular decay type.
Basic string class.
Definition: TString.h:125
Array of floats (32 bits per element).
Definition: TArrayF.h:27
int Int_t
Definition: RtypesCore.h:41
Abstract base class for particle decays.
virtual ~TPythia6Decayer()
Int_t CountProducts(Int_t channel, Int_t particle)
Count number of decay products.
virtual Float_t GetLifetime(Int_t kf)
Get the life-time of a particle of type KF (a PDG code).
virtual Float_t GetPartialBranchingRatio(Int_t ipart)
Get the partial branching ratio for a particle of type IPART (a PDG code).
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual void Decay(Int_t idpart, TLorentzVector *p)
Decay a particle of type IDPART (PDG code) and momentum P.
void ForceHadronicD()
Force golden D decay modes.
This class implements the TVirtualMCDecayer interface.
TLorentzVector is a general four-vector class, which can be used either for the description of positi...
virtual Int_t ImportParticles(TClonesArray *particles)
Get the decay products into the passed PARTICLES TClonesArray of TParticles.
void ForceOmega()
Force Omega -> Lambda K- Decay.
static TPythia6Decayer * Instance()
Get the singleton object.
virtual void ReadDecayTable()
Read in particle data from an ASCII file.
static TPythia6Decayer * fgInstance
Branching ratios.
int type
Definition: TGX11.cxx:120
virtual void SetForceDecay(EDecayType type)
virtual void ForceDecay()
Force a particle decay mode.
virtual void Init()
Initialize the decayer.
virtual void SetDecayTableFile(const char *name)
An array of clone (identical) objects.
Definition: TClonesArray.h:32
void ForceParticleDecay(Int_t particle, Int_t *products, Int_t *mult, Int_t npart)
Force decay of particle into products with multiplicity mult.
TPythia6Decayer()
Constructor.
char name[80]
Definition: TGX11.cxx:109
EDecayType fDecay