message: Angantyr config
diff: @@ -9,7 +9,11 @@ AliGenerator* AddCustomMCGenPythia8( TString lTune = "pp",
  gSystem->Load("liblhapdf");
  AliGenerator *genP = NULL;
  + if( !lTune.EqualTo("PbPb") ){
  genP = CreatePythia8GenCustom(lTune, e_cms);
  + }else{
  + genP = CreatePythia8GenPbPb(lTune, e_cms);
  + }
  return genP;
  }
  @@ -152,3 +156,43 @@ AliGenerator* CreatePythia8GenCustom( TString lTune,
  (AliPythia8::Instance())->SetDecayLonglived();
  return gener;
  }
  +AliGenerator* CreatePythia8GenPbPb( TString lTune,
  + Float_t e_cms
  + ) {
  +
  + gSystem->Load("libpythia6");
  + gSystem->Load("libEGPythia6");
  + gSystem->Load("libAliPythia6");
  + gSystem->Load("libpythia8");
  + gSystem->Load("libAliPythia8");
  + gSystem->Setenv("PYTHIA8DATA", gSystem->ExpandPathName("$ALICE_ROOT/PYTHIA8/pythia8/xmldoc"));
  + gSystem->Setenv("LHAPDF", gSystem->ExpandPathName("$ALICE_ROOT/LHAPDF"));
  + gSystem->Setenv("LHAPATH", gSystem->ExpandPathName("$ALICE_ROOT/LHAPDF/PDFsets"));
  +
  +
  + AliPythia8 *pythia = AliPythia8::Instance(); // For ROOT6 needs to be created before AliGenPythiaPlus object, otherwise ending in "illegal instruction"
  + AliGenPythiaPlus* gener = new AliGenPythiaPlus(pythia);
  +
  + std::cout << "*****************************************************************" << std::endl;
  + std::cout << " Desired PYTHIA configuration: "<< lTune.Data()<< std::endl;
  + std::cout << "*****************************************************************" << std::endl;
  + // set process (MB)
  + gener->SetProcess(kPyMbDefault);
  +
  + //Centre of mass energy
  + gener->SetEnergyCMS(e_cms); // in GeV
  +
  + //random seed based on time
  + (AliPythia8::Instance())->ReadString("Beams:idA = 1000822080");
  + (AliPythia8::Instance())->ReadString("Beams:idB = 1000822080");
  + (AliPythia8::Instance())->ReadString("PhaseSpace:pTHatMax = -1.0"); //this should be fixed in the constructor
  + (AliPythia8::Instance())->ReadString("Main:timesAllowErrors = 50000");
  +
  + (AliPythia8::Instance())->ReadString("HeavyIon:SigFitNGen = 0");
  + (AliPythia8::Instance())->ReadString("HeavyIon:SigFitDefPar = 13.88,1.84,0.22,0.0,0.0,0.0,0.0,0.0");
  + (AliPythia8::Instance())->ReadString("HeavyIon:bWidth = 14.48");
  +
  + (AliPythia8::Instance())->SetDecayLonglived();
  +
  + return gener;
  +}
  