.so cleanup: more gSystem->Load()
[u/mrichter/AliRoot.git] / ANALYSIS / macros / train / AddMCGenHijing.C
1 AliGenerator *AddMCGenHijing()
2 {  
3 // User defined generator  
4   gSystem->Load("liblhapdf");      // Parton density functions
5   gSystem->Load("libEGPythia6");   // TGenerator interface
6   gSystem->Load("libpythia6");     // Pythia
7   gSystem->Load("libAliPythia6");  // ALICE specific implementations
8   gSystem->Load("libhijing");       
9   gSystem->Load("libTHijing");
10   AliGenHijing* gener = new AliGenHijing(-1);
11   // centre of mass energy 
12   gener->SetEnergyCMS(2760.);
13   gener->SetImpactParameterRange(0, 20);  
14   // reference frame
15   gener->SetReferenceFrame("CMS");
16   // projectile
17   gener->SetProjectile("A", 208, 82);
18   gener->SetTarget    ("A", 208, 82);
19   // tell hijing to keep the full parent child chain
20   gener->KeepFullEvent();
21
22   // enable shadowing
23   gener->SetShadowing(1);
24   // Don't track spectators
25   gener->SetSpectators(0);
26   // kinematic selection
27   gener->SetSelectAll(0);   
28
29   gener->SetJetQuenching(0);   
30   gener->SetPtHardMin (2.3);
31   return gener;
32 }
33   
34