Hi Patrick,
I don't know what you mean by a "stand alone Tree"
Below is an example of a simple main program creating a Tree with
the corresponding compile/link instruction showing the minimum number
of libs to link with (Linux):
g++ -o ts ts.cxx -I$ROOTSYS/include -L$ROOTSYS/lib -lCore -lCint -lTree -ldl
//file ts.cxx
#include "TTree.h"
#include "TFile.h"
int main() {
TFile f("simple.root","recreate");
double a; int i;
TTree *T = new TTree("T","test");
T->Branch("a",&a,"a/D");
T->Branch("i",&i,"i/i");
for (i=0;i<1000;i++) {
a = i+0.001;
T->Fill();
}
T->Write();
}
Rene Brun
Patrick Murray wrote:
>
> I hope this is not a dumb question:)
>
> I want to use a "stand alone" root tree in the CMS EMU Daq. So the
> question: Is there some subset of root classes that will allow me to do
> this or will I need a full istallation of root on each of my Nodes??
>
> Thanks,
> Pat
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET