#include "AliFastGlauber.h"
#include "AliQuenchingWeights.h"
#include "AliOmegaDalitz.h"
+#include "AliLog.h"
#include "TVector3.h"
#include "TLorentzVector.h"
#include "PyquenCommon.h"
SetMSEL(1);
// Pythia Tune A (CDF)
//
- SetPARP(67,2.5); // Regulates Initial State Radiation (value from best fit to D0 dijet analysis)
- 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;
+ if (fItune < 0) {
+ SetPARP(67,2.5); // Regulates Initial State Radiation (value from best fit to D0 dijet analysis)
+ 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;
SetMSTP(71,1); //Final QCD & QED showers on
break;
+ case kPyZgamma:
+ //Inclusive production of Z
+ SetMSEL(0);
+ //f fbar -> Z/gamma
+ SetMSUB(1,1);
+ // 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;
case kPyMBRSingleDiffraction:
case kPyMBRDoubleDiffraction:
case kPyMBRCentralDiffraction:
case kPyCharmPWHG:
case kPyBeautyPWHG:
+ case kPyWPWHG:
// number of warnings printed on the shell
SetMSTU(26,20);
// Initialize PYTHIA
//
// Select the tune
- if (itune > -1) Pytune(itune);
-
+ if (itune > -1) {
+ Pytune(itune);
+ if (GetMSTP(192) > 1 || GetMSTP(193) > 1) {
+ AliWarning(Form("Structure function for tune %5d set to %5s\n",
+ itune, AliStructFuncType::PDFsetName(strucfunc).Data()));
+ SetMSTP(52,2);
+ SetMSTP(51, AliStructFuncType::PDFsetIndex(strucfunc));
+ }
+ }
//
SetMSTP(41,1); // all resonance decays switched on
- if (process == kPyJetsPWHG || process == kPyCharmPWHG || process == kPyBeautyPWHG) {
+ if (process == kPyJetsPWHG || process == kPyCharmPWHG || process == kPyBeautyPWHG || process == kPyWPWHG) {
Initialize("USER","","",0.);
} else {
Initialize("CMS",fProjectile,fTarget,fEcms);