I am using the following files:
application .x testsum.C from root
testsum.C
{
TFile* mcfile = new TFile("/plvm/debdatta/real_neardata/mar_2005/N00006680_0001.spill.sntp.R1.14.root");
TTree* srtree = (TTree*)(mcfile->Get(“NtpSt”));
srtree.MakeProxy(“withfriend”,“sum.C”,"",“nohist”);
srtree.Process(“withfriend.h+”);
}
sum.C
double sum() {
cout<<"snarl no "<<evthdr.date.sec<<endl;
}
I get the flollowing error:
/plvm/debdatta/real_neardata/beamsummary/sum.C:9: error: ‘struct
withfriend::TPx_NtpSREventSummary’ has no member named ‘date’
g++: /plvm/debdatta/real_neardata/beamsummary/./fileP8GWF8.o: No such file or directory
Error in : Compilation failed!
Though the root file has a branch named evthdr.date.sec
I am attaching the withfriend.h file also.
withfriend.h (178 KB)