]>
Commit | Line | Data |
---|---|---|
8d2cd130 | 1 | #ifndef ALIGENPYTHIA_H |
2 | #define ALIGENPYTHIA_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
cf57b268 | 6 | |
8d2cd130 | 7 | /* $Id$ */ |
8 | ||
9 | // | |
10 | // Generator using the TPythia interface (via AliPythia) | |
11 | // to generate pp collisions. | |
12 | // Using SetNuclei() also nuclear modifications to the structure functions | |
13 | // can be taken into account. This makes, of course, only sense for the | |
14 | // generation of the products of hard processes (heavy flavor, jets ...) | |
15 | // | |
16 | // andreas.morsch@cern.ch | |
17 | // | |
18 | ||
19 | #include "AliGenMC.h" | |
20 | #include "AliPythia.h" | |
21 | ||
22 | class AliPythia; | |
23 | class TParticle; | |
e5c87a3d | 24 | class AliGenPythiaEventHeader; |
cf57b268 | 25 | class AliGenEventHeader; |
32d6ef7d | 26 | class AliStack; |
5fa4b20b | 27 | class AliRunLoader; |
1058d9df | 28 | class TObjArray; |
5fa4b20b | 29 | |
8d2cd130 | 30 | class AliGenPythia : public AliGenMC |
31 | { | |
32 | public: | |
33 | ||
06956108 | 34 | typedef enum {kFlavorSelection, kParentSelection, kHeavyFlavor} StackFillOpt_t; |
8d2cd130 | 35 | typedef enum {kCountAll, kCountParents, kCountTrackables} CountMode_t; |
36 | typedef enum {kCluster, kCell} JetRecMode_t; | |
37 | ||
38 | AliGenPythia(); | |
39 | AliGenPythia(Int_t npart); | |
8d2cd130 | 40 | virtual ~AliGenPythia(); |
41 | virtual void Generate(); | |
42 | virtual void Init(); | |
90a236ce | 43 | // Range of events to be printed |
8d2cd130 | 44 | virtual void SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1); |
90a236ce | 45 | // Select process type |
8d2cd130 | 46 | virtual void SetProcess(Process_t proc = kPyCharm) {fProcess = proc;} |
f6a15f5c | 47 | virtual void SetTune(Int_t itune) {fItune = itune;} |
20e47f08 | 48 | |
90a236ce | 49 | // Select structure function |
fa49ba58 | 50 | virtual void SetStrucFunc(StrucFunc_t func = kCTEQ5L) {fStrucFunc = func;} |
1cdfb96f | 51 | // Rewieght pt, hard spectrum with pT/p0^n, set power n |
52 | virtual void SetWeightPower(Float_t power = 0.) { fWeightPower = power; } | |
90a236ce | 53 | // Select pt of hard scattering |
8d2cd130 | 54 | virtual void SetPtHard(Float_t ptmin = 0, Float_t ptmax = 1.e10) |
55 | {fPtHardMin = ptmin; fPtHardMax = ptmax; } | |
90a236ce | 56 | // y of hard scattering |
8d2cd130 | 57 | virtual void SetYHard(Float_t ymin = -1.e10, Float_t ymax = 1.e10) |
58 | {fYHardMin = ymin; fYHardMax = ymax; } | |
59 | // Set initial and final state gluon radiation | |
60 | virtual void SetGluonRadiation(Int_t iIn, Int_t iFin) | |
61 | {fGinit = iIn; fGfinal = iFin;} | |
036662e5 | 62 | virtual void SetColorReconnectionOff(Int_t iflag=0){fCRoff=iflag;} |
63 | // Intrinsic kT | |
8d2cd130 | 64 | virtual void SetPtKick(Float_t kt = 1.) |
65 | {fPtKick = kt;} | |
beac474c | 66 | // Use the Pythia 6.3 new multiple interations scenario |
67 | virtual void UseNewMultipleInteractionsScenario() {fNewMIS = kTRUE;} | |
68 | // Switch off heavy flavors | |
69 | virtual void SwitchHFOff() {fHFoff = kTRUE;} | |
90a236ce | 70 | // Set centre of mass energy |
8d2cd130 | 71 | virtual void SetEnergyCMS(Float_t energy = 5500) {fEnergyCMS = energy;} |
90a236ce | 72 | // Treat protons as inside nuclei with mass numbers a1 and a2 |
20e47f08 | 73 | virtual void SetNuclei(Int_t a1, Int_t a2, Int_t pdfset = 0); |
e28ccdaf | 74 | // Set colliding nuclei ("p","n",...) |
75 | virtual void SetCollisionSystem(TString projectile, TString target) { fProjectile = projectile; fTarget = target; } | |
66f02a7f | 76 | virtual void SetNuclearPDF(Int_t pdf) {fNucPdf = pdf;} |
fb355e51 | 77 | virtual void SetUseNuclearPDF(Bool_t val) {fUseNuclearPDF = val;} |
78 | virtual void SetUseLorentzBoost(Bool_t val) {fUseLorentzBoost = val;} | |
90a236ce | 79 | // |
80 | // Trigger options | |
81 | // | |
82 | // Energy range for jet trigger | |
8d2cd130 | 83 | virtual void SetJetEtRange(Float_t etmin = 0., Float_t etmax = 1.e4) |
84 | {fEtMinJet = etmin; fEtMaxJet = etmax;} | |
90a236ce | 85 | // Eta range for jet trigger |
8d2cd130 | 86 | virtual void SetJetEtaRange(Float_t etamin = -20., Float_t etamax = 20.) |
87 | {fEtaMinJet = etamin; fEtaMaxJet = etamax;} | |
90a236ce | 88 | // Phi range for jet trigger |
8d2cd130 | 89 | virtual void SetJetPhiRange(Float_t phimin = 0., Float_t phimax = 360.) |
90 | {fPhiMinJet = TMath::Pi()*phimin/180.; fPhiMaxJet = TMath::Pi()*phimax/180.;} | |
90a236ce | 91 | // Jet reconstruction mode; default is cone algorithm |
92 | virtual void SetJetReconstructionMode(Int_t mode = kCell) {fJetReconstruction = mode;} | |
93 | // Eta range for gamma trigger | |
8d2cd130 | 94 | virtual void SetGammaEtaRange(Float_t etamin = -20., Float_t etamax = 20.) |
95 | {fEtaMinGamma = etamin; fEtaMaxGamma = etamax;} | |
90a236ce | 96 | // Phi range for gamma trigger |
8d2cd130 | 97 | virtual void SetGammaPhiRange(Float_t phimin = 0., Float_t phimax = 360.) |
98 | {fPhiMinGamma = TMath::Pi()*phimin/180.; fPhiMaxGamma = TMath::Pi()*phimax/180.;} | |
d8850d4f | 99 | // Y range for heavy quark trigger |
100 | virtual void SetHeavyQuarkYRange(Float_t ymin=-20., Float_t ymax=20.){ | |
101 | fYMinHQ = ymin; fYMaxHQ=ymax; fUseYCutHQ=kTRUE; | |
102 | } | |
40fe59d4 | 103 | |
104 | // Select events with fragmentation photon, decay photon, pi0 or eta going to PHOS or EMCAL and central barrel | |
e81f2bac | 105 | virtual Bool_t TriggerOnSelectedParticles(Int_t np); |
40fe59d4 | 106 | |
107 | virtual void SetCheckPHOS (Bool_t b) {fCheckPHOS = b;} | |
108 | virtual void SetCheckEMCAL (Bool_t b) {fCheckEMCAL = b;} | |
109 | virtual void SetCheckBarrel (Bool_t b) {fCheckBarrel = b;} | |
110 | ||
111 | //virtual void SetElectronInEMCAL (Bool_t b) {fEleInEMCAL = b;} | |
112 | //virtual void SetPhotonInPHOS (Bool_t b) {fCheckPHOS = b; fPhotonInCalo = b;} // Not in use | |
700b9416 | 113 | |
40fe59d4 | 114 | virtual void SetFragPhotonInCalo (Bool_t b) { fFragPhotonInCalo = b;} |
115 | virtual void SetFragPhotonInBarrel(Bool_t b) {fCheckBarrel = b; fFragPhotonInCalo = b;} | |
116 | virtual void SetFragPhotonInEMCAL (Bool_t b) {fCheckEMCAL = b; fFragPhotonInCalo = b;} | |
117 | virtual void SetFragPhotonInPHOS (Bool_t b) {fCheckPHOS = b; fFragPhotonInCalo = b;} | |
118 | ||
119 | virtual void SetHadronInCalo (Bool_t b) { fHadronInCalo = b;} | |
120 | virtual void SetHadronInBarrel (Bool_t b) {fCheckBarrel = b; fHadronInCalo = b;} | |
121 | virtual void SetHadronInEMCAL (Bool_t b) {fCheckEMCAL = b; fHadronInCalo = b;} | |
122 | virtual void SetHadronInPHOS (Bool_t b) {fCheckPHOS = b; fHadronInCalo = b;} | |
123 | ||
124 | virtual void SetElectronInCalo (Bool_t b) { fEleInCalo = b;} | |
125 | virtual void SetElectronInBarrel (Bool_t b) {fCheckBarrel = b; fEleInCalo = b;} | |
126 | virtual void SetElectronInEMCAL (Bool_t b) {fCheckEMCAL = b; fEleInCalo = b;} | |
127 | virtual void SetElectronInPHOS (Bool_t b) {fCheckPHOS = b; fEleInCalo = b;} | |
128 | ||
129 | virtual void SetDecayPhotonInCalo (Bool_t d) {fDecayPhotonInCalo = d;} | |
130 | virtual void SetDecayPhotonInBarrel(Bool_t d) {fDecayPhotonInCalo = d; fCheckBarrel = d;} | |
131 | virtual void SetDecayPhotonInEMCAL(Bool_t d) {fDecayPhotonInCalo = d; fCheckEMCAL = d;} | |
132 | virtual void SetDecayPhotonInPHOS (Bool_t d) {fDecayPhotonInCalo = d; fCheckPHOS = d;} | |
133 | ||
134 | virtual void SetPi0InCalo (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fForceNeutralMeson2PhotonDecay = f;} | |
135 | virtual void SetPi0InBarrel (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckBarrel= b; } | |
136 | virtual void SetPi0InEMCAL (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckEMCAL = b; } | |
137 | virtual void SetPi0InPHOS (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckPHOS = b; } | |
138 | ||
139 | virtual void SetEtaInCalo (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fForceNeutralMeson2PhotonDecay = f;} | |
140 | virtual void SetEtaInBarrel (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckBarrel= b; } | |
141 | virtual void SetEtaInEMCAL (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckEMCAL = b; } | |
142 | virtual void SetEtaInPHOS (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckPHOS = b; } | |
143 | ||
144 | virtual void SetPi0PhotonDecayInBarrel(Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckBarrel = b; } | |
145 | virtual void SetPi0PhotonDecayInEMCAL (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckEMCAL = b; } | |
146 | virtual void SetPi0PhotonDecayInPHOS (Bool_t b, Bool_t f = kFALSE) {fPi0InCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckPHOS = b; } | |
147 | ||
148 | virtual void SetEtaPhotonDecayInBarrel(Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckBarrel = b; } | |
149 | virtual void SetEtaPhotonDecayInEMCAL (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckEMCAL = b; } | |
150 | virtual void SetEtaPhotonDecayInPHOS (Bool_t b, Bool_t f = kFALSE) {fEtaInCalo = b; fDecayPhotonInCalo = b; fForceNeutralMeson2PhotonDecay = f; fCheckPHOS = b; } | |
151 | ||
152 | ||
700b9416 | 153 | // Trigger on a minimum multiplicity |
38112f3f | 154 | virtual void SetTriggerChargedMultiplicity(Int_t multiplicity, Float_t etamax = 0, Float_t ptmin = -1.) |
155 | {fTriggerMultiplicity = multiplicity; fTriggerMultiplicityEta = etamax; | |
156 | fTriggerMultiplicityPtMin = ptmin;} | |
440c2873 | 157 | |
158 | // Trigger on a minimum multiplicity for a given eta range | |
159 | virtual void SetTriggerMultiplicityEtaRange(Int_t multiplicity, Float_t etamin = 0., Float_t etamax = 0., Float_t ptmin = -1.) | |
160 | {fTriggerMultiplicity = multiplicity; fTriggerMultiplicityEtaMin = etamin; fTriggerMultiplicityEtaMax = etamax; | |
161 | fTriggerMultiplicityPtMin = ptmin;} | |
162 | ||
43e3b80a | 163 | // Calorimeters acceptance |
164 | // Set Phi in degrees, and Eta coverage, should not be negative | |
40fe59d4 | 165 | virtual void SetBarrelAcceptance(Float_t deta) {fTriggerEta = deta ;} |
4b5ec27d | 166 | virtual void SetTriggerY(Float_t dy) {fTriggerY = dy;} |
40fe59d4 | 167 | virtual void SetEMCALAcceptance (Float_t phimin, Float_t phimax, Float_t deta) {fEMCALMinPhi = phimin ; fEMCALMaxPhi = phimax ; fEMCALEta = deta ; } |
168 | virtual void SetPHOSAcceptance (Float_t phimin, Float_t phimax, Float_t deta) {fPHOSMinPhi = phimin ; fPHOSMaxPhi = phimax ; fPHOSEta = deta ; } | |
169 | virtual void SetRotateParticleInPHOSeta(Bool_t b) {fCheckPHOSeta = b;} | |
170 | ||
43e3b80a | 171 | virtual void SetTriggerParticleMinPt(Float_t pt) {fTriggerParticleMinPt = pt;} |
40fe59d4 | 172 | // virtual void SetPhotonMinPt(Float_t pt) {fPhotonMinPt = pt;} |
173 | // virtual void SetElectronMinPt(Float_t pt) {fElectronMinPt = pt;} | |
90a236ce | 174 | // Trigger and rotate event |
40fe59d4 | 175 | void RotatePhi(Bool_t& okdd); |
176 | ||
177 | // Trigger on a single particle (not related to calorimeter trigger above) | |
2591bd0e | 178 | virtual void SetTriggerParticle(Int_t particle = 0, Float_t etamax = 0.9, Float_t ptmin = -1, Float_t ptmax = 1000) |
1f0caa6a | 179 | {fTriggerParticle = particle; fTriggerEta = etamax; fTriggerEtaMin = etamax; fTriggerMinPt = ptmin; fTriggerMaxPt = ptmax;} |
180 | virtual void SetTriggerParticle(Int_t particle, Float_t etamin, Float_t etamax, Float_t ptmin, Float_t ptmax) | |
181 | {fTriggerParticle = particle; fTriggerEtaMin = etamin, fTriggerEta = etamax; fTriggerMinPt = ptmin; fTriggerMaxPt = ptmax;} | |
2591bd0e | 182 | |
90a236ce | 183 | // |
184 | // Heavy flavor options | |
185 | // | |
8d2cd130 | 186 | // Set option for feed down from higher family |
187 | virtual void SetFeedDownHigherFamily(Bool_t opt) { | |
90a236ce | 188 | fFeedDownOpt = opt; |
8d2cd130 | 189 | } |
190 | // Set option for selecting particles kept in stack according to flavor | |
191 | // or to parent selection | |
192 | virtual void SetStackFillOpt(StackFillOpt_t opt) { | |
90a236ce | 193 | fStackFillOpt = opt; |
8d2cd130 | 194 | } |
195 | // Set fragmentation option | |
c125238c | 196 | virtual void SetFragmentation(Bool_t opt) { |
90a236ce | 197 | fFragmentation = opt; |
8d2cd130 | 198 | } |
199 | // Set counting mode | |
c125238c | 200 | virtual void SetCountMode(CountMode_t mode) { |
90a236ce | 201 | fCountMode = mode; |
8d2cd130 | 202 | } |
90a236ce | 203 | // |
204 | // Quenching | |
205 | // | |
cd07c39b | 206 | // Set quenching mode 0 = no, 1 = AM, 2 = IL, 3 = NA, 4 = ACS |
7ea3ea5b | 207 | virtual void SetQuench(Int_t flag = 0) {fQuench = flag;} |
cd07c39b | 208 | // Set transport coefficient. |
209 | void SetQhat(Float_t qhat) {fQhat = qhat;} | |
210 | //Set initial medium length. | |
211 | void SetLength(Float_t length) {fLength = length;} | |
66b8652c | 212 | //set parameters for pyquen afterburner |
213 | virtual void SetPyquenPar(Float_t t0=1., Float_t tau0=0.1, Int_t nf=0,Int_t iengl=0, Int_t iangl=3) | |
214 | {fpyquenT = t0; fpyquenTau = tau0; fpyquenNf=nf;fpyquenEloss=iengl;fpyquenAngle=iangl;} | |
5fa4b20b | 215 | virtual void SetHadronisation(Int_t flag = 1) {fHadronisation = flag;} |
03358a32 | 216 | virtual void SetPatchOmegaDalitz(Int_t flag = 1) {fPatchOmegaDalitz = flag;} |
d7d0c637 | 217 | virtual void SetDecayerExodus(Int_t flag = 1) {fDecayerExodus = flag;} |
777e69b0 | 218 | virtual void SetReadFromFile(const Text_t *filname) {fkFileName = filname; fReadFromFile = 1;} |
64da86aa | 219 | virtual void SetReadLHEF(const Text_t *filename) {fkNameLHEF = filename; fReadLHEF = 1;} |
90a236ce | 220 | |
221 | // | |
222 | // Pile-up | |
223 | // | |
224 | // Get interaction rate for pileup studies | |
9d7108a7 | 225 | virtual void SetInteractionRate(Float_t rate,Float_t timewindow = 90.e-6); |
226 | virtual Float_t GetInteractionRate() const {return fInteractionRate;} | |
8d2cd130 | 227 | // get cross section of process |
228 | virtual Float_t GetXsection() const {return fXsection;} | |
229 | // get triggered jets | |
7184e472 | 230 | void GetJets(Int_t& njets, Int_t& ntrig, Float_t jets[4][10]); |
014a9521 | 231 | void RecJetsUA1(Int_t& njets, Float_t jets[4][50]); |
592f8307 | 232 | void SetPycellParameters(Float_t etamax = 2., Int_t neta = 274, Int_t nphi = 432, |
233 | Float_t thresh = 0., Float_t etseed = 4., | |
234 | Float_t minet = 10., Float_t r = 1.); | |
235 | ||
1058d9df | 236 | void LoadEvent(AliStack* stack, Int_t flag = 0, Int_t reHadr = 0); |
c2fc9d31 | 237 | void LoadEvent(const TObjArray* stack, Int_t flag = 0, Int_t reHadr = 0); |
8d2cd130 | 238 | // Getters |
7184e472 | 239 | virtual Process_t GetProcess() const {return fProcess;} |
240 | virtual StrucFunc_t GetStrucFunc() const {return fStrucFunc;} | |
241 | virtual void GetPtHard(Float_t& ptmin, Float_t& ptmax) const | |
35346e8d | 242 | {ptmin = fPtHardMin; ptmax = fPtHardMax;} |
7184e472 | 243 | virtual void GetNuclei(Int_t& a1, Int_t& a2) const |
1a626d4e | 244 | {a1 = fAProjectile; a2 = fATarget;} |
7184e472 | 245 | virtual void GetJetEtRange(Float_t& etamin, Float_t& etamax) const |
8d2cd130 | 246 | {etamin = fEtaMinJet; etamax = fEtaMaxJet;} |
7184e472 | 247 | virtual void GetJetPhiRange(Float_t& phimin, Float_t& phimax) const |
8d2cd130 | 248 | {phimin = fPhiMinJet*180./TMath::Pi(); phimax = fPhiMaxJet*180/TMath::Pi();} |
7184e472 | 249 | virtual void GetGammaEtaRange(Float_t& etamin, Float_t& etamax) const |
8d2cd130 | 250 | {etamin = fEtaMinGamma; etamax = fEtaMaxGamma;} |
7184e472 | 251 | virtual void GetGammaPhiRange(Float_t& phimin, Float_t& phimax) const |
8d2cd130 | 252 | {phimin = fPhiMinGamma*180./TMath::Pi(); phimax = fPhiMaxGamma*180./TMath::Pi();} |
253 | // | |
e81f2bac | 254 | Bool_t CheckDetectorAcceptance(Float_t phi, Float_t eta, Int_t iparticle); |
255 | Bool_t IsInEMCAL (Float_t phi, Float_t eta) const; | |
256 | Bool_t IsInPHOS (Float_t phi, Float_t eta, Int_t iparticle) ; | |
257 | Bool_t IsInBarrel(Float_t eta) const; | |
06956108 | 258 | Bool_t IsFromHeavyFlavor(Int_t ipart); |
ec2c406e | 259 | // |
8d2cd130 | 260 | virtual void FinishRun(); |
c2fc9d31 | 261 | Bool_t CheckTrigger(const TParticle* jet1, const TParticle* jet2); |
0f6ee828 | 262 | //Used in some processes to selected child properties |
aea21c57 | 263 | Bool_t CheckKinematicsOnChild(); |
9d7108a7 | 264 | void GetSubEventTime(); |
dbd64db6 | 265 | |
800be8b7 | 266 | void SetTuneForDiff(Bool_t a=kTRUE) {fkTuneForDiff=a;} |
1cf66fc9 | 267 | AliDecayer * GetDecayer(){return fDecayer;} |
800be8b7 | 268 | |
8d2cd130 | 269 | protected: |
270 | // adjust the weight from kinematic cuts | |
7184e472 | 271 | void AdjustWeights() const; |
f913ec4f | 272 | Int_t GenerateMB(); |
273 | void MakeHeader(); | |
9d7108a7 | 274 | void GeneratePileup(); |
8d2cd130 | 275 | Process_t fProcess; //Process type |
efe3b1cd | 276 | Int_t fItune; // Pythia tune > 6.4 |
8d2cd130 | 277 | StrucFunc_t fStrucFunc; //Structure Function |
8d2cd130 | 278 | Float_t fKineBias; //!Bias from kinematic selection |
279 | Int_t fTrials; //!Number of trials for current event | |
280 | Int_t fTrialsRun; //!Number of trials for run | |
281 | Float_t fQ; //Mean Q | |
282 | Float_t fX1; //Mean x1 | |
283 | Float_t fX2; //Mean x2 | |
f913ec4f | 284 | Float_t fEventTime; //Time of the subevent |
285 | Float_t fInteractionRate; //Interaction rate (set by user) | |
9d7108a7 | 286 | Float_t fTimeWindow; //Time window for pileup events (set by user) |
287 | Int_t fCurSubEvent; //Index of the current sub-event | |
288 | TArrayF *fEventsTime; //Subevents time for pileup | |
8d2cd130 | 289 | Int_t fNev; //Number of events |
290 | Int_t fFlavorSelect; //Heavy Flavor Selection | |
291 | Float_t fXsection; //Cross-section | |
292 | AliPythia *fPythia; //!Pythia | |
1cdfb96f | 293 | Float_t fWeightPower; //power for cross section weights; 0 means no reweighting |
8d2cd130 | 294 | Float_t fPtHardMin; //lower pT-hard cut |
295 | Float_t fPtHardMax; //higher pT-hard cut | |
296 | Float_t fYHardMin; //lower y-hard cut | |
297 | Float_t fYHardMax; //higher y-hard cut | |
8d2cd130 | 298 | Int_t fGinit; //initial state gluon radiation |
299 | Int_t fGfinal; //final state gluon radiation | |
036662e5 | 300 | Int_t fCRoff; //color reconnection off in the pythia6 annealying model |
5fa4b20b | 301 | Int_t fHadronisation; //hadronisation |
03358a32 | 302 | Bool_t fPatchOmegaDalitz; //flag for omega dalitz decay patch |
d7d0c637 | 303 | Bool_t fDecayerExodus; //flag for exodus decayer |
5fa4b20b | 304 | Int_t fNpartons; //Number of partons before hadronisation |
305 | Int_t fReadFromFile; //read partons from file | |
64da86aa | 306 | Int_t fReadLHEF; //read lhef file |
7ea3ea5b | 307 | Int_t fQuench; //Flag for quenching |
cd07c39b | 308 | Float_t fQhat; //Transport coefficient (GeV^2/fm) |
309 | Float_t fLength; //Medium length (fm) | |
66b8652c | 310 | Float_t fpyquenT; //Pyquen initial temperature |
311 | Float_t fpyquenTau; //Pyquen initial proper time | |
312 | Int_t fpyquenNf; //Pyquen number of flavours into the game | |
313 | Int_t fpyquenEloss; //Pyquen type of energy loss | |
314 | Int_t fpyquenAngle; //Pyquen radiation angle for gluons | |
e6fe9b82 | 315 | Float_t fImpact; //Impact parameter for quenching simulation (q-pythia) |
8d2cd130 | 316 | Float_t fPtKick; //Transverse momentum kick |
317 | Bool_t fFullEvent; //!Write Full event if true | |
318 | AliDecayer *fDecayer; //!Pointer to the decayer instance | |
319 | Int_t fDebugEventFirst; //!First event to debug | |
320 | Int_t fDebugEventLast; //!Last event to debug | |
321 | Float_t fEtMinJet; //Minimum et of triggered Jet | |
322 | Float_t fEtMaxJet; //Maximum et of triggered Jet | |
323 | Float_t fEtaMinJet; //Minimum eta of triggered Jet | |
324 | Float_t fEtaMaxJet; //Maximum eta of triggered Jet | |
325 | Float_t fPhiMinJet; //Minimum phi of triggered Jet | |
326 | Float_t fPhiMaxJet; //Maximum phi of triggered Jet | |
327 | Int_t fJetReconstruction; //Jet Reconstruction mode | |
328 | Float_t fEtaMinGamma; // Minimum eta of triggered gamma | |
329 | Float_t fEtaMaxGamma; // Maximum eta of triggered gamma | |
330 | Float_t fPhiMinGamma; // Minimum phi of triggered gamma | |
331 | Float_t fPhiMaxGamma; // Maximum phi of triggered gamma | |
d8850d4f | 332 | Bool_t fUseYCutHQ; // siwtch for using y cut for heavy quarks |
333 | Float_t fYMinHQ; // Minimum y of triggered heavy quarks | |
334 | Float_t fYMaxHQ; // Maximum y of triggered heavy quarks | |
592f8307 | 335 | Float_t fPycellEtaMax; // Max. eta for Pycell |
336 | Int_t fPycellNEta; // Number of eta bins for Pycell | |
337 | Int_t fPycellNPhi; // Number of phi bins for Pycell | |
338 | Float_t fPycellThreshold; // Pycell threshold | |
339 | Float_t fPycellEtSeed; // Pycell seed | |
340 | Float_t fPycellMinEtJet; // Pycell min. jet et | |
341 | Float_t fPycellMaxRadius; // Pycell cone radius | |
8d2cd130 | 342 | StackFillOpt_t fStackFillOpt; // Stack filling with all particles with |
343 | // that flavour or only with selected | |
344 | // parents and their decays | |
345 | Bool_t fFeedDownOpt; // Option to set feed down from higher | |
346 | // quark families (e.g. b->c) | |
90a236ce | 347 | Bool_t fFragmentation; // Option to activate fragmentation by Pythia |
348 | Bool_t fSetNuclei; // Flag indicating that SetNuclei has been called | |
fb355e51 | 349 | Bool_t fUseNuclearPDF; // flag if nuclear pdf should be applied |
350 | Bool_t fUseLorentzBoost; // flag if lorentz boost should be applied | |
90a236ce | 351 | Bool_t fNewMIS; // Flag for the new multipple interactions scenario |
352 | Bool_t fHFoff; // Flag for switching heafy flavor production off | |
20e47f08 | 353 | Int_t fNucPdf; // Nuclear pdf 0: EKS98 1: EPS08 |
90a236ce | 354 | Int_t fTriggerParticle; // Trigger on this particle ... |
355 | Float_t fTriggerEta; // .. within |eta| < fTriggerEta | |
4b5ec27d | 356 | Float_t fTriggerY; // .. within |y| < fTriggerEta |
1f0caa6a | 357 | Float_t fTriggerEtaMin; // .. within fTriggerEtaMin < eta < fTriggerEta |
2591bd0e | 358 | Float_t fTriggerMinPt; // .. within pt > fTriggerMinPt |
359 | Float_t fTriggerMaxPt; // .. within pt < fTriggerMaxPt | |
38112f3f | 360 | Int_t fTriggerMultiplicity; // Trigger on events with a minimum charged multiplicity |
361 | Float_t fTriggerMultiplicityEta; // in a given eta range | |
440c2873 | 362 | Float_t fTriggerMultiplicityEtaMin; // in a given eta min |
363 | Float_t fTriggerMultiplicityEtaMax; // in a given eta max | |
38112f3f | 364 | Float_t fTriggerMultiplicityPtMin; // above this pT |
90a236ce | 365 | CountMode_t fCountMode; // Options for counting when the event will be finished. |
8d2cd130 | 366 | // fCountMode = kCountAll --> All particles that end up in the |
367 | // stack are counted | |
368 | // fCountMode = kCountParents --> Only selected parents are counted | |
369 | // fCountMode = kCountTrackabless --> Only particles flagged for tracking | |
370 | // are counted | |
371 | // | |
90a236ce | 372 | // |
373 | ||
374 | AliGenPythiaEventHeader* fHeader; //! Event header | |
375 | AliRunLoader* fRL; //! Run Loader | |
777e69b0 | 376 | const Text_t* fkFileName; //! Name of file to read from |
64da86aa | 377 | const Text_t* fkNameLHEF; //! Name of lhef file to read from |
90a236ce | 378 | Bool_t fFragPhotonInCalo; // Option to ask for Fragmentation Photon in calorimeters acceptance |
43e3b80a | 379 | Bool_t fHadronInCalo; // Option to ask for hadron (not pi0) in calorimeters acceptance |
90a236ce | 380 | Bool_t fPi0InCalo; // Option to ask for Pi0 in calorimeters acceptance |
40fe59d4 | 381 | Bool_t fEtaInCalo; // Option to ask for Eta in calorimeters acceptance |
382 | Bool_t fPhotonInCalo; // Option to ask for Photon in calorimeter acceptance (not in use) | |
383 | Bool_t fDecayPhotonInCalo;// Option to ask for Decay Photon in calorimeter acceptance | |
384 | Bool_t fForceNeutralMeson2PhotonDecay; // Option to ask for Pi0/Eta in calorimeters acceptance when decay into 2 photons | |
385 | Bool_t fEleInCalo; // Option to ask for Electron in EMCAL acceptance | |
386 | Bool_t fEleInEMCAL; // Option to ask for Electron in EMCAL acceptance (not in use) | |
387 | Bool_t fCheckBarrel; // Option to ask for FragPhoton or Pi0 or Eta or gamma decays in central barrel acceptance | |
388 | Bool_t fCheckEMCAL; // Option to ask for FragPhoton or Pi0 or Eta or gamma decays in calorimeters EMCAL acceptance | |
389 | Bool_t fCheckPHOS; // Option to ask for FragPhoton or Pi0 or Eta or gamma decays in calorimeters PHOS acceptance | |
390 | Bool_t fCheckPHOSeta; // Option to ask for rotate event particles in phi to have in PHOS acceptance a requested particle that previously had the good eta | |
391 | Int_t fPHOSRotateCandidate; // Internal member to select the particle candidate to trigger the event phi rotation, to put it in PHOS phi acceptance | |
43e3b80a | 392 | Float_t fTriggerParticleMinPt; // Minimum momentum of Fragmentation Photon or Pi0 or other hadron |
40fe59d4 | 393 | Float_t fPhotonMinPt; // Minimum momentum of Photon (not in use) |
394 | Float_t fElectronMinPt; // Minimum momentum of Electron (not in use) | |
ec2c406e | 395 | //Calorimeters eta-phi acceptance |
43e3b80a | 396 | Float_t fPHOSMinPhi; // Minimum phi PHOS, degrees |
397 | Float_t fPHOSMaxPhi; // Maximum phi PHOS, degrees | |
398 | Float_t fPHOSEta; // Minimum eta PHOS, coverage delta eta | |
399 | Float_t fEMCALMinPhi; // Minimum phi EMCAL, degrees | |
400 | Float_t fEMCALMaxPhi; // Maximum phi EMCAL, degrees | |
401 | Float_t fEMCALEta; // Maximum eta EMCAL, coverage delta eta | |
800be8b7 | 402 | |
403 | Bool_t fkTuneForDiff; // Pythia tune | |
404 | Int_t fProcDiff; | |
93a2041b | 405 | private: |
406 | AliGenPythia(const AliGenPythia &Pythia); | |
407 | AliGenPythia & operator=(const AliGenPythia & rhs); | |
408 | ||
800be8b7 | 409 | |
410 | Bool_t CheckDiffraction(); | |
c5dfa3e4 | 411 | Bool_t GetWeightsDiffraction(Double_t M, Double_t &Mmin, Double_t &Mmax, |
412 | Double_t &wSD, Double_t &wDD, Double_t &wND); | |
800be8b7 | 413 | |
d8850d4f | 414 | ClassDef(AliGenPythia, 15) // AliGenerator interface to Pythia |
8d2cd130 | 415 | }; |
416 | #endif | |
417 | ||
418 | ||
419 | ||
420 | ||
421 |