message: PWGGA/GammaConv/macros: changed setup for standalone pythia8 generator
diff: @@ -5,8 +5,7 @@ AliGenerator* Add_MCGenPythia8_TuneX( Float_t e_cms = 2760.,
  Int_t kProcess = 0,
  Double_t ptHardMin = 0,
  Double_t ptHardMax = 1.
  - )
  -{
  + ) {
  // Add Pythia 8 generator:
  // -kProcess=0 MB generation
  // -kProcess=1 Jet production, pthard generation
  @@ -42,36 +41,48 @@ AliGenerator* CreatePythia8Gen( Float_t e_cms,
  AliGenPythiaPlus* gener = new AliGenPythiaPlus(AliPythia8::Instance());
  + std::cout << "*****************************************************************" << std::endl;
  + std::cout << "Process: "<< kProcess << "\t Color reconnection: "<< kCR << "\t Tune: " << tune << "\t kFactor: "<< kF << std::endl;
  + if (kProcess == 1){
  + std::cout << "pTHardMin: "<< ptHardMin << "\t ptHardMax: "<< ptHardMax << std::endl;
  + }
  + std::cout << "*****************************************************************" << std::endl;
  // set process (MB)
  - if(kProcess==0) gener->SetProcess(kPyMbDefault);
  -
  + if(kProcess==0){
  + std::cout << "running in min bias mode"<< std::endl;
  + gener->SetProcess(kPyMbDefault);
  + }
  - if(kProcess==1) {gener->SetProcess(kPyJets);
  - if(ptHardMin>0.)
  - AliPythia8::Instance()->SetPtHardRange(ptHardMin,ptHardMax);
  + if(kProcess==1) {
  + gener->SetProcess(kPyJets);
  + std::cout << "went into jet loop" << endl;
  + if(ptHardMin > 0.){
  + std::cout << "Setting pTHardMin: "<< ptHardMin << "\t ptHardMax: "<< ptHardMax << std::endl;
  + gener->SetPtHard(ptHardMin,ptHardMax);
  + }
  }
  //Centre of mass energy
  gener->SetEnergyCMS(e_cms); // in GeV
  // Event list
  - gener->SetEventListRange(-1, 2);
  + gener->SetEventListRange(-1, -1);
  - // color reconnection
  - (AliPythia8::Instance())->ReadString(Form("Tune:pp = %i", tune));//CR
  + // setting tune
  + std::cout << "setting tune: " << tune << std::endl;
  + gener->SetTune(tune);
  +// (AliPythia8::Instance())->ReadString(Form("Tune:pp = %i", tune));//CR
  //random seed based on time
  - AliPythia8::Instance()->ReadString("Random:setSeed = on");
  - AliPythia8::Instance()->ReadString("Random:seed = 0");
  + (AliPythia8::Instance())->ReadString("Random:setSeed = on");
  + (AliPythia8::Instance())->ReadString("Random:seed = 0");
  if(kCR)
  (AliPythia8::Instance())->ReadString("ColourReconnection:reconnect = on");
  else
  (AliPythia8::Instance())->ReadString("ColourReconnection:reconnect = off");
  -
  - AliPythia8::Instance()->ReadString(Form("MultipartonInteractions:kFactor = %i", kF));
  - AliPythia8::Instance()->ReadString("111: mayDecay = false ! pi0 stable");
  + (AliPythia8::Instance())->ReadString(Form("MultipartonInteractions:kFactor = %i", kF));
  return gener;
  }
  