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