[Gate-users] Re: benchSPECT.root does not exist
Maria Holstensson
Maria.Holstensson at icr.ac.uk
Tue May 29 11:31:33 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
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