# define pyshow pyshow_
# define pyrobo pyrobo_
# define pyquen pyquen_
+# define pyevnw pyevnw_
# define type_of_call
#else
# define pyclus PYCLUS
# define pycell PYCELL
# define pyrobo PYROBO
# define pyquen PYQUEN
+# define pyevnw PYEVNW
# define type_of_call _stdcall
#endif
extern "C" void type_of_call pyshow(Int_t &, Int_t &, Double_t &);
extern "C" void type_of_call pyrobo(Int_t &, Int_t &, Double_t &, Double_t &, Double_t &, Double_t &, Double_t &);
extern "C" void type_of_call pyquen(Double_t &, Int_t &, Double_t &);
+extern "C" void type_of_call pyevnw(){;}
//_____________________________________________________________________________
AliPythia* AliPythia::fgAliPythia=NULL;
-AliPythia::AliPythia()
+AliPythia::AliPythia():
+ fProcess(kPyMb),
+ fEcms(0.),
+ fStrucFunc(kCTEQ5L),
+ fXJet(0.),
+ fYJet(0.),
+ fGlauber(0),
+ fQuenchingWeights(0)
{
// Default Constructor
//
fQuenchingWeights = 0;
}
+AliPythia::AliPythia(const AliPythia& pythia):
+ fProcess(kPyMb),
+ fEcms(0.),
+ fStrucFunc(kCTEQ5L),
+ fXJet(0.),
+ fYJet(0.),
+ fGlauber(0),
+ fQuenchingWeights(0)
+{
+ // Copy Constructor
+ pythia.Copy(*this);
+}
+
void AliPythia::ProcInit(Process_t process, Float_t energy, StrucFunc_t strucfunc)
{
// Initialise the process to generate
SetMDCY(Pycomp(3312),1,0);
SetMDCY(Pycomp(3322),1,0);
SetMDCY(Pycomp(3334),1,0);
- // select structure function
+ // Select structure function
SetMSTP(52,2);
SetMSTP(51,strucfunc);
+ // Particles produced in string fragmentation point directly to either of the two endpoints
+ // of the string (depending in the side they were generated from).
+ SetMSTU(16,2);
+
//
// Pythia initialisation for selected processes//
//
// select charm production
switch (process)
{
+ case kPyOldUEQ2ordered: //Old underlying events with Q2 ordered QCD processes
+// Multiple interactions on.
+ SetMSTP(81,1);
+// Double Gaussian matter distribution.
+ SetMSTP(82,4);
+ SetPARP(83,0.5);
+ SetPARP(84,0.4);
+// pT0.
+ SetPARP(82,2.0);
+// Reference energy for pT0 and energy rescaling pace.
+ SetPARP(89,1800);
+ SetPARP(90,0.25);
+// String drawing almost completely minimizes string length.
+ SetPARP(85,0.9);
+ SetPARP(86,0.95);
+// ISR and FSR activity.
+ SetPARP(67,4);
+ SetPARP(71,4);
+// Lambda_FSR scale.
+ SetPARJ(81,0.29);
+ break;
+ case kPyOldUEQ2ordered2:
+// Old underlying events with Q2 ordered QCD processes
+// Multiple interactions on.
+ SetMSTP(81,1);
+// Double Gaussian matter distribution.
+ SetMSTP(82,4);
+ SetPARP(83,0.5);
+ SetPARP(84,0.4);
+// pT0.
+ SetPARP(82,2.0);
+// Reference energy for pT0 and energy rescaling pace.
+ SetPARP(89,1800);
+ SetPARP(90,0.16); // here is the difference with kPyOldUEQ2ordered
+// String drawing almost completely minimizes string length.
+ SetPARP(85,0.9);
+ SetPARP(86,0.95);
+// ISR and FSR activity.
+ SetPARP(67,4);
+ SetPARP(71,4);
+// Lambda_FSR scale.
+ SetPARJ(81,0.29);
+ break;
+ case kPyOldPopcorn:
+// Old production mechanism: Old Popcorn
+ SetMSEL(1);
+ SetMSTJ(12,3);
+// (D=2) Like MSTJ(12)=2 but added prod ofthe 1er rank baryon
+ SetMSTP(88,2);
+// (D=1)see can be used to form baryons (BARYON JUNCTION)
+ SetMSTJ(1,1);
+ AtlasTuning();
+ break;
case kPyCharm:
SetMSEL(4);
-//
// heavy quark masses
SetPMAS(4,1,1.2);
- SetMSTU(16,2);
//
// primordial pT
SetMSTP(91,1);
case kPyBeauty:
SetMSEL(5);
SetPMAS(5,1,4.75);
- SetMSTU(16,2);
break;
case kPyJpsi:
SetMSEL(0);
SetMSUB(94,1); // double diffraction
SetMSUB(95,1); // low pt production
-//
-// ATLAS Tuning
-//
-
- SetMSTP(51, kCTEQ5L); // CTEQ5L pdf
- SetMSTP(81,1); // Multiple Interactions ON
- SetMSTP(82,4); // Double Gaussian Model
-
- SetPARP(82,1.8); // [GeV] PT_min at Ref. energy
- SetPARP(89,1000.); // [GeV] Ref. energy
- SetPARP(90,0.16); // 2*epsilon (exponent in power law)
- SetPARP(83,0.5); // Core density in proton matter distribution (def.value)
- SetPARP(84,0.5); // Core radius
- SetPARP(85,0.33); // Regulates gluon prod. mechanism
- SetPARP(86,0.66); // Regulates gluon prod. mechanism
- SetPARP(67,1); // Regulates Initial State Radiation
+ AtlasTuning();
break;
case kPyMbNonDiffr:
// Minimum Bias pp-Collisions
SetMSEL(0);
SetMSUB(95,1); // low pt production
-//
-// ATLAS Tuning
-//
-
- SetMSTP(51,kCTEQ5L); // CTEQ5L pdf
- SetMSTP(81,1); // Multiple Interactions ON
- SetMSTP(82,4); // Double Gaussian Model
-
- SetPARP(82,1.8); // [GeV] PT_min at Ref. energy
- SetPARP(89,1000.); // [GeV] Ref. energy
- SetPARP(90,0.16); // 2*epsilon (exponent in power law)
- SetPARP(83,0.5); // Core density in proton matter distribution (def.value)
- SetPARP(84,0.5); // Core radius
- SetPARP(85,0.33); // Regulates gluon prod. mechanism
- SetPARP(86,0.66); // Regulates gluon prod. mechanism
- SetPARP(67,1); // Regulates Initial State Radiation
+ AtlasTuning();
+ break;
+ case kPyMbMSEL1:
+ ConfigHeavyFlavor();
+// Intrinsic <kT^2>
+ SetMSTP(91,1);// Width (1=gaussian) primordial kT dist. inside hadrons
+ SetPARP(91,1.); // <kT^2> = PARP(91,1.)^2
+ SetPARP(93,5.); // Upper cut-off
+// Set Q-quark mass
+ SetPMAS(4,1,1.2); // Charm quark mass
+ SetPMAS(5,1,4.78); // Beauty quark mass
+ SetPARP(71,4.); // Defaut value
+// Atlas Tuning
+ AtlasTuning();
break;
case kPyJets:
//
// QCD Jets
//
SetMSEL(1);
- break;
+ // Pythia Tune A (CDF)
+ //
+ SetPARP(67,4.); // Regulates Initial State Radiation
+ SetMSTP(82,4); // Double Gaussian Model
+ SetPARP(82,2.0); // [GeV] PT_min at Ref. energy
+ SetPARP(84,0.4); // Core radius
+ SetPARP(85,0.90) ; // Regulates gluon prod. mechanism
+ SetPARP(86,0.95); // Regulates gluon prod. mechanism
+ SetPARP(89,1800.); // [GeV] Ref. energy
+ SetPARP(90,0.25); // 2*epsilon (exponent in power law)
+ break;
case kPyDirectGamma:
SetMSEL(10);
break;
case kPyCharmPbPbMNR:
case kPyD0PbPbMNR:
- // Tuning of Pythia parameters aimed to get a resonable agreement
- // between with the NLO calculation by Mangano, Nason, Ridolfi for the
- // c-cbar single inclusive and double differential distributions.
- // This parameter settings are meant to work with Pb-Pb collisions
- // (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
- // To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
- // has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
- // Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,1.304);
- SetPARP(93,6.52);
-
- // Set c-quark mass
- SetPMAS(4,1,1.2);
-
- break;
case kPyDPlusPbPbMNR:
+ case kPyDPlusStrangePbPbMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// between with the NLO calculation by Mangano, Nason, Ridolfi for the
// c-cbar single inclusive and double differential distributions.
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
+ ConfigHeavyFlavor();
// Intrinsic <kT>
SetMSTP(91,1);
SetPARP(91,1.304);
SetPARP(93,6.52);
-
// Set c-quark mass
SetPMAS(4,1,1.2);
-
break;
case kPyCharmpPbMNR:
case kPyD0pPbMNR:
- // Tuning of Pythia parameters aimed to get a resonable agreement
- // between with the NLO calculation by Mangano, Nason, Ridolfi for the
- // c-cbar single inclusive and double differential distributions.
- // This parameter settings are meant to work with p-Pb collisions
- // (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
- // To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
- // has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
- // Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,1.16);
- SetPARP(93,5.8);
-
- // Set c-quark mass
- SetPMAS(4,1,1.2);
-
- break;
case kPyDPluspPbMNR:
+ case kPyDPlusStrangepPbMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// between with the NLO calculation by Mangano, Nason, Ridolfi for the
// c-cbar single inclusive and double differential distributions.
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
+ ConfigHeavyFlavor();
// Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,1.16);
- SetPARP(93,5.8);
-
+ SetMSTP(91,1);
+ SetPARP(91,1.16);
+ SetPARP(93,5.8);
+
// Set c-quark mass
- SetPMAS(4,1,1.2);
-
+ SetPMAS(4,1,1.2);
break;
case kPyCharmppMNR:
case kPyD0ppMNR:
+ case kPyDPlusppMNR:
+ case kPyDPlusStrangeppMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// between with the NLO calculation by Mangano, Nason, Ridolfi for the
// c-cbar single inclusive and double differential distributions.
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
+ ConfigHeavyFlavor();
// Intrinsic <kT^2>
- SetMSTP(91,1);
- SetPARP(91,1.);
- SetPARP(93,5.);
-
+ SetMSTP(91,1);
+ SetPARP(91,1.);
+ SetPARP(93,5.);
+
// Set c-quark mass
- SetPMAS(4,1,1.2);
-
+ SetPMAS(4,1,1.2);
break;
- case kPyDPlusppMNR:
+ case kPyCharmppMNRwmi:
// Tuning of Pythia parameters aimed to get a resonable agreement
// between with the NLO calculation by Mangano, Nason, Ridolfi for the
// c-cbar single inclusive and double differential distributions.
// This parameter settings are meant to work with pp collisions
- // (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
- // To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
- // has to be set to 2.1GeV. Example in ConfigCharmPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
- // QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
-
+ // and with kCTEQ5L PDFs.
+ // Added multiple interactions according to ATLAS tune settings.
+ // To get a "reasonable" agreement with MNR results, events have to be
+ // generated with the minimum ptHard (AliGenPythia::SetPtHard)
+ // set to 2.76 GeV.
+ // To get a "perfect" agreement with MNR results, events have to be
+ // generated in four ptHard bins with the following relative
+ // normalizations:
+ // 2.76-3 GeV: 25%
+ // 3-4 GeV: 40%
+ // 4-8 GeV: 29%
+ // >8 GeV: 6%
+ ConfigHeavyFlavor();
// Intrinsic <kT^2>
- SetMSTP(91,1);
- SetPARP(91,1.);
- SetPARP(93,5.);
+ SetMSTP(91,1);
+ SetPARP(91,1.);
+ SetPARP(93,5.);
// Set c-quark mass
- SetPMAS(4,1,1.2);
-
- break;
+ SetPMAS(4,1,1.2);
+ AtlasTuning();
+ break;
case kPyBeautyPbPbMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// between with the NLO calculation by Mangano, Nason, Ridolfi for the
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.75GeV. Example in ConfigBeautyPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
+ ConfigHeavyFlavor();
// QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
- SetPARP(67,1.0);
- SetPARP(71,1.0);
-
+ SetPARP(67,1.0);
+ SetPARP(71,1.0);
// Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,2.035);
- SetPARP(93,10.17);
-
+ SetMSTP(91,1);
+ SetPARP(91,2.035);
+ SetPARP(93,10.17);
// Set b-quark mass
- SetPMAS(5,1,4.75);
-
+ SetPMAS(5,1,4.75);
break;
case kPyBeautypPbMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.75GeV. Example in ConfigBeautyPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
+ ConfigHeavyFlavor();
// QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
- SetPARP(67,1.0);
- SetPARP(71,1.0);
-
+ SetPARP(67,1.0);
+ SetPARP(71,1.0);
// Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,1.60);
- SetPARP(93,8.00);
-
+ SetMSTP(91,1);
+ SetPARP(91,1.60);
+ SetPARP(93,8.00);
// Set b-quark mass
- SetPMAS(5,1,4.75);
-
+ SetPMAS(5,1,4.75);
break;
case kPyBeautyppMNR:
// Tuning of Pythia parameters aimed to get a resonable agreement
// (AliGenPythia::SetNuclei) and with kCTEQ4L PDFs.
// To get a good agreement the minimum ptHard (AliGenPythia::SetPtHard)
// has to be set to 2.75GeV. Example in ConfigBeautyPPR.C.
-
- // All QCD processes
- SetMSEL(1);
-
- // No multiple interactions
- SetMSTP(81,0);
- SetPARP(81,0.0);
- SetPARP(82,0.0);
-
- // Initial/final parton shower on (Pythia default)
- SetMSTP(61,1);
- SetMSTP(71,1);
-
- // 2nd order alpha_s
- SetMSTP(2,2);
-
+ ConfigHeavyFlavor();
// QCD scales
- SetMSTP(32,2);
- SetPARP(34,1.0);
- SetPARP(67,1.0);
- SetPARP(71,1.0);
-
- // Intrinsic <kT>
- SetMSTP(91,1);
- SetPARP(91,1.);
- SetPARP(93,5.);
+ SetPARP(67,1.0);
+ SetPARP(71,1.0);
+
+ // Intrinsic <kT>
+ SetMSTP(91,1);
+ SetPARP(91,1.);
+ SetPARP(93,5.);
+
+ // Set b-quark mass
+ SetPMAS(5,1,4.75);
+ break;
+ case kPyBeautyppMNRwmi:
+ // Tuning of Pythia parameters aimed to get a resonable agreement
+ // between with the NLO calculation by Mangano, Nason, Ridolfi for the
+ // b-bbar single inclusive and double differential distributions.
+ // This parameter settings are meant to work with pp collisions
+ // and with kCTEQ5L PDFs.
+ // Added multiple interactions according to ATLAS tune settings.
+ // To get a "reasonable" agreement with MNR results, events have to be
+ // generated with the minimum ptHard (AliGenPythia::SetPtHard)
+ // set to 2.76 GeV.
+ // To get a "perfect" agreement with MNR results, events have to be
+ // generated in four ptHard bins with the following relative
+ // normalizations:
+ // 2.76-4 GeV: 5%
+ // 4-6 GeV: 31%
+ // 6-8 GeV: 28%
+ // >8 GeV: 36%
+ ConfigHeavyFlavor();
+ // QCD scales
+ SetPARP(67,1.0);
+ SetPARP(71,1.0);
+
+ // Intrinsic <kT>
+ SetMSTP(91,1);
+ SetPARP(91,1.);
+ SetPARP(93,5.);
// Set b-quark mass
- SetPMAS(5,1,4.75);
+ SetPMAS(5,1,4.75);
+
+ AtlasTuning();
+ break;
+ case kPyW:
+
+ //Inclusive production of W+/-
+ SetMSEL(0);
+ //f fbar -> W+
+ SetMSUB(2,1);
+ // //f fbar -> g W+
+ // SetMSUB(16,1);
+ // //f fbar -> gamma W+
+ // SetMSUB(20,1);
+ // //f g -> f W+
+ // SetMSUB(31,1);
+ // //f gamma -> f W+
+ // SetMSUB(36,1);
+
+ // Initial/final parton shower on (Pythia default)
+ // With parton showers on we are generating "W inclusive process"
+ SetMSTP(61,1); //Initial QCD & QED showers on
+ SetMSTP(71,1); //Final QCD & QED showers on
+
+ break;
+
+ case kPyZ:
+
+ //Inclusive production of Z
+ SetMSEL(0);
+ //f fbar -> Z/gamma
+ SetMSUB(1,1);
+
+ // // f fbar -> g Z/gamma
+ // SetMSUB(15,1);
+ // // f fbar -> gamma Z/gamma
+ // SetMSUB(19,1);
+ // // f g -> f Z/gamma
+ // SetMSUB(30,1);
+ // // f gamma -> f Z/gamma
+ // SetMSUB(35,1);
+
+ //only Z included, not gamma
+ SetMSTP(43,2);
+
+ // Initial/final parton shower on (Pythia default)
+ // With parton showers on we are generating "Z inclusive process"
+ SetMSTP(61,1); //Initial QCD & QED showers on
+ SetMSTP(71,1); //Final QCD & QED showers on
+
+ break;
- break;
}
//
// Initialize PYTHIA
Double_t px = 0., py = 0., pz = 0., e = 0., m = 0., p = 0., pt = 0., theta = 0., phi = 0.;
Double_t pxq[4], pyq[4], pzq[4], eq[4], yq[4], mq[4], pq[4], phiq[4], thetaq[4], ptq[4];
Bool_t quenched[4];
- Double_t zInitial[4], wjtKick[4];
+ Double_t wjtKick[4];
Int_t nGluon[4];
Int_t qPdg[4];
Int_t imo, kst, pdg;
+
//
// Sore information about Primary partons
//
Double_t int0[4];
Double_t int1[4];
-
- fGlauber->GetI0I1ForPythia(4, phiq, int0, int1, 15.);
+ fGlauber->GetI0I1ForPythiaAndXY(4, phiq, int0, int1, fXJet, fYJet, 15.);
+
for (Int_t j = 0; j < 4; j++) {
//
// Quench only central jets and with E > 10.
Double_t eloss = fQuenchingWeights->GetELossRandomKFast(itype, int0[j], int1[j], eq[j]);
if (TMath::Abs(yq[j]) > 2.5 || eq[j] < 10.) {
- zInitial[j] = 0.;
+ fZQuench[j] = 0.;
} else {
if (eq[j] > 40. && TMath::Abs(yq[j]) < 0.5) {
icall ++;
wjtKick[j] = TMath::Sqrt(l * fQuenchingWeights->CalcQk(int0[j], int1[j]));
//
// Fractional energy loss
- zInitial[j] = eloss / eq[j];
+ fZQuench[j] = eloss / eq[j];
//
// Avoid complete loss
//
- if (zInitial[j] == 1.) zInitial[j] = 0.95;
+ if (fZQuench[j] == 1.) fZQuench[j] = 0.95;
//
// Some debug printing
// printf("Initial parton # %3d, Type %3d Energy %10.3f Phi %10.3f Length %10.3f Loss %10.3f Kick %10.3f Mean: %10.3f %10.3f\n",
// j, itype, eq[j], phiq[j], l, eloss, wjtKick[j], eMean / Float_t(icall+1), yq[j]);
-// zInitial[j] = 0.8;
-// while (zInitial[j] >= 0.95) zInitial[j] = gRandom->Exp(0.2);
+// fZQuench[j] = 0.8;
+// while (fZQuench[j] >= 0.95) fZQuench[j] = gRandom->Exp(0.2);
}
- quenched[j] = (zInitial[j] > 0.01);
+ quenched[j] = (fZQuench[j] > 0.01);
} // primary partons
+
+
Double_t pNew[1000][4];
Int_t kNew[1000];
Int_t icount = 0;
+ Double_t zquench[4];
+
//
// System Loop
for (Int_t isys = 0; isys < 4; isys++) {
// Skip to next system if not quenched.
if (!quenched[isys]) continue;
- nGluon[isys] = 1 + Int_t(zInitial[isys] / (1. - zInitial[isys]));
+ nGluon[isys] = 1 + Int_t(fZQuench[isys] / (1. - fZQuench[isys]));
if (nGluon[isys] > 6) nGluon[isys] = 6;
- zInitial[isys] = 1. - TMath::Power(1. - zInitial[isys], 1./Double_t(nGluon[isys]));
+ zquench[isys] = 1. - TMath::Power(1. - fZQuench[isys], 1./Double_t(nGluon[isys]));
wjtKick[isys] = wjtKick[isys] / TMath::Sqrt(Double_t(nGluon[isys]));
//
// Fractional energy loss
- Double_t z = zInitial[index];
+ Double_t z = zquench[index];
// Don't fully quench radiated gluons
p2[isys][4] = TMath::Sqrt(p2[isys][4]);
break;
} else {
- printf("Warning negative mass squared in system %d %f ! \n", isys, zInitial[isys]);
+ printf("Warning negative mass squared in system %d %f ! \n", isys, zquench[isys]);
printf("4-Momentum: %10.3e %10.3e %10.3e %10.3e %10.3e \n", p2[isys][0], p2[isys][1], p2[isys][2], p2[isys][3], p2[isys][4]);
if (p2[isys][4] < -0.01) {
printf("Negative mass squared !\n");
// Igor Lokthine's quenching routine
pyquen(a, ibf, b);
}
+
+void AliPythia::Pyevnw()
+{
+ // New multiple interaction scenario
+ pyevnw();
+}
+
+void AliPythia::GetQuenchingParameters(Double_t& xp, Double_t& yp, Double_t z[4])
+{
+ // Return event specific quenching parameters
+ xp = fXJet;
+ yp = fYJet;
+ for (Int_t i = 0; i < 4; i++) z[i] = fZQuench[i];
+
+}
+
+void AliPythia::ConfigHeavyFlavor()
+{
+ //
+ // Default configuration for Heavy Flavor production
+ //
+ // All QCD processes
+ //
+ SetMSEL(1);
+
+ // No multiple interactions
+ SetMSTP(81,0);
+ // Initial/final parton shower on (Pythia default)
+ SetMSTP(61,1);
+ SetMSTP(71,1);
+
+ // 2nd order alpha_s
+ SetMSTP(2,2);
+
+ // QCD scales
+ SetMSTP(32,2);
+ SetPARP(34,1.0);
+}
+
+void AliPythia::AtlasTuning()
+{
+ //
+ // Configuration for the ATLAS tuning
+ SetMSTP(51, kCTEQ5L); // CTEQ5L pdf
+ SetMSTP(81,1); // Multiple Interactions ON
+ SetMSTP(82,4); // Double Gaussian Model
+ SetPARP(82,1.8); // [GeV] PT_min at Ref. energy
+ SetPARP(89,1000.); // [GeV] Ref. energy
+ SetPARP(90,0.16); // 2*epsilon (exponent in power law)
+ SetPARP(83,0.5); // Core density in proton matter distribution (def.value)
+ SetPARP(84,0.5); // Core radius
+ SetPARP(85,0.33); // Regulates gluon prod. mechanism
+ SetPARP(86,0.66); // Regulates gluon prod. mechanism
+ SetPARP(67,1); // Regulates Initial State Radiation
+}
+
+AliPythia& AliPythia::operator=(const AliPythia& rhs)
+{
+// Assignment operator
+ rhs.Copy(*this);
+ return *this;
+}
+
+ void AliPythia::Copy(TObject&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
+}