memory leak fixed
[u/mrichter/AliRoot.git] / PYTHIA8 / AliDecayerPythia8.h
CommitLineData
948d10f4 1#ifndef ALIDECAYERPYTHIA8_H
2#define ALIDECAYERPYTHIA8_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 TVirtualMCDecayer using Pythia8
9// Author: andreas.morsch@cern.ch
10
11#include <TPythia8Decayer.h>
12#include <ParticleData.h>
13#include "AliDecayer.h"
14
15class AliDecayerPythia8 : public TPythia8Decayer {
16 public:
17 AliDecayerPythia8();
18 virtual ~AliDecayerPythia8(){;}
ad720100 19 virtual void Init();
948d10f4 20 virtual void SetForceDecay(Decay_t decay) {fDecay=decay;}
21 virtual void SetForceDecay(Int_t decay) {SetForceDecay((Decay_t) decay);}
22 virtual void ForceDecay();
23 virtual Float_t GetPartialBranchingRatio(Int_t ipart);
24 virtual void HeavyFlavourOff() {fHeavyFlavour = kFALSE;}
25 virtual Float_t GetLifetime(Int_t kf);
26 private:
948d10f4 27 void SwitchOffHeavyFlavour();
28 void ForceHadronicD(Int_t optUser4Bodies = 1);
29 protected:
30 Decay_t fDecay; // Forced decay mode
31 Bool_t fHeavyFlavour; //! Flag for heavy flavors
ad720100 32 static Bool_t fgInit; //! initialization flag
948d10f4 33 ClassDef(AliDecayerPythia8, 1) // Particle Decayer using Pythia8
34};
35#endif
36
37
38
39
40
41
42