]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | |
11 | ||
12 | #include "AliGenMC.h" | |
13 | #include "AliGenHijingEventHeader.h" | |
14 | #include <TString.h> | |
15 | ||
16 | class THijing; | |
17 | class TParticle; | |
18 | class TClonesArray; | |
19 | class TGraph; | |
20 | ||
21 | ||
22 | class AliGenHijing : public AliGenMC | |
23 | { | |
24 | enum {kNoTrigger, kHardProcesses, kDirectPhotons}; | |
25 | ||
26 | public: | |
27 | AliGenHijing(); | |
28 | AliGenHijing(Int_t npart); | |
29 | virtual ~AliGenHijing(); | |
30 | virtual void Generate(); | |
31 | virtual void Init(); | |
32 | virtual void SetSeed(UInt_t seed); | |
33 | // set centre of mass energy | |
34 | virtual void SetEnergyCMS(Float_t energy=5500) {fEnergyCMS=energy;} | |
35 | virtual void SetReferenceFrame(TString frame="CMS") | |
36 | {fFrame=frame;} | |
37 | ||
38 | virtual void SetImpactParameterRange(Float_t bmin = 0, Float_t bmax = 15.) | |
39 | {fMinImpactParam=bmin; fMaxImpactParam=bmax;} | |
40 | virtual void KeepFullEvent(); | |
41 | virtual void SetJetQuenching(Int_t flag=1) {fQuench = flag;} | |
42 | virtual void SetShadowing(Int_t flag=1) {fShadowing = flag;} | |
43 | virtual void SetDecaysOff(Int_t flag=1) {fDecaysOff = flag;} | |
44 | virtual void SetTrigger(Int_t flag=kNoTrigger) {fTrigger = flag;} | |
45 | virtual void SetFlavor(Int_t flag=0) {fFlavor = flag;} | |
46 | virtual void SetEvaluate(Int_t flag=0) {fEvaluate = flag;} | |
47 | virtual void SetSelectAll(Int_t flag=0) {fSelectAll = flag;} | |
48 | virtual void SetRadiation(Int_t flag=3) {fRadiation = flag;} | |
49 | virtual void SetSpectators(Int_t spects=1) {fSpectators = spects;} | |
50 | virtual void SetPtHardMin(Float_t ptmin) {fPtHardMin = ptmin;} | |
51 | virtual void SetPtHardMax(Float_t ptmax) {fPtHardMax = ptmax;} | |
52 | virtual void SetPtJet(Float_t ptmin) {fPtMinJet = ptmin;} | |
53 | virtual void SetSimpleJets(Int_t flag=0) {fSimpleJet = flag;} | |
54 | virtual void SetNoGammas(Int_t flag=0) {fNoGammas = flag;} | |
55 | ||
56 | virtual void SetJetEtaRange(Float_t etamin = -20., Float_t etamax = 20.) | |
57 | {fEtaMinJet = etamin; fEtaMaxJet = etamax;} | |
58 | virtual void SetJetPhiRange(Float_t phimin = -180., Float_t phimax = 180.) | |
59 | {fPhiMinJet = TMath::Pi()*phimin/180.; fPhiMaxJet = TMath::Pi()*phimax/180.;} | |
60 | virtual void SetBoostLHC(Int_t flag = 0) {fLHC = flag;} | |
61 | virtual void SetRandomPz(Bool_t flag = 0) {fRandomPz = flag;} | |
62 | virtual void SwitchOffHeavyQuarks(Bool_t flag = kTRUE) {fNoHeavyQuarks = flag;} | |
63 | virtual void SetSigmaNN(Float_t val) {fSigmaNN = val;} | |
64 | virtual void SetNoElas(Bool_t b) {fNoElas = b; } | |
65 | ||
66 | // Getters | |
67 | virtual TString GetReferenceFrame() const {return fFrame;} | |
68 | virtual void GetImpactParameterRange(Float_t& bmin, Float_t& bmax) const | |
69 | {bmin = fMinImpactParam; bmax = fMaxImpactParam;} | |
70 | virtual Int_t GetJetQuenching() const {return fQuench;} | |
71 | virtual Int_t GetShadowing() const {return fShadowing;} | |
72 | virtual Int_t GetTrigger() const {return fTrigger;} | |
73 | virtual Int_t GetFlavor() const {return fFlavor;} | |
74 | virtual Int_t GetRadiation() const {return fRadiation;} | |
75 | virtual Int_t GetSpectators() const {return fSpectators;} | |
76 | virtual Float_t GetPtHardMin() const {return fPtHardMin;} | |
77 | virtual Float_t GetPtHardMax() const {return fPtHardMax;} | |
78 | virtual Float_t GetPtJet() const {return fPtMinJet;} | |
79 | virtual void GetJetEtaRange(Float_t& etamin, Float_t& etamax) const | |
80 | {etamin = fEtaMinJet; etamax = fEtaMaxJet;} | |
81 | virtual void GetJetPhiRange(Float_t& phimin, Float_t& phimax) const | |
82 | {phimin = fPhiMinJet*180./TMath::Pi(); phimax = fPhiMaxJet*180./TMath::Pi();} | |
83 | THijing *GetTHijing() const {return fHijing;} | |
84 | virtual Float_t GetSigmaNN() const {return fSigmaNN;} | |
85 | ||
86 | // Physics Routines | |
87 | virtual Bool_t ProvidesCollisionGeometry() const {return kTRUE;} | |
88 | virtual void EvaluateCrossSections(); | |
89 | virtual TGraph* CrossSection() {return fDsigmaDb;} | |
90 | virtual TGraph* BinaryCollisions() {return fDnDb;} | |
91 | virtual Bool_t CheckTrigger(); | |
92 | // | |
93 | protected: | |
94 | Bool_t SelectFlavor(Int_t pid); | |
95 | void MakeHeader(); | |
96 | protected: | |
97 | TString fFrame; // Reference frame | |
98 | Float_t fMinImpactParam; // minimum impact parameter | |
99 | Float_t fMaxImpactParam; // maximum impact parameter | |
100 | Int_t fKeep; // Flag to keep full event information | |
101 | Int_t fQuench; // Flag to switch on jet quenching | |
102 | Int_t fShadowing; // Flag to switch on nuclear effects on parton distribution function | |
103 | Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma | |
104 | Int_t fTrigger; // Trigger type | |
105 | Int_t fEvaluate; // Evaluate total and partial cross-sections | |
106 | Int_t fSelectAll; // Flag to write the full event | |
107 | Int_t fFlavor; // Selected particle flavor 4: charm+beauty 5: beauty | |
108 | Float_t fKineBias; // Bias from kinematic selection | |
109 | Int_t fTrials; // Number of trials | |
110 | Float_t fXsection; // Cross-section | |
111 | THijing *fHijing; //!Hijing | |
112 | Float_t fPtHardMin; // lower pT-hard cut | |
113 | Float_t fPtHardMax; // higher pT-hard cut | |
114 | Int_t fSpectators; // put spectators on stack | |
115 | TGraph* fDsigmaDb; // dSigma/db for the system | |
116 | TGraph* fDnDb; // dNBinaryCollisions/db | |
117 | Float_t fPtMinJet; // Minimum Pt of triggered Jet | |
118 | Float_t fEtaMinJet; // Minimum eta of triggered Jet | |
119 | Float_t fEtaMaxJet; // Maximum eta of triggered Jet | |
120 | Float_t fPhiMinJet; // At least one of triggered Jets must be in this | |
121 | Float_t fPhiMaxJet; // phi range | |
122 | Int_t fRadiation; // Flag to switch on/off initial and final state radiation | |
123 | Int_t fSimpleJet; // Flag to produce simple tiggered jet topology | |
124 | Int_t fNoGammas; // Don't write gammas if flag "on" | |
125 | // ZDC proposal (by Chiara) to store num. of SPECTATORS protons and neutrons | |
126 | Int_t fProjectileSpecn;// Num. of spectator neutrons from projectile nucleus | |
127 | Int_t fProjectileSpecp;// Num. of spectator protons from projectile nucleus | |
128 | Int_t fTargetSpecn; // Num. of spectator neutrons from target nucleus | |
129 | Int_t fTargetSpecp; // Num. of spectator protons from target nucleus | |
130 | Int_t fLHC; // Assume LHC as lab frame | |
131 | Bool_t fRandomPz; // Randomise sign of pz event by event | |
132 | Bool_t fNoHeavyQuarks; // If true no heavy quarks are produced | |
133 | AliGenHijingEventHeader fHeader; // MC Header | |
134 | Float_t fSigmaNN; // If not -1 set sigmaNN (HIPR1) | |
135 | Bool_t fNoElas; // If true switch off elastic scattering | |
136 | ||
137 | private: | |
138 | AliGenHijing(const AliGenHijing &Hijing); | |
139 | AliGenHijing & operator=(const AliGenHijing & rhs); | |
140 | ||
141 | // adjust the weight from kinematic cuts | |
142 | void AdjustWeights(); | |
143 | // check seleted daughters | |
144 | Bool_t DaughtersSelection(const TParticle* iparticle); | |
145 | // check if stable | |
146 | Bool_t Stable(const TParticle* particle) const; | |
147 | ||
148 | ClassDef(AliGenHijing, 9) // AliGenerator interface to Hijing | |
149 | }; | |
150 | #endif |