]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenPythia.h
Default for decays is kAll.
[u/mrichter/AliRoot.git] / EVGEN / AliGenPythia.h
CommitLineData
a0134e39 1#ifndef ALIGENPYTHIA_H
2#define ALIGENPYTHIA_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
f87cfe57 8
fff02fee 9#include "AliGenMC.h"
f1a48a38 10#include "AliPythia.h"
f87cfe57 11
12class AliPythia;
13class TParticle;
fe4da5cc 14
fff02fee 15class AliGenPythia : public AliGenMC
fe4da5cc 16{
fe4da5cc 17 public:
18 AliGenPythia();
19 AliGenPythia(Int_t npart);
f87cfe57 20 AliGenPythia(const AliGenPythia &Pythia);
fe4da5cc 21 virtual ~AliGenPythia();
22 virtual void Generate();
23 virtual void Init();
11dfaf8d 24 virtual void SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1);
fe4da5cc 25 // select process type
f1a48a38 26 virtual void SetProcess(Process_t proc = kPyCharm) {fProcess = proc;}
fe4da5cc 27 // select structure function
f1a48a38 28 virtual void SetStrucFunc(StrucFunc_t func = kGRV_HO) {fStrucFunc = func;}
fe4da5cc 29 // select pt of hard scattering
f1a48a38 30 virtual void SetPtHard(Float_t ptmin = 0, Float_t ptmax = 1.e10)
31 {fPtHardMin = ptmin; fPtHardMax = ptmax; }
fe4da5cc 32 // set centre of mass energy
f1a48a38 33 virtual void SetEnergyCMS(Float_t energy = 5500) {fEnergyCMS = energy;}
811826d8 34 // treat protons as inside nuclei
35 virtual void SetNuclei(Int_t a1, Int_t a2);
fe4da5cc 36 // get cross section of process
11dfaf8d 37 virtual Float_t GetXsection() {return fXsection;}
9faa0850 38 virtual void FinishRun();
39
f87cfe57 40 // Assignment Operator
41 AliGenPythia & operator=(const AliGenPythia & rhs);
fff02fee 42 private:
43 Int_t GenerateMB();
44 virtual void MakeHeader();
a0134e39 45 protected:
fff02fee 46 TClonesArray* fParticles; // Particle List
47
a0134e39 48 Process_t fProcess; // Process type
49 StrucFunc_t fStrucFunc; // Structure Function
a0134e39 50 Float_t fEnergyCMS; // Centre of mass energy
51 Float_t fKineBias; // Bias from kinematic selection
52 Int_t fTrials; // Number of trials
fff02fee 53 Int_t fFlavorSelect; // Heavy Flavor Selection
a0134e39 54 Float_t fXsection; // Cross-section
a8a6107b 55 AliPythia *fPythia; //! Pythia
a0134e39 56 Float_t fPtHardMin; // lower pT-hard cut
57 Float_t fPtHardMax; // higher pT-hard cut
811826d8 58 Int_t fNucA1; // mass number nucleus side 1
59 Int_t fNucA2; // mass number nucleus side 2
f1a48a38 60 Bool_t fFullEvent; // Write Full event if true
fff02fee 61 AliDecayer *fDecayer; //! Pointer to the decayer instance
11dfaf8d 62 Int_t fDebugEventFirst; // First event to debug
63 Int_t fDebugEventLast; // Last event to debug
a0134e39 64 private:
a0134e39 65 // adjust the weight from kinematic cuts
66 void AdjustWeights();
67
f87cfe57 68 ClassDef(AliGenPythia,1) // AliGenerator interface to Pythia
fe4da5cc 69};
70#endif
71
72
73
74
75