Error: Missing one of ',)' expected at or after line

Hi all,

this problem is very simple, I just can’t see the solution right now. I would like to extract data from a file and make plots form it. I keep getting error messages

Error: Missing one of ‘,)’ expected at or after line 26.
Error: Unexpected end of file (G__fgetstream_template():2) /home/cpv/nina/PedestalAttempt.C:91:
Error: Missing one of ‘,;{(’ expected at or after line 91.
Error: Unexpected end of file (G__fgetstream_template():2) /home/cpv/nina/PedestalAttempt.C:91:
Error: Missing one of ‘{’ expected at or after line 91.
Error: Unexpected end of file (G__fignorestream():3) /home/cpv/nina/PedestalAttempt.C:91:

even though all the brackets should be matching well.

What is at line 26 is this:

for(int i=0; i<nCrate; i++) {
tr[i]->SetBranchAddress(“nFADC”, &NFADC[i]);
tr[i]->SetBranchAddress(“Data”,Data[i]);
tr[i]->SetBranchAddress(“TimeStamp”,TimeStamp[i]);
tr[i]->SetBranchAddress(“SpillNo”,Spill[i]);
}

Line 91:
c1-> print(“c1.pdf”);

do you know what could the problem be/

Thank you very much!

You should check the syntax of your code. Eventually try to compile your code with ACliC,
see root.cern.ch/download/doc/ROOTUs … 07s09.html
to get more meaningful error messages from the compiler

Lorenzo

P.S. I have moved this post to the ROOT support board, since it is not related to Stat and Math. Please post in the right Forum next time.