]>
Commit | Line | Data |
---|---|---|
8d2cd130 | 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(); | |
e8a8adcd | 21 | AliDecayerPythia(const AliDecayerPythia &decayer); |
22 | // | |
8d2cd130 | 23 | virtual ~AliDecayerPythia(){;} |
8d2cd130 | 24 | virtual void Init(); |
25 | virtual void Decay(Int_t idpart, TLorentzVector *p); | |
26 | virtual Int_t ImportParticles(TClonesArray *particles); | |
27 | virtual void SetForceDecay(Decay_t decay) {fDecay=decay;} | |
28 | virtual void SetForceDecay(Int_t decay) | |
29 | {SetForceDecay((Decay_t) decay);} | |
30 | virtual void ForceDecay(); | |
51387949 | 31 | virtual void HeavyFlavourOff() {fHeavyFlavour = kFALSE;} |
8d2cd130 | 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); | |
7935c2c7 | 43 | void ForceParticleDecay(Int_t particle, Int_t* products, Int_t* mult, Int_t npart); |
af33df34 | 44 | void ForceHadronicD(Int_t optUser4Bodies=1); |
51387949 | 45 | void ForceOmega(); |
46 | void SwitchOffHeavyFlavour(); | |
8d2cd130 | 47 | Float_t GetBraPart(Int_t kf); |
51387949 | 48 | void Copy(TObject &decayer) const; |
043f1ca8 | 49 | |
50 | AliDecayerPythia &operator=(const AliDecayerPythia &decayer) | |
8d2cd130 | 51 | {decayer.Copy(*this);return(*this);} |
52 | ||
53 | ||
54 | private: | |
55 | AliPythia* fPythia; //! Pointer to AliPythia | |
51387949 | 56 | Decay_t fDecay; // Forced decay mode |
8d2cd130 | 57 | Float_t fBraPart[501]; //! Branching ratios |
51387949 | 58 | Bool_t fHeavyFlavour; //! Flag for heavy flavors |
8d2cd130 | 59 | static Bool_t fgInit; //! initialization flag |
60 | ||
51387949 | 61 | ClassDef(AliDecayerPythia, 3) // AliDecayer implementation using Pythia |
8d2cd130 | 62 | }; |
63 | #endif | |
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 |