<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Nicolas,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
Thank you very much for your reply. I am now able to compile ROOT scripts from the terminal.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
Have you tried simulating a CT system? In the line,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default"><font face="tahoma, sans-serif">/gate/source/xraygun/gps/histpoint 0.0100 7</font><br>
</div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">I understand that 0.01 refers to energy in MeV, but what does the number 7 refer to? I could not find any documentation about this in Gate/Geant.</font></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">Is it the photon count at that energy? If so, they don't seem to add up to the total photon count from the ROOT file.</font></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">Thanks,<br>Chaitanya.</font></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Apr 21, 2014 at 10:51 AM, <span dir="ltr"><<a href="mailto:arbor@ipnl.in2p3.fr" target="_blank">arbor@ipnl.in2p3.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
It seems that Gate doesn't find the path to ROOT librairies.<br>
You can try to execute the script "/bin/thisroot.sh" from your Root install directory before running the macro (it should set the right librairies path...you can also add this script execution into your bash_profile file).<br>
Hope it will help.<br>
Best regards,<br>
Nicolas<br>
<br>
Chaitanya Kolluru <<a href="mailto:kolluru.chaitanya@gmail.com" target="_blank">kolluru.chaitanya@gmail.com</a>> a écrit :<div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am trying to run a CT simulation in vGate.<br>
<br>
According to the exampleCT pdf file, I have run the simulation and would<br>
like to view the results now. When I try to build the AnalyzeCT.cpp file by<br>
g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT , i get<br>
this:<br>
<br>
/tmp/ccKxJkUu.o: In function `TApplicationImp::~<u></u>TApplicationImp()':<br>
AnalyzeCT.cpp:(.text._<u></u>ZN15TApplicationImpD2Ev[_<u></u>ZN15TApplicationImpD5Ev]+0x12)<u></u>:<br>
undefined reference to `TString::~TString()'<br>
/tmp/ccKxJkUu.o: In function `TCanvasImp::IsA() const':<br>
AnalyzeCT.cpp:(.text._<u></u>ZNK10TCanvasImp3IsAEv[<u></u>TCanvasImp::IsA() const]+0x1):<br>
undefined reference to `TCanvasImp::Class()'<br>
/tmp/ccKxJkUu.o: In function `TApplicationImp::IsA() const':<br>
AnalyzeCT.cpp:(.text._<u></u>ZNK15TApplicationImp3IsAEv[<u></u>TApplicationImp::IsA()<br>
const]+0x1): undefined reference to `TApplicationImp::Class()'<br>
/tmp/ccKxJkUu.o: In function `TApplicationImp::~<u></u>TApplicationImp()':<br>
AnalyzeCT.cpp:(.text._<u></u>ZN15TApplicationImpD0Ev[_<u></u>ZN15TApplicationImpD5Ev]+0x15)<u></u>:<br>
undefined reference to `TString::~TString()'<br>
/tmp/ccKxJkUu.o: In function `int TTree::SetBranchAddress<float><u></u>(char<br>
const*, float*, TBranch**)':<br>
AnalyzeCT.cpp:(.text._<u></u>ZN5TTree16SetBranchAddressIfEE<u></u>iPKcPT_PP7TBranch[int<br>
TTree::SetBranchAddress<float><u></u>(char const*, float*, TBranch**)]+0x21):<br>
undefined reference to `TClass::GetClass(std::type_<u></u>info const&, bool, bool)'<br>
AnalyzeCT.cpp:(.text._<u></u>ZN5TTree16SetBranchAddressIfEE<u></u>iPKcPT_PP7TBranch[int<br>
TTree::SetBranchAddress<float><u></u>(char const*, float*, TBranch**)]+0x78):<br>
undefined reference to `TDataType::GetType(std::type_<u></u>info const&)'<br>
/tmp/ccKxJkUu.o: In function `int TTree::SetBranchAddress<int>(<u></u>char const*,<br>
int*, TBranch**)':<br>
AnalyzeCT.cpp:(.text._<u></u>ZN5TTree16SetBranchAddressIiEE<u></u>iPKcPT_PP7TBranch[int<br>
TTree::SetBranchAddress<int>(<u></u>char const*, int*, TBranch**)]+0x21):<br>
undefined reference to `TClass::GetClass(std::type_<u></u>info const&, bool, bool)'<br>
AnalyzeCT.cpp:(.text._<u></u>ZN5TTree16SetBranchAddressIiEE<u></u>iPKcPT_PP7TBranch[int<br>
TTree::SetBranchAddress<int>(<u></u>char const*, int*, TBranch**)]+0x78):<br>
undefined reference to `TDataType::GetType(std::type_<u></u>info const&)'<br>
/tmp/ccKxJkUu.o: In function `main':<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x5d): undefined reference to<br>
`TApplication::TApplication(<u></u>char const*, int*, char**, void*, int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x69): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0xa3): undefined reference to<br>
`TCanvas::TCanvas(char const*, char const*, int, int, int, int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0xd9): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0xff): undefined reference to<br>
`TFile::TFile(char const*, char const*, char const*, int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x25d): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2aa): undefined reference to<br>
`TH2F::TH2F(char const*, char const*, int, double, double, int, double,<br>
double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2b6): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x303): undefined reference to<br>
`TH2F::TH2F(char const*, char const*, int, double, double, int, double,<br>
double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x30f): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x34a): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x356): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x391): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x39d): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x3d5): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x3e1): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x419): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x425): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x460): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x46c): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x4a7): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x4b3): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x4ee): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x4fa): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x535): undefined reference to<br>
`TH1F::TH1F(char const*, char const*, int, double, double)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x13ec): undefined reference to `gStyle'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1404): undefined reference to<br>
`TStyle::SetPalette(int, int*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1409): undefined reference to `gStyle'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1419): undefined reference to<br>
`TStyle::SetOptStat(char const*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1425): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1484): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1490): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x14ef): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x14fb): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1555): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1561): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x15bb): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x15c7): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1626): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1632): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1691): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x169d): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x16fc): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1708): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1767): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1773): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x17d2): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x17de): undefined reference to<br>
`TStorage::ObjectAlloc(<u></u>unsigned int)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x183d): undefined reference to<br>
`TPad::TPad(char const*, char const*, double, double, double, double,<br>
short, short, short)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1ad5): undefined reference to<br>
`TH1::GetXaxis() const'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1b50): undefined reference to<br>
`TH1::GetXaxis() const'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1bd0): undefined reference to<br>
`TH1::GetXaxis() const'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1c50): undefined reference to<br>
`TH1::GetXaxis() const'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1cd9): undefined reference to<br>
`TH1::GetXaxis() const'<br>
/tmp/ccKxJkUu.o:AnalyzeCT.cpp:<u></u>(.text.startup+0x1d62): more undefined<br>
references to `TH1::GetXaxis() const' follow<br>
/tmp/ccKxJkUu.o: In function `main':<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1eba): undefined reference to<br>
`TApplication::Run(bool)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x1efc): undefined reference to<br>
`TApplication::~TApplication()<u></u>'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2157): undefined reference to<br>
`TObject::operator delete(void*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2166): undefined reference to<br>
`TApplication::~TApplication()<u></u>'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x21cc): undefined reference to<br>
`TObject::operator delete(void*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2215): undefined reference to<br>
`TObject::operator delete(void*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x2228): undefined reference to<br>
`TObject::operator delete(void*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x223b): undefined reference to<br>
`TObject::operator delete(void*)'<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x224e): undefined reference to<br>
`TObject::operator delete(void*)'<br>
/tmp/ccKxJkUu.o:AnalyzeCT.cpp:<u></u>(.text.startup+0x2264): more undefined<br>
references to `TObject::operator delete(void*)' follow<br>
/tmp/ccKxJkUu.o: In function `_GLOBAL__sub_I_main':<br>
AnalyzeCT.cpp:(.text.startup+<u></u>0x255b): undefined reference to<br>
`TVersionCheck::TVersionCheck(<u></u>int)'<br>
/tmp/ccKxJkUu.o:(.rodata._<u></u>ZTV15TApplicationImp[vtable for<br>
TApplicationImp]+0x3c): undefined reference to<br>
`TApplicationImp::ShowMembers(<u></u>TMemberInspector&)'<br>
/tmp/ccKxJkUu.o:(.rodata._<u></u>ZTV15TApplicationImp[vtable for<br>
TApplicationImp]+0x40): undefined reference to<br>
`TApplicationImp::Streamer(<u></u>TBuffer&)'<br>
/tmp/ccKxJkUu.o:(.rodata._<u></u>ZTV10TCanvasImp[vtable for TCanvasImp]+0x7c):<br>
undefined reference to `TCanvasImp::ShowMembers(<u></u>TMemberInspector&)'<br>
/tmp/ccKxJkUu.o:(.rodata._<u></u>ZTV10TCanvasImp[vtable for TCanvasImp]+0x80):<br>
undefined reference to `TCanvasImp::Streamer(TBuffer&<u></u>)'<br>
collect2: ld returned 1 exit status<br>
<br>
Please help me out.<br>
<br>
Thanks,<br>
Chaitanya.<br>
<br>
</blockquote>
<br>
<br>
<br></div></div>
------------------------------<u></u>------------------------------<u></u>----------------<br>
This message was sent using the webmail platform from IN2P3 Computing Center<br>
<br>
<br>
</blockquote></div><br></div></div>