Updating info for ACORDE and TRD
[u/mrichter/AliRoot.git] / PYTHIA6 / AliDecayerPythia.h
CommitLineData
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"
13class AliPythia;
14class TClonesArrray;
15
16class AliDecayerPythia :
17public 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();
b8f95537 31 virtual void SetPatchOmegaDalitz() {fPatchOmegaDalitz = 1;}
51387949 32 virtual void HeavyFlavourOff() {fHeavyFlavour = kFALSE;}
d3553100 33 virtual void DecayLongLivedParticles() {fLongLived = kTRUE;}
8d2cd130 34 virtual Float_t GetPartialBranchingRatio(Int_t ipart);
35 virtual Float_t GetLifetime(Int_t kf);
1fefb2d4 36 virtual void SwitchOffBDecay();
fcdfb7ba 37 virtual void SwitchOffPi0() {fPi0 = 0;}
8d2cd130 38 virtual void WriteDecayTable();
39 virtual void ReadDecayTable();
40
41 private:
42 void DefineParticles();
43 void Lu1Ent(Int_t flag, Int_t idpart,
44 Double_t mom, Double_t theta, Double_t phi);
45 Int_t CountProducts(Int_t channel, Int_t particle);
46 void ForceParticleDecay(Int_t particle, Int_t product, Int_t mult);
5b4a0c82 47 void ForceParticleDecay(Int_t particle, const Int_t* products, Int_t* mult, Int_t npart, Bool_t flag = 0);
af33df34 48 void ForceHadronicD(Int_t optUser4Bodies=1);
51387949 49 void ForceOmega();
d3553100 50 void ForceLambda();
51387949 51 void SwitchOffHeavyFlavour();
482c0e0c 52 void ForceBeautyUpgrade();
8d2cd130 53 Float_t GetBraPart(Int_t kf);
51387949 54 void Copy(TObject &decayer) const;
043f1ca8 55
56 AliDecayerPythia &operator=(const AliDecayerPythia &decayer)
8d2cd130 57 {decayer.Copy(*this);return(*this);}
58
59
60 private:
61 AliPythia* fPythia; //! Pointer to AliPythia
51387949 62 Decay_t fDecay; // Forced decay mode
8d2cd130 63 Float_t fBraPart[501]; //! Branching ratios
51387949 64 Bool_t fHeavyFlavour; //! Flag for heavy flavors
d3553100 65 Bool_t fLongLived; //! Flag for long lived particle decay
b8f95537 66 Bool_t fPatchOmegaDalitz;//! Flag to patch the omega Dalitz decays
fcdfb7ba 67 Bool_t fPi0; //! Flag for pi0 decay
8d2cd130 68 static Bool_t fgInit; //! initialization flag
69
fcdfb7ba 70 ClassDef(AliDecayerPythia, 4) // AliDecayer implementation using Pythia
8d2cd130 71};
72#endif
73
74
75
76
77
78
79