Message: Re: Novice Needs Help Linking ROOT and Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Novice Needs Help Linking ROOT and Geant4 

Forum: Installation and Configuration
Re: None Novice Needs Help Linking ROOT and Geant4 (Jacob Sniff)
Date: 07 Dec, 2011
From: michel maire <michel maire>

On Thu, 06 Oct 2011 17:13:15 GMT, Jacob Sniff wrote:
> Hi all,
> 
> I am having problems linking ROOT to Geant4. I was told that I should
> just add a couple of lines of code to my gnu make file:
> 
> CPPFLAGS += `root --cflags` LDFLAGS += `root --libs`
> 
> But, when I try to compile it, it gives some errors:
> 
> /bin/sh: root: command not found In file included from
> src/SteppingAction.cc:12: include/Analysis.hh:16:22: error: TProfile.h:
> No such file or directory include/Analysis.hh:17:18: error: TH1F.h: No
> such file or directory Making dependency for file src/StackingAction.cc
> ... /bin/sh: root: command not found In file included from
> src/StackingAction.cc:4: include/Analysis.hh:16:22: error: TProfile.h:
> No such file or directory include/Analysis.hh:17:18: error: TH1F.h: No
> such file or directory Making dependency for file src/RunAction.cc ...
> 
> Does anyone know what I have to explicitly do to get Geant4 to link to
> Root? I am a novice at this and in fact, I am new to the C++ language,
> so please walk me through all the steps. I just want to be able to
> create some histograms from a Geant4 simulation to later use in ROOT.
> 
> Thank you, Jacob
> 

  You can have a look to examples/extended/analysis/AnaEx02.
  See in particular Readme, GNUmakefile and HistoManager

        Michel

 Add Message Add Message
to: "Re: Novice Needs Help Linking ROOT and Geant4"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]