3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 /////////////////////////////////////////////////////////
9 // Manager and hits classes for set:MUON version 0 //
10 /////////////////////////////////////////////////////////
11 #include "AliGenerator.h"
16 #include "AliPythia.h"
18 #include "TParticle.h"
20 class AliGenPythia : public AliGenerator
24 StrucFunc_t fStrucFunc;
29 TArrayI fParentSelect;
37 // check if particle is selected as parent particle
38 Bool_t ParentSelected(Int_t ip);
39 // check if particle is selected as child particle
40 Bool_t ChildSelected(Int_t ip);
41 // all kinematic selection cuts go here
42 Bool_t KinematicSelection(TParticle *particle);
43 // adjust the weight from kinematic cuts
47 AliGenPythia(Int_t npart);
48 virtual ~AliGenPythia();
49 virtual void Generate();
51 // select process type
52 virtual void SetProcess(Process_t proc=charm) {fProcess=proc;}
53 // select structure function
54 virtual void SetStrucFunc(StrucFunc_t func=GRV_HO) {fStrucFunc=func;}
55 // select pt of hard scattering
56 virtual void SetPtHard(Float_t ptmin=0, Float_t ptmax=1.e10)
57 {fPtHardMin=ptmin; fPtHardMax=ptmax; }
58 // set centre of mass energy
59 virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
61 virtual void SetForceDecay(Decay_t decay=semimuonic) {fForceDecay=decay;}
62 // get cross section of process
63 virtual Float_t GetXsection() {return fXsection;}
65 virtual Int_t CheckPDGCode(Int_t pdgcode);
67 ClassDef(AliGenPythia,1)