struct

Judith Katzy (katzy@nanalpc.phy.uic.edu)
Thu, 12 Mar 1998 11:08:04 -0600 (CST)


hi,

I have problems to define structures in root (none of the example macros
works). What's wrong with the following:

#include "/home/katzy/root/include/TROOT.h"
#include "/home/katzy/root/include/TRint.h"

int main()
{
//TFile hfile("test.root","RECREATE","ROOT static struct test");
typedef struct {Float_t x,y,z;} POINT;
static POINT vertex;
vertex.x = 5.;
printf("vertex.x = %f\n",vertex.x);
}

thanks for help,
Judith