[Gate-users] benchmark
Daniel Woodsworth
danieljw at phas.ubc.ca
Fri May 18 18:17:57 CEST 2007
Hi Suhaili,
See below for ideas.
Cheers,
Daniel
> Hi all,
> Can someone help me with these problems?
>
> When I tried to run benchmark macros (i.e. SPECTbench.mac and
> benchmarkPET.mac), these problems occur:
>
> 1. There is no file for benchSPECT.root.
>
Are you sure you loaded root using root benchSPECT.root ? That tells root
to 'mount' benchSPECT.root.
> When I typed root [0] .x benchSPECT.C
>
> I have this message: Error in <TFile::TFile> file does not exist
>
> Error: illegal pointer to class object
> Singles 0´0 133 benchSPECT.C:21
>
>
>
> 1. When tried to complie benchmark_spectra.c using:
>
> gcc -o benchmark_spectra benchmark_spectra.c lm
>
> I got this message:
>
> benchmark_spectra.c: In function â:
>
> benchmark_spectra.c:768: error: missing terminating " character
>
> benchmark_spectra.c:769: error: â undeclared (first use in this function)
>
> benchmark_spectra.c:769: error: (Each undeclared identifier is reported
> only
> once
>
> benchmark_spectra.c:769: error: for each function it appears in.)
>
> benchmark_spectra.c:769: error: missing terminating " character
>
> benchmark_spectra.c:771: error: syntax error before â token
>
I had this exact same problem. If you open up benchmark_spectra.c in a
text editor and go to probably line 768 (but check to be sure) you should
see that the line ends and then 769 is a new line. But it should be one
continuous piece of code. But the compiler is "seeing" a new line of code,
which of course is nonsense. If you just delete out any spacing between
the two lines (but make sure to preserve the syntax) and recompile it
should work.
>
>
> 1. Same goes with benchmark_spectra.c
>
> benchmark_projections.c: In function â:
>
> benchmark_projections.c:662: error: missing terminating " character
>
> benchmark_projections.c:663: error: â undeclared (first use in this
> function)
>
> benchmark_projections.c:663: error: (Each undeclared identifier is
> reported
> only once
>
> benchmark_projections.c:663: error: for each function it appears in.)
>
> benchmark_projections.c:663: error: syntax error before â
>
> benchmark_projections.c:663: error: stray â in program
>
> benchmark_projections.c:663: error: missing terminating " character
>
exactly the same problem and solution as for benchmark_spectra.c
>
>
> 1. Does x. file.C file always appear after simulation runs? And how to
> convert .root file to .C file?
>
>
> 1. For benchmarkPET.mac, are there no files for benchmark_spectra.c
> and benchmark_projections.c? Why?
>
>
when I did this I just ran
danieljw$ root benchSPECT.root
root [0] .x benchSPECT.C
it should work (just make sure you have appropriate files in your working
directory)
> I really appreciate your help and explanation. Looking forward to your
> replies.
> Many thanks,
> S
>
> * *
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
More information about the Gate-users
mailing list