Logo ROOT   6.21/01
Reference Guide
TPythia8Decayer.h
Go to the documentation of this file.
1 // @(#)root/pythia8:$Name$:$Id$
2 // Author: Andreas Morsch 04/07/2008
3 
4 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 #ifndef TPYTHIA8DECAYER_H
8 #define TPYTHIA8DECAYER_H
9 
10 #include "TVirtualMCDecayer.h"
11 
12 class TClonesArrray;
13 class TLorentzVector;
14 class TPythia8;
15 
17 public:
19  virtual ~TPythia8Decayer(){;}
20  virtual void Init();
21  virtual void Decay(Int_t pdg, TLorentzVector* p);
22  virtual Int_t ImportParticles(TClonesArray *particles);
23  virtual void SetForceDecay(Int_t type);
24  virtual void ForceDecay();
25  virtual Float_t GetPartialBranchingRatio(Int_t ipart);
26  virtual Float_t GetLifetime(Int_t kf);
27  virtual void ReadDecayTable();
28 
29  virtual void SetDebugLevel(Int_t debug) {fDebug = debug;}
30 protected:
31  void AppendParticle(Int_t pdg, TLorentzVector* p);
32  void ClearEvent();
33 private:
34  TPythia8* fPythia8; // Pointer to pythia8
35  Int_t fDebug; // Debug level
36 
37  ClassDef(TPythia8Decayer, 1) // Particle Decayer using Pythia8
38 
39 };
40 #endif
41 
42 
43 
44 
45 
46 
47 
virtual void ReadDecayTable()
to read a decay table (not yet implemented)
float Float_t
Definition: RtypesCore.h:53
virtual ~TPythia8Decayer()
TPythia8Decayer()
constructor
int Int_t
Definition: RtypesCore.h:41
virtual void Decay(Int_t pdg, TLorentzVector *p)
Decay a single particle.
Abstract base class for particle decays.
void ClearEvent()
Clear the event stack.
#define ClassDef(name, id)
Definition: Rtypes.h:326
virtual Float_t GetPartialBranchingRatio(Int_t ipart)
Get the partial branching ratio for a particle of type IPART (a PDG code).
virtual void Init()
Initialize the decayer.
virtual void SetForceDecay(Int_t type)
Set forced decay mode.
virtual void SetDebugLevel(Int_t debug)
virtual Float_t GetLifetime(Int_t kf)
return lifetime in seconds of teh particle with PDG number pdg
virtual Int_t ImportParticles(TClonesArray *particles)
import the decay products into particles array
void AppendParticle(Int_t pdg, TLorentzVector *p)
Append a particle to the stack.
virtual void ForceDecay()
ForceDecay not yet implemented.
DisclaimerTLorentzVector is a legacy class.
TPythia8 * fPythia8
TPythia8 is an interface class to C++ version of Pythia 8.1 event generators, written by T...
Definition: TPythia8.h:76
int type
Definition: TGX11.cxx:120
This class implements the TVirtualMCDecayer interface using TPythia8.
An array of clone (identical) objects.
Definition: TClonesArray.h:32