3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 #include "AliGenerator.h"
10 #include "AliDecayer.h"
11 #include "GenTypeDefs.h"
17 class AliGenPythia : public AliGenerator
21 AliGenPythia(Int_t npart);
22 AliGenPythia(const AliGenPythia &Pythia);
23 virtual ~AliGenPythia();
24 virtual void Generate();
26 // select process type
27 virtual void SetProcess(Process_t proc=charm) {fProcess=proc;}
28 // select structure function
29 virtual void SetStrucFunc(StrucFunc_t func=GRV_HO) {fStrucFunc=func;}
30 // select pt of hard scattering
31 virtual void SetPtHard(Float_t ptmin=0, Float_t ptmax=1.e10)
32 {fPtHardMin=ptmin; fPtHardMax=ptmax; }
33 // set centre of mass energy
34 virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
36 virtual void SetForceDecay(Decay_t decay=semimuonic) {fForceDecay=decay;}
37 // get cross section of process
38 virtual Float_t GetXsection() {return fXsection;}
40 virtual Int_t CheckPDGCode(Int_t pdgcode);
41 // Assignment Operator
42 AliGenPythia & operator=(const AliGenPythia & rhs);
44 Process_t fProcess; // Process type
45 StrucFunc_t fStrucFunc; // Structure Function
46 Decay_t fForceDecay; // Decay channel are forced
47 Float_t fEnergyCMS; // Centre of mass energy
48 Float_t fKineBias; // Bias from kinematic selection
49 Int_t fTrials; // Number of trials
50 TArrayI fParentSelect; // Parent particles to be selected
51 TArrayI fChildSelect; // Decay products to be selected
52 Float_t fXsection; // Cross-section
53 AliPythia *fPythia; // Pythia
54 Float_t fPtHardMin; // lower pT-hard cut
55 Float_t fPtHardMax; // higher pT-hard cut
58 // check if particle is selected as parent particle
59 Bool_t ParentSelected(Int_t ip);
60 // check if particle is selected as child particle
61 Bool_t ChildSelected(Int_t ip);
62 // all kinematic selection cuts go here
63 Bool_t KinematicSelection(TParticle *particle);
64 // adjust the weight from kinematic cuts
67 ClassDef(AliGenPythia,1) // AliGenerator interface to Pythia