]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding k Factor as parameter for Pythia 8 lego train macro (Emilia Leogrande, emilia...
authormiweber <m.weber@cern.ch>
Tue, 11 Nov 2014 13:17:52 +0000 (14:17 +0100)
committermiweber <m.weber@cern.ch>
Tue, 11 Nov 2014 13:17:52 +0000 (14:17 +0100)
ANALYSIS/macros/train/AddMCGenPythia8.C

index efabf57089e285e00bfeb10348994c672e5822db..46c314375a21081c471b1f14c8a2ec50e8721136 100644 (file)
@@ -1,17 +1,18 @@
-AliGenerator* AddMCGenPythia8(Float_t e_cms = 2760., Bool_t kCR = kTRUE) 
+AliGenerator* AddMCGenPythia8(Float_t e_cms = 2760., Bool_t kCR = kTRUE, Int_t kF = 1
 {
   // Add Pythia 8 generator: 
   //    - Color reconnection = ON/OFF
+  //    - Set k factor, default = 1; range of possible values in xmldoc/CouplingsAndScales.xml
 
   gSystem->Load("liblhapdf.so");
  
   AliGenerator *genP = NULL;
-  genP = CreatePythia8Gen(e_cms, kCR);
+  genP = CreatePythia8Gen(e_cms, kCR, kF);
   
   return genP;
 }
 
-AliGenerator* CreatePythia8Gen(Float_t e_cms, Bool_t kCR) {
+AliGenerator* CreatePythia8Gen(Float_t e_cms, Bool_t kCR, Int_t kF) {
     
    gSystem->Load("libpythia6.so");
    gSystem->Load("libEGPythia6.so");
@@ -42,5 +43,8 @@ AliGenerator* CreatePythia8Gen(Float_t e_cms, Bool_t kCR) {
   else
     (AliPythia8::Instance())->ReadString("BeamRemnants:reconnectColours = off");
   
+  AliPythia8::Instance()->ReadString(Form("MultipartonInteractions:kFactor = %i", kF));
+  
   return gener;
 }