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 "GenTypeDefs.h"
18 class AliGenHijing : public AliGenerator
20 enum {kNoTrigger, kHardProcesses, kDirectPhotons};
24 AliGenHijing(Int_t npart);
25 AliGenHijing(const AliGenHijing &Hijing);
26 virtual ~AliGenHijing();
27 virtual void Generate();
29 // set centre of mass energy
30 virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
31 virtual void SetReferenceFrame(TString frame="CMS")
33 virtual void SetProjectile(TString proj="A",
34 Int_t a=208, Int_t z=82)
38 virtual void SetTarget(TString tar="A",
39 Int_t a=208, Int_t z=82)
43 virtual void SetImpactParameterRange(Float_t bmin = 0, Float_t bmax =15.)
44 { fMinImpactParam=bmin;
47 virtual void KeepFullEvent();
48 virtual void SetJetQuenching(Int_t flag=1) {fQuench = flag;}
49 virtual void SetShadowing(Int_t flag=1) {fShadowing = flag;}
50 virtual void SetDecaysOff(Int_t flag=1) {fDecaysOff = flag;}
51 virtual void SetTrigger(Int_t flag=kNoTrigger) {fTrigger = flag;}
52 virtual void SetFlavor(Int_t flag=0) {fFlavor = flag;}
53 virtual void SetEvaluate(Int_t flag=0) {fEvaluate = flag;}
54 virtual void SetSelectAll(Int_t flag=0) {fSelectAll = flag;}
55 virtual void SetSpectators(Int_t spects=1) {fSpectators = spects;}
56 AliGenHijing & operator=(const AliGenHijing & rhs);
58 virtual void EvaluateCrossSections();
60 Bool_t SelectFlavor(Int_t pid);
64 TString fFrame; // Reference frame
65 TString fProjectile; // Projectile
66 TString fTarget; // Target
67 Int_t fAProjectile; // Projectile A
68 Int_t fZProjectile; // Projectile Z
69 Int_t fATarget; // Target A
70 Int_t fZTarget; // Target Z
71 Float_t fMinImpactParam; // minimum impact parameter
72 Float_t fMaxImpactParam; // maximum impact parameter
73 Int_t fKeep; // Flag to keep full event information
74 Int_t fQuench; // Flag to switch on jet quenching
75 Int_t fShadowing; // Flag to switch on voclear effects on parton distribution function
76 Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
77 Int_t fTrigger; // Trigger type
78 Int_t fEvaluate; // Evaluate total and partial cross-sections
79 Int_t fSelectAll; // Flag to write the full event
80 Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty
81 Decay_t fForceDecay; // Decay channel are forced
82 Float_t fEnergyCMS; // Centre of mass energy
83 Float_t fKineBias; // Bias from kinematic selection
84 Int_t fTrials; // Number of trials
85 TArrayI fParentSelect; // Parent particles to be selected
86 TArrayI fChildSelect; // Decay products to be selected
87 Float_t fXsection; // Cross-section
88 THijing *fHijing; // Hijing
89 Float_t fPtHardMin; // lower pT-hard cut
90 Float_t fPtHardMax; // higher pT-hard cut
91 Int_t fSpectators; // put spectators on stack
94 // check if particle is selected as parent particle
95 Bool_t ParentSelected(Int_t ip);
96 // check if particle is selected as child particle
97 Bool_t ChildSelected(Int_t ip);
98 // all kinematic selection cuts go here
99 Bool_t KinematicSelection(TParticle *particle);
100 // adjust the weight from kinematic cuts
101 void AdjustWeights();
102 // check seleted daughters
103 Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
105 Bool_t Stable(TParticle* particle);
107 ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing