From f82795ff07b5dd100d50cbc6b4f4690b7d3f6a1d Mon Sep 17 00:00:00 2001 From: morsch Date: Tue, 10 May 2005 04:13:13 +0000 Subject: [PATCH] Possibility to switch off heavy flavor production added. --- THijing/AliGenHijing.cxx | 11 +++++++++++ THijing/AliGenHijing.h | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/THijing/AliGenHijing.cxx b/THijing/AliGenHijing.cxx index 2cd1c1500e1..f456abceef2 100644 --- a/THijing/AliGenHijing.cxx +++ b/THijing/AliGenHijing.cxx @@ -76,6 +76,8 @@ AliGenHijing::AliGenHijing(Int_t npart) // SetSimpleJets(); SetNoGammas(); + SetRandomPz(); + SwitchOffHeavyQuarks(kFALSE); // fParticles = new TClonesArray("TParticle",10000); // @@ -151,6 +153,15 @@ void AliGenHijing::Init() fHijing->SetHIPR1(11, 2.5); } +// +// Heavy quarks +// + if (fNoHeavyQuarks) { + fHijing->SetIHPR2(49, 1); + } else { + fHijing->SetIHPR2(49, 0); + } + AliGenMC::Init(); diff --git a/THijing/AliGenHijing.h b/THijing/AliGenHijing.h index d930efe486d..6d341b0c428 100644 --- a/THijing/AliGenHijing.h +++ b/THijing/AliGenHijing.h @@ -55,6 +55,9 @@ class AliGenHijing : public AliGenMC {fPhiMinJet = TMath::Pi()*phimin/180.; fPhiMaxJet = TMath::Pi()*phimax/180.;} virtual void SetBoostLHC(Int_t flag = 0) {fLHC = flag;} virtual void SetRandomPz(Bool_t flag = 0) {fRandomPz = flag;} + virtual void SwitchOffHeavyQuarks(Bool_t flag = kTRUE) {fNoHeavyQuarks = flag;} + + // Getters virtual Float_t GetEnergyCMS() const {return fEnergyCMS;} virtual TString GetReferenceFrame() const {return fFrame;} @@ -125,7 +128,9 @@ class AliGenHijing : public AliGenMC Int_t fTargetSpecn; // Num. of spectator neutrons from target nucleus Int_t fTargetSpecp; // Num. of spectator protons from target nucleus Int_t fLHC; // Assume LHC as lab frame - Int_t fRandomPz; // Randomise sign of pz event by event + Bool_t fRandomPz; // Randomise sign of pz event by event + Bool_t fNoHeavyQuarks; // If true no heavy quarks are produced + private: void Copy(TObject &rhs) const; // adjust the weight from kinematic cuts -- 2.39.3