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 */
8 // Implementation of AliDecayer using Pythia
9 // Method forwarding to the AliPythia instance.
10 // Author: andreas.morsch@cern.ch
12 #include "AliDecayer.h"
16 class AliDecayerPythia :
21 AliDecayerPythia(const AliDecayerPythia &decayer);
23 virtual ~AliDecayerPythia(){;}
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();
31 virtual void SetPatchOmegaDalitz() {fPatchOmegaDalitz = 1;}
32 virtual void HeavyFlavourOff() {fHeavyFlavour = kFALSE;}
33 virtual void DecayLongLivedParticles() {fLongLived = kTRUE;}
34 virtual Float_t GetPartialBranchingRatio(Int_t ipart);
35 virtual Float_t GetLifetime(Int_t kf);
36 virtual void SwitchOffBDecay();
37 virtual void WriteDecayTable();
38 virtual void ReadDecayTable();
41 void DefineParticles();
42 void Lu1Ent(Int_t flag, Int_t idpart,
43 Double_t mom, Double_t theta, Double_t phi);
44 Int_t CountProducts(Int_t channel, Int_t particle);
45 void ForceParticleDecay(Int_t particle, Int_t product, Int_t mult);
46 void ForceParticleDecay(Int_t particle, const Int_t* products, Int_t* mult, Int_t npart, Bool_t flag = 0);
47 void ForceHadronicD(Int_t optUser4Bodies=1);
50 void SwitchOffHeavyFlavour();
51 void ForceBeautyUpgrade();
52 Float_t GetBraPart(Int_t kf);
53 void Copy(TObject &decayer) const;
55 AliDecayerPythia &operator=(const AliDecayerPythia &decayer)
56 {decayer.Copy(*this);return(*this);}
60 AliPythia* fPythia; //! Pointer to AliPythia
61 Decay_t fDecay; // Forced decay mode
62 Float_t fBraPart[501]; //! Branching ratios
63 Bool_t fHeavyFlavour; //! Flag for heavy flavors
64 Bool_t fLongLived; //! Flag for long lived particle decay
65 Bool_t fPatchOmegaDalitz;//! Flag to patch the omega Dalitz decays
66 static Bool_t fgInit; //! initialization flag
68 ClassDef(AliDecayerPythia, 3) // AliDecayer implementation using Pythia