3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 // Generator using HIJING as an external generator
9 // The main HIJING options are accessable for the user through this interface.
10 // andreas.morsch@cern.ch
12 #include "AliGenerator.h"
13 #include "GenTypeDefs.h"
22 class AliGenHijing : public AliGenerator
24 enum {kNoTrigger, kHardProcesses, kDirectPhotons};
28 AliGenHijing(Int_t npart);
29 AliGenHijing(const AliGenHijing &Hijing);
30 virtual ~AliGenHijing();
31 virtual void Generate();
33 // set centre of mass energy
34 virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;}
35 virtual void SetReferenceFrame(TString frame="CMS")
37 virtual void SetProjectile(TString proj="A",
38 Int_t a=208, Int_t z=82)
42 virtual void SetTarget(TString tar="A",
43 Int_t a=208, Int_t z=82)
47 virtual void SetImpactParameterRange(Float_t bmin = 0, Float_t bmax =15.)
48 { fMinImpactParam=bmin;
51 virtual void KeepFullEvent();
52 virtual void SetJetQuenching(Int_t flag=1) {fQuench = flag;}
53 virtual void SetShadowing(Int_t flag=1) {fShadowing = flag;}
54 virtual void SetDecaysOff(Int_t flag=1) {fDecaysOff = flag;}
55 virtual void SetTrigger(Int_t flag=kNoTrigger) {fTrigger = flag;}
56 virtual void SetFlavor(Int_t flag=0) {fFlavor = flag;}
57 virtual void SetEvaluate(Int_t flag=0) {fEvaluate = flag;}
58 virtual void SetSelectAll(Int_t flag=0) {fSelectAll = flag;}
59 virtual void SetSpectators(Int_t spects=1) {fSpectators = spects;}
60 AliGenHijing & operator=(const AliGenHijing & rhs);
62 virtual void EvaluateCrossSections();
64 Bool_t SelectFlavor(Int_t pid);
68 TString fFrame; // Reference frame
69 TString fProjectile; // Projectile
70 TString fTarget; // Target
71 Int_t fAProjectile; // Projectile A
72 Int_t fZProjectile; // Projectile Z
73 Int_t fATarget; // Target A
74 Int_t fZTarget; // Target Z
75 Float_t fMinImpactParam; // minimum impact parameter
76 Float_t fMaxImpactParam; // maximum impact parameter
77 Int_t fKeep; // Flag to keep full event information
78 Int_t fQuench; // Flag to switch on jet quenching
79 Int_t fShadowing; // Flag to switch on voclear effects on parton distribution function
80 Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
81 Int_t fTrigger; // Trigger type
82 Int_t fEvaluate; // Evaluate total and partial cross-sections
83 Int_t fSelectAll; // Flag to write the full event
84 Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty
85 Decay_t fForceDecay; // Decay channel are forced
86 Float_t fEnergyCMS; // Centre of mass energy
87 Float_t fKineBias; // Bias from kinematic selection
88 Int_t fTrials; // Number of trials
89 TArrayI fParentSelect; // Parent particles to be selected
90 TArrayI fChildSelect; // Decay products to be selected
91 Float_t fXsection; // Cross-section
92 THijing *fHijing; // Hijing
93 Float_t fPtHardMin; // lower pT-hard cut
94 Float_t fPtHardMax; // higher pT-hard cut
95 Int_t fSpectators; // put spectators on stack
98 // check if particle is selected as parent particle
99 Bool_t ParentSelected(Int_t ip);
100 // check if particle is selected as child particle
101 Bool_t ChildSelected(Int_t ip);
102 // all kinematic selection cuts go here
103 Bool_t KinematicSelection(TParticle *particle);
104 // adjust the weight from kinematic cuts
105 void AdjustWeights();
106 // check seleted daughters
107 Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
109 Bool_t Stable(TParticle* particle);
111 ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing