Re: [ROOT v5.15.00] running pythiaExample.C

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 24 May 2007 08:33:00 +0200


Chris,

pythiaExample.C requires write access to the directory where you run ROOT. It creates a local file with a TTree containing the Pythia events.

Rene Brun

Christopher Jones wrote:
>
> Hello,
>
> I have installed ROOT with Pythia6 and am trying to run
> pythiaExample.C. My error is:
>
> root [0] .L pythiaExample.C
> root [1] makeEventSample(1000)
>
> ...
> ********************** PYINIT: initialization completed
> **********************
> SysError in <TFile::TFile>: file pythia.root can not be opened
> (Permission denied)
>
> If I comment out the lines
>
> if (!file || !file->IsOpen()) {
> Error("makeEventSample", "Couldn't open file %s", FILENAME);
> return 1;
> }
>
> I still get the error but I get the event loop and the plot + fit.
> Any ideas?
> Thanks,
>
> Chris
>
>
>
Received on Thu May 24 2007 - 08:33:07 CEST

This archive was generated by hypermail 2.2.0 : Thu May 24 2007 - 11:50:01 CEST