]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliDecayerPythia.h
Moved from AliTransbit to AliL3Transbit.
[u/mrichter/AliRoot.git] / EVGEN / AliDecayerPythia.h
1 #ifndef ALIDECAYERPYTHIA_H
2 #define ALIDECAYERPYTHIA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 // Implementation of AliDecayer using Pythia
9 // Method forwarding to the AliPythia instance.
10 // Author: andreas.morsch@cern.ch
11
12 #include "AliDecayer.h"
13 class AliPythia;
14 class TClonesArrray;
15
16 class AliDecayerPythia :
17 public AliDecayer
18 {
19  public:
20     AliDecayerPythia();
21     void  Copy(AliDecayerPythia &decayer) const;
22     
23 //    
24     virtual         ~AliDecayerPythia(){;}
25     
26     virtual void    Init();
27     virtual void    Decay(Int_t idpart, TLorentzVector *p);
28     virtual Int_t   ImportParticles(TClonesArray *particles);
29     virtual void    SetForceDecay(Decay_t decay) {fDecay=decay;}
30     virtual void    ForceDecay();
31     
32     virtual Float_t GetPartialBranchingRatio(Int_t ipart);
33     virtual Float_t GetLifetime(Int_t kf);
34     virtual void    WriteDecayTable();
35     virtual void    ReadDecayTable();
36     
37  private:
38     void     DefineParticles();
39     void     Lu1Ent(Int_t flag, Int_t idpart, 
40                     Double_t mom, Double_t theta, Double_t phi);
41     Int_t    CountProducts(Int_t channel, Int_t particle);
42     void     ForceParticleDecay(Int_t particle, Int_t product, Int_t mult);
43     void     ForceHadronicD();
44     void     ForceOmega();    
45     Float_t  GetBraPart(Int_t kf);
46
47     AliDecayerPythia(const AliDecayerPythia &decayer) {;}
48     virtual AliDecayerPythia &operator=(const AliDecayerPythia &decayer) 
49     {decayer.Copy(*this);return(*this);}
50     
51     
52  private:
53     AliPythia*  fPythia;          //! Pointer to AliPythia
54     Decay_t     fDecay;           // Forced decay mode
55     Float_t     fBraPart[501];    //! Branching ratios
56     static Bool_t fgInit;         //! initialization flag 
57     
58     ClassDef(AliDecayerPythia,2)  // AliDecayer implementation using Pythia  
59 };
60 #endif
61
62
63
64
65
66
67