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