Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
16 class TPythia8Decayer : public TVirtualMCDecayer {
17 public:
18  TPythia8Decayer();
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