Message: Re: ROOT with Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: ROOT with Geant4 

Forum: Analysis
Re: None ROOT with Geant4
Re: None Re: ROOT with Geant4 (valerie)
Date: 04 Apr, 2004
From: <>

Hi all,

I have a question about calling ROOT functions (like TFile, THF1 etc) in Geant4.6. :

In an earlier post to similar question answered by <>, an entry to the makefile --------------------------------------- ifdef ROOTSYS CPPFLAGS += -DG4ANALYSIS_USE_ROOT $(shell $(ROOTSYS)/bin/root-config --cflags) ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS)) ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS)) ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS)) LDLIBS += $(ROOTLIBS) endif ------------------------------------- is suggested. When I do this addiditon into the GNUMakefile for the example A01 and try to open a root file with , TFile *f = new TFile("test.root")

I get error messages in the compilation as:
src/ error: `TFile' undeclared (first use this 
src/ error: (Each undeclared identifier is reported 
   only once for each function it appears in.)
src/ error: `ff' undeclared (first use this function)

My question is: Is this a right way of opening, wiritng into ROOT files, histograms, Trees etc in Geant4 and What am I doing wrong here to get the error meassges?

I would really appreciate any comments in this issue?

Thanks much, Ahmet.

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

1 Idea: root   (valerie - 05 Apr, 2004)
 Add Message Add Message
to: "Re: ROOT with 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 ]