Message: Re: ROOT and GEANT4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: ROOT and GEANT4 

Keywords: ROOT linking
Forum: Analysis
Re: Question ROOT and GEANT4 (Ron McNabb)
Date: 04 Jun, 2004
From: I Cornelius <I Cornelius>

Ciao, 
 I've been using ROOT with geant4 without problems. Just had to add the 
following flags to the GNUMakefile (see below), then include the relevant
 ROOT header files within my source code. 

Regards, 
Iwan

ps. 
I am using Redhat 9.0 with gcc version 3.2.2, root version 3.10/01,
geant 4.6.1 built with shared libraries.

 
# Root (exlude libNew and libpthread from library list)
ROOTINC       = -I$(ROOTSYS)/include
 
ROOTLIBS      = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
ROOTLIBS      := $(filter-out -lNew,$(ROOTLIBS))
ROOTLIBS      := $(filter-out -lpthread,$(ROOTLIBS))
 
# Extra flags for G4
 
CPPFLAGS += $(ROOTINC)
 
LDLIBS   += $(ROOTLIBS)
#----------------------------------------------------------------

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: 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 ]