Hi Daniel, TNtuple is a simple class to store a list of floats only. I recommend using a TTree instead. On Mon, 6 Jan 2003, Daniel Holmes wrote: > ok, i have 2 questions regarding this class: > > #1 how do i call it from within a CMS/OSCAR/G4 (on afs) application.. > (what should my #include path be??) > When you compile, add -I$ROOTSYS/include in your compiler directive where $ROOTSYS points to the directory where Root is installed. In your application, #include "TTree.h" > #2 i would like one of the leaves to be a 2D array so i would have > x[1->100]. ..how should i update the code below?? > see examples in $ROOTSYS/tutorials/tree1.2.3,4.C Rene Brun > > so far i have only 1D variables of type: > > TNtuple *nt1=new TNtuple("ntuple1","arg11","x:y:z"); > > which i fill with > > nt1->Fill(4,5,6); > > ..now i want to access elements of x[100] individually.. > > many thanks in advance for your help.. > > Dan. > > > > > CMS-Bristol > http://cern.ch/dan.holmes >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET