]>
Commit | Line | Data |
---|---|---|
0d54355a | 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 | ||
675e9664 | 8 | // Implementation of AliDecayer using Pythia |
9 | // Method forwarding to the AliPythia instance. | |
10 | // Author: andreas.morsch@cern.ch | |
11 | ||
0d54355a | 12 | #include "AliDecayer.h" |
675e9664 | 13 | class AliPythia; |
46720693 | 14 | class TClonesArrray; |
0d54355a | 15 | |
16 | class AliDecayerPythia : | |
17 | public AliDecayer | |
18 | { | |
19 | public: | |
0d54355a | 20 | AliDecayerPythia(); |
675e9664 | 21 | void Copy(AliDecayerPythia &decayer) const; |
22 | ||
23 | // | |
46720693 | 24 | virtual ~AliDecayerPythia(){;} |
25 | ||
0d54355a | 26 | virtual void Init(); |
27 | virtual void Decay(Int_t idpart, TLorentzVector *p); | |
675e9664 | 28 | virtual Int_t ImportParticles(TClonesArray *particles); |
01d608eb | 29 | virtual void SetForceDecay(Decay_t decay) {fDecay=decay;} |
a8e30f75 | 30 | virtual void SetForceDecay(Int_t decay) |
31 | {SetForceDecay((Decay_t) decay);} | |
01d608eb | 32 | virtual void ForceDecay(); |
33 | ||
0d54355a | 34 | virtual Float_t GetPartialBranchingRatio(Int_t ipart); |
989ce1b7 | 35 | virtual Float_t GetLifetime(Int_t kf); |
a5d8b1d9 | 36 | virtual void WriteDecayTable(); |
37 | virtual void ReadDecayTable(); | |
675e9664 | 38 | |
0d54355a | 39 | private: |
40 | void DefineParticles(); | |
41 | void Lu1Ent(Int_t flag, Int_t idpart, | |
42 | Double_t mom, Double_t theta, Double_t phi); | |
43 | Int_t CountProducts(Int_t channel, Int_t particle); | |
44 | void ForceParticleDecay(Int_t particle, Int_t product, Int_t mult); | |
086919a7 | 45 | void ForceHadronicD(); |
46 | void ForceOmega(); | |
0d54355a | 47 | Float_t GetBraPart(Int_t kf); |
675e9664 | 48 | |
49 | AliDecayerPythia(const AliDecayerPythia &decayer) {;} | |
50 | virtual AliDecayerPythia &operator=(const AliDecayerPythia &decayer) | |
51 | {decayer.Copy(*this);return(*this);} | |
0d54355a | 52 | |
53 | ||
54 | private: | |
086919a7 | 55 | AliPythia* fPythia; //! Pointer to AliPythia |
56 | Decay_t fDecay; // Forced decay mode | |
57 | Float_t fBraPart[501]; //! Branching ratios | |
58 | static Bool_t fgInit; //! initialization flag | |
fcd78501 | 59 | |
086919a7 | 60 | ClassDef(AliDecayerPythia,2) // AliDecayer implementation using Pythia |
0d54355a | 61 | }; |
62 | #endif | |
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 |