[Gate-users] Unable to build and run AnalyzeCT.cpp (example_CT)
Chaitanya Kolluru
kolluru.chaitanya at gmail.com
Tue Apr 22 08:02:17 CEST 2014
Hi Nicolas,
Thank you very much for your reply. I am now able to compile ROOT scripts
from the terminal.
Have you tried simulating a CT system? In the line,
/gate/source/xraygun/gps/histpoint 0.0100 7
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.
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.
Thanks,
Chaitanya.
On Mon, Apr 21, 2014 at 10:51 AM, <arbor at ipnl.in2p3.fr> wrote:
> Hi,
> It seems that Gate doesn't find the path to ROOT librairies.
> 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).
> Hope it will help.
> Best regards,
> Nicolas
>
> Chaitanya Kolluru <kolluru.chaitanya at gmail.com> a écrit :
>
>
> Hi,
>>
>> I am trying to run a CT simulation in vGate.
>>
>> According to the exampleCT pdf file, I have run the simulation and would
>> like to view the results now. When I try to build the AnalyzeCT.cpp file
>> by
>> g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT , i get
>> this:
>>
>> /tmp/ccKxJkUu.o: In function `TApplicationImp::~TApplicationImp()':
>> AnalyzeCT.cpp:(.text._ZN15TApplicationImpD2Ev[_
>> ZN15TApplicationImpD5Ev]+0x12):
>> undefined reference to `TString::~TString()'
>> /tmp/ccKxJkUu.o: In function `TCanvasImp::IsA() const':
>> AnalyzeCT.cpp:(.text._ZNK10TCanvasImp3IsAEv[TCanvasImp::IsA()
>> const]+0x1):
>> undefined reference to `TCanvasImp::Class()'
>> /tmp/ccKxJkUu.o: In function `TApplicationImp::IsA() const':
>> AnalyzeCT.cpp:(.text._ZNK15TApplicationImp3IsAEv[TApplicationImp::IsA()
>> const]+0x1): undefined reference to `TApplicationImp::Class()'
>> /tmp/ccKxJkUu.o: In function `TApplicationImp::~TApplicationImp()':
>> AnalyzeCT.cpp:(.text._ZN15TApplicationImpD0Ev[_
>> ZN15TApplicationImpD5Ev]+0x15):
>> undefined reference to `TString::~TString()'
>> /tmp/ccKxJkUu.o: In function `int TTree::SetBranchAddress<float>(char
>> const*, float*, TBranch**)':
>> AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch[int
>> TTree::SetBranchAddress<float>(char const*, float*, TBranch**)]+0x21):
>> undefined reference to `TClass::GetClass(std::type_info const&, bool,
>> bool)'
>> AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch[int
>> TTree::SetBranchAddress<float>(char const*, float*, TBranch**)]+0x78):
>> undefined reference to `TDataType::GetType(std::type_info const&)'
>> /tmp/ccKxJkUu.o: In function `int TTree::SetBranchAddress<int>(char
>> const*,
>> int*, TBranch**)':
>> AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch[int
>> TTree::SetBranchAddress<int>(char const*, int*, TBranch**)]+0x21):
>> undefined reference to `TClass::GetClass(std::type_info const&, bool,
>> bool)'
>> AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch[int
>> TTree::SetBranchAddress<int>(char const*, int*, TBranch**)]+0x78):
>> undefined reference to `TDataType::GetType(std::type_info const&)'
>> /tmp/ccKxJkUu.o: In function `main':
>> AnalyzeCT.cpp:(.text.startup+0x5d): undefined reference to
>> `TApplication::TApplication(char const*, int*, char**, void*, int)'
>> AnalyzeCT.cpp:(.text.startup+0x69): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0xa3): undefined reference to
>> `TCanvas::TCanvas(char const*, char const*, int, int, int, int)'
>> AnalyzeCT.cpp:(.text.startup+0xd9): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0xff): undefined reference to
>> `TFile::TFile(char const*, char const*, char const*, int)'
>> AnalyzeCT.cpp:(.text.startup+0x25d): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x2aa): undefined reference to
>> `TH2F::TH2F(char const*, char const*, int, double, double, int, double,
>> double)'
>> AnalyzeCT.cpp:(.text.startup+0x2b6): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x303): undefined reference to
>> `TH2F::TH2F(char const*, char const*, int, double, double, int, double,
>> double)'
>> AnalyzeCT.cpp:(.text.startup+0x30f): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x34a): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x356): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x391): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x39d): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x3d5): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x3e1): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x419): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x425): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x460): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x46c): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x4a7): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x4b3): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x4ee): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x4fa): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x535): undefined reference to
>> `TH1F::TH1F(char const*, char const*, int, double, double)'
>> AnalyzeCT.cpp:(.text.startup+0x13ec): undefined reference to `gStyle'
>> AnalyzeCT.cpp:(.text.startup+0x1404): undefined reference to
>> `TStyle::SetPalette(int, int*)'
>> AnalyzeCT.cpp:(.text.startup+0x1409): undefined reference to `gStyle'
>> AnalyzeCT.cpp:(.text.startup+0x1419): undefined reference to
>> `TStyle::SetOptStat(char const*)'
>> AnalyzeCT.cpp:(.text.startup+0x1425): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x1484): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1490): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x14ef): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x14fb): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x1555): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1561): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x15bb): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x15c7): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x1626): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1632): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x1691): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x169d): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x16fc): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1708): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x1767): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1773): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x17d2): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x17de): undefined reference to
>> `TStorage::ObjectAlloc(unsigned int)'
>> AnalyzeCT.cpp:(.text.startup+0x183d): undefined reference to
>> `TPad::TPad(char const*, char const*, double, double, double, double,
>> short, short, short)'
>> AnalyzeCT.cpp:(.text.startup+0x1ad5): undefined reference to
>> `TH1::GetXaxis() const'
>> AnalyzeCT.cpp:(.text.startup+0x1b50): undefined reference to
>> `TH1::GetXaxis() const'
>> AnalyzeCT.cpp:(.text.startup+0x1bd0): undefined reference to
>> `TH1::GetXaxis() const'
>> AnalyzeCT.cpp:(.text.startup+0x1c50): undefined reference to
>> `TH1::GetXaxis() const'
>> AnalyzeCT.cpp:(.text.startup+0x1cd9): undefined reference to
>> `TH1::GetXaxis() const'
>> /tmp/ccKxJkUu.o:AnalyzeCT.cpp:(.text.startup+0x1d62): more undefined
>> references to `TH1::GetXaxis() const' follow
>> /tmp/ccKxJkUu.o: In function `main':
>> AnalyzeCT.cpp:(.text.startup+0x1eba): undefined reference to
>> `TApplication::Run(bool)'
>> AnalyzeCT.cpp:(.text.startup+0x1efc): undefined reference to
>> `TApplication::~TApplication()'
>> AnalyzeCT.cpp:(.text.startup+0x2157): undefined reference to
>> `TObject::operator delete(void*)'
>> AnalyzeCT.cpp:(.text.startup+0x2166): undefined reference to
>> `TApplication::~TApplication()'
>> AnalyzeCT.cpp:(.text.startup+0x21cc): undefined reference to
>> `TObject::operator delete(void*)'
>> AnalyzeCT.cpp:(.text.startup+0x2215): undefined reference to
>> `TObject::operator delete(void*)'
>> AnalyzeCT.cpp:(.text.startup+0x2228): undefined reference to
>> `TObject::operator delete(void*)'
>> AnalyzeCT.cpp:(.text.startup+0x223b): undefined reference to
>> `TObject::operator delete(void*)'
>> AnalyzeCT.cpp:(.text.startup+0x224e): undefined reference to
>> `TObject::operator delete(void*)'
>> /tmp/ccKxJkUu.o:AnalyzeCT.cpp:(.text.startup+0x2264): more undefined
>> references to `TObject::operator delete(void*)' follow
>> /tmp/ccKxJkUu.o: In function `_GLOBAL__sub_I_main':
>> AnalyzeCT.cpp:(.text.startup+0x255b): undefined reference to
>> `TVersionCheck::TVersionCheck(int)'
>> /tmp/ccKxJkUu.o:(.rodata._ZTV15TApplicationImp[vtable for
>> TApplicationImp]+0x3c): undefined reference to
>> `TApplicationImp::ShowMembers(TMemberInspector&)'
>> /tmp/ccKxJkUu.o:(.rodata._ZTV15TApplicationImp[vtable for
>> TApplicationImp]+0x40): undefined reference to
>> `TApplicationImp::Streamer(TBuffer&)'
>> /tmp/ccKxJkUu.o:(.rodata._ZTV10TCanvasImp[vtable for TCanvasImp]+0x7c):
>> undefined reference to `TCanvasImp::ShowMembers(TMemberInspector&)'
>> /tmp/ccKxJkUu.o:(.rodata._ZTV10TCanvasImp[vtable for TCanvasImp]+0x80):
>> undefined reference to `TCanvasImp::Streamer(TBuffer&)'
>> collect2: ld returned 1 exit status
>>
>> Please help me out.
>>
>> Thanks,
>> Chaitanya.
>>
>>
>
>
> ------------------------------------------------------------
> ----------------
> This message was sent using the webmail platform from IN2P3 Computing
> Center
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140422/320d3bb6/attachment-0001.html>
More information about the Gate-users
mailing list