Loading libraries / compiling files in cint

Hi all,

I have a quite small source file which, in order to be compiled, needs some other files.
So far I typed the lines below every time I started root.

.L common/SetGraphicProperties.cxx++
.L tools/HistoTools.C++
.L BTag/BTaggingHistos.C++
.L ttbar/AnalysisHistos.C++

I wonder if this could be done in a macro loadall.C:
{
.L common/SetGraphicProperties.cxx++
.L tools/HistoTools.C++
.L BTag/BTaggingHistos.C++
.L ttbar/AnalysisHistos.C++
}

and then type .x loadall.C.
This does not work. I tried to guess other things like:

gSystem->Load(“common/SetGraphicProperties.cxx”)

or

gSystem->CompileMacro(“common/SetGraphicProperties.cxx”)

but they all require a library .so of the given file (which is not there of course).

Is there some way to do that?

Thanks
Andi

Use

{ gROOT->ProcessLine(".L common/SetGraphicProperties.cxx+"); gROOT->ProcessLine("tools/HistoTools.C+"); gROOT->ProcessLine("BTag/BTaggingHistos.C+"); gROOT->ProcessLine("ttbar/AnalysisHistos.C+"); }

Cheers,
Philippe.

PS. gSystem->CompileMacro(“common/SetGraphicProperties.cxx”) should also have worked