MakeProxy

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)

Hi,

This a defect in MakeProxy. Can you please give me access to your root file so that I can correct the problem?

In the meantime, you might be able to access the information by using just, evthdr.sec.

Cheers,
Philippe.

Hi Philippe,
thanks for your reply. I am attaching the root file. But even the evtdhr.sec variable doesn’t work. It gives an error that looks like:

Error in : Unable to initialize evthdr.sec

                             - thanks Debdatta.

N00006680_0001.spill.sntp.R1.14.root (367 KB)