Logo ROOT   6.18/05
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
12class TClonesArrray;
13class TLorentzVector;
14class TPythia8;
15
17public:
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();
26 virtual Float_t GetLifetime(Int_t kf);
27 virtual void ReadDecayTable();
28
29 virtual void SetDebugLevel(Int_t debug) {fDebug = debug;}
30protected:
32 void ClearEvent();
33private:
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
int Int_t
Definition: RtypesCore.h:41
float Float_t
Definition: RtypesCore.h:53
#define ClassDef(name, id)
Definition: Rtypes.h:326
int type
Definition: TGX11.cxx:120
An array of clone (identical) objects.
Definition: TClonesArray.h:32
This class implements the TVirtualMCDecayer interface using TPythia8.
TPythia8 * fPythia8
virtual Float_t GetLifetime(Int_t kf)
return lifetime in seconds of teh particle with PDG number pdg
virtual void Decay(Int_t pdg, TLorentzVector *p)
Decay a single particle.
virtual void Init()
Initialize the decayer.
TPythia8Decayer()
constructor
virtual ~TPythia8Decayer()
virtual Int_t ImportParticles(TClonesArray *particles)
import the decay products into particles array
virtual void SetForceDecay(Int_t type)
Set forced decay mode.
void AppendParticle(Int_t pdg, TLorentzVector *p)
Append a particle to the stack.
virtual void ReadDecayTable()
to read a decay table (not yet implemented)
virtual void SetDebugLevel(Int_t debug)
virtual void ForceDecay()
ForceDecay not yet implemented.
void ClearEvent()
Clear the event stack.
virtual Float_t GetPartialBranchingRatio(Int_t ipart)
Get the partial branching ratio for a particle of type IPART (a PDG code).
TPythia8 is an interface class to C++ version of Pythia 8.1 event generators, written by T....
Definition: TPythia8.h:77
Abstract base class for particle decays.