[Gate-users] Re: benchSPECT.root does not exist
Maria Holstensson
Maria.Holstensson at icr.ac.uk
Tue May 29 11:36:56 CEST 2007
Hiya,
You need to alter the file GateToRoot.hh in the folder
.../gate_v3.0.0/include/ . After you have done this you need to
recompile Gate and run your benchmark again. When the simulation is
finished you should have a file named benchSPECT.root .
The changes you need to make are:
On line 173 where it says
void SetFileName(const G4String aName) { m_fileName = aName; };
You need to change this to:
void SetFileName(const G4String aName) { m_fileName = aName +
".root"; };
On line 175 where it says
const char* GetFilePath() { return
(m_fileName+".root").c_str(); };
You need to change this to:
const char* GetFilePath() { return
m_fileName.c_str(); };
Also, add this line:
G4double latestEventID;
To line 199.
I hope this helps. If not, then I can send you the file.
Kind regards,
Maria Holstensson
>Subject: [Gate-users] benchSPECT.root does not exist
>To: gate-users at lists.healthgrid.org
>Message-ID:
> ><f3df92200705241720r463a6b6ale2d3faf6d087b107 at mail.gmail.com>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi all,
>
>Thanks for replying my emails.
>I still cannot solve this problem.
>
>When I want to run .x benchSPECT.C, I received message as follows.
>
>stolen:~/gate/gate_v3.0.0/benchmarks/benchmarkSPECT> root
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 5.14/00b 17 January 2007 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
>FreeType Engine v2.1.9 used to render TrueType fonts.
>Compiled on 29 March 2007 for linux with thread support.
>
>CINT/ROOT C/C++ Interpreter version 5.16.16, November 24, 2006
>Type ? for help. Commands must be C++ statements.
>Enclose multiple statements between { }.
>root [0] TBrowser t
>root [1] .x benchSPECT.C
>Error in <TFile::TFile>: file benchSPECT.root does not exist
>Error: illegal pointer to class object Singles 0x0 133
benchSPECT.C:21:
>*** Interpreter error recovered ***
>
>
>I didnt't see benchSPECT.root file anywhere. Please help.
>Many thanks,
>S.
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
More information about the Gate-users
mailing list