]>
Commit | Line | Data |
---|---|---|
110410f9 | 1 | #ifndef ALIGENHIJING_H |
2 | #define ALIGENHIJING_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
675e9664 | 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 | |
110410f9 | 11 | |
55d6adcf | 12 | #include "AliGenMC.h" |
3b8bd63f | 13 | #include <TString.h> |
110410f9 | 14 | #include <TArrayI.h> |
15 | ||
65fb704d | 16 | class THijing; |
110410f9 | 17 | class TArrayI; |
18 | class TParticle; | |
b23a502f | 19 | class TClonesArray; |
21ce2e6f | 20 | class TGraph; |
110410f9 | 21 | |
55d6adcf | 22 | class AliGenHijing : public AliGenMC |
110410f9 | 23 | { |
24 | enum {kNoTrigger, kHardProcesses, kDirectPhotons}; | |
25 | ||
26 | public: | |
27 | AliGenHijing(); | |
28 | AliGenHijing(Int_t npart); | |
29 | AliGenHijing(const AliGenHijing &Hijing); | |
30 | virtual ~AliGenHijing(); | |
31 | virtual void Generate(); | |
32 | virtual void Init(); | |
33 | // set centre of mass energy | |
34 | virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;} | |
59d7832e | 35 | virtual void SetReferenceFrame(TString frame="CMS") |
3b8bd63f | 36 | {fFrame=frame;} |
59d7832e | 37 | virtual void SetProjectile(TString proj="A", |
3b8bd63f | 38 | Int_t a=208, Int_t z=82) |
110410f9 | 39 | {fProjectile = proj; |
40 | fAProjectile = a; | |
41 | fZProjectile = z;} | |
59d7832e | 42 | virtual void SetTarget(TString tar="A", |
3b8bd63f | 43 | Int_t a=208, Int_t z=82) |
110410f9 | 44 | {fTarget = tar; |
45 | fATarget = a; | |
46 | fZTarget =z;} | |
47 | virtual void SetImpactParameterRange(Float_t bmin = 0, Float_t bmax =15.) | |
48 | { fMinImpactParam=bmin; | |
49 | fMaxImpactParam=bmax; | |
50 | } | |
51 | virtual void KeepFullEvent(); | |
ed6361b0 | 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;} | |
332c8db0 | 59 | virtual void SetRadiation(Int_t flag=3) {fRadiation = flag;} |
2705454f | 60 | virtual void SetSpectators(Int_t spects=1) {fSpectators = spects;} |
ed6361b0 | 61 | virtual void SetPtMinJet(Float_t ptmin) {fPtMinJet = ptmin;} |
cc71f2d3 | 62 | virtual void SetBoostLHC(Int_t flag=0) {fLHC = flag;} |
63 | ||
64 | ||
eb342d2d | 65 | AliGenHijing & operator=(const AliGenHijing & rhs); |
110410f9 | 66 | // Physics Routines |
67 | virtual void EvaluateCrossSections(); | |
cc71f2d3 | 68 | virtual void Boost(TClonesArray* particles); |
21ce2e6f | 69 | virtual TGraph* CrossSection() {return fDsigmaDb;} |
70 | virtual TGraph* BinaryCollisions() {return fDnDb;} | |
eb342d2d | 71 | protected: |
72 | Bool_t SelectFlavor(Int_t pid); | |
3b8bd63f | 73 | void MakeHeader(); |
74 | ||
110410f9 | 75 | protected: |
3b8bd63f | 76 | TString fFrame; // Reference frame |
77 | TString fProjectile; // Projectile | |
78 | TString fTarget; // Target | |
79 | Int_t fAProjectile; // Projectile A | |
80 | Int_t fZProjectile; // Projectile Z | |
81 | Int_t fATarget; // Target A | |
82 | Int_t fZTarget; // Target Z | |
110410f9 | 83 | Float_t fMinImpactParam; // minimum impact parameter |
84 | Float_t fMaxImpactParam; // maximum impact parameter | |
3b8bd63f | 85 | Int_t fKeep; // Flag to keep full event information |
86 | Int_t fQuench; // Flag to switch on jet quenching | |
87 | Int_t fShadowing; // Flag to switch on voclear effects on parton distribution function | |
88 | Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma | |
89 | Int_t fTrigger; // Trigger type | |
90 | Int_t fEvaluate; // Evaluate total and partial cross-sections | |
91 | Int_t fSelectAll; // Flag to write the full event | |
92 | Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty | |
3b8bd63f | 93 | Float_t fEnergyCMS; // Centre of mass energy |
94 | Float_t fKineBias; // Bias from kinematic selection | |
95 | Int_t fTrials; // Number of trials | |
96 | TArrayI fParentSelect; // Parent particles to be selected | |
97 | TArrayI fChildSelect; // Decay products to be selected | |
98 | Float_t fXsection; // Cross-section | |
99 | THijing *fHijing; // Hijing | |
100 | Float_t fPtHardMin; // lower pT-hard cut | |
101 | Float_t fPtHardMax; // higher pT-hard cut | |
2705454f | 102 | Int_t fSpectators; // put spectators on stack |
21ce2e6f | 103 | TGraph* fDsigmaDb; // dSigma/db for the system |
ed6361b0 | 104 | TGraph* fDnDb; // dNBinaryCollisions/db |
332c8db0 | 105 | Float_t fPtMinJet; // Minimum Pt of triggered Jet |
106 | Int_t fRadiation; // Flag to switch on/off initial and final state radiation | |
107 | ||
b46f2676 | 108 | // ZDC proposal (by Chiara) to store num. of SPECTATORS protons and neutrons |
109 | Int_t fSpecn; // Num. of spectator neutrons | |
110 | Int_t fSpecp; // Num. of spectator protons | |
cc71f2d3 | 111 | Int_t fLHC; // Assume LHC as lab frame |
112 | ||
110410f9 | 113 | private: |
110410f9 | 114 | // adjust the weight from kinematic cuts |
115 | void AdjustWeights(); | |
116 | // check seleted daughters | |
117 | Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles); | |
608708ba | 118 | // check if stable |
119 | Bool_t Stable(TParticle* particle); | |
120 | ||
110410f9 | 121 | ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing |
122 | }; | |
123 | #endif | |
124 | ||
125 | ||
126 | ||
127 | ||
128 |