Jpsi production

Hi everybody,
I’m working on Jpsi study making simulation with Config.C (Configuration macro for MUON spectrometer simulation). The generator (based on Pythia6) is something like this:

[code]//Pythia
if(!strcmp(option,“pythia”)){

  AliGenPythia *gener = new AliGenPythia(-1);
  gener->SetMomentumRange(0, 999999.);
  gener->SetThetaRange(0., 180.);
  gener->SetYRange(-12.,12.);
  gener->SetPtRange(0,1000.);
  gener->SetProcess(kPyJpsi);
  gener->SetEnergyCMS(7000);
  gener->SetOrigin(0,0,0);
  gener->Init();
  }

[/code]
Can you suggest me some other interesting ways to produce Jpsi? May I use Pythia8?
If the answer is “yes” can you give me some input?
Thanks in advance,
Marco.

I would suggest to send your request to teh Alice mailing list.
You can also have a look at $ROOTSYS/tutorials/pythia/pythia8.C

Rene

thank you,
can you explain how to set the env variable?

// Note that before executing this script, // -the env variable PYTHIA8 must point to the pythia8100 (or newer) directoryDATA // -the env variable PYTHIA8DATA must be defined and it must point to $PYTHIA8/xmldoc

[quote]can you explain how to set the env variab
[/quote]
See codecoffee.com/tipsforlinux/ … s/030.html ?

Cheers,
Philippe.