[ROOT] Problem.

From: Patrick Murray (pjmurray@ucdavis.edu)
Date: Sat Feb 09 2002 - 01:22:53 MET


My program works sometimes and not others. Can anyone explain this error?

CINT/ROOT C/C++ Interpreter version 5.15.04, June 17 2001
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .L canpat6.cpp+
Creating shared library /home/pmurray/solar2/root/./canpat6_cpp.so
Warning: Illegal numerical expression
1548Int_ttoPlotTUSTOF[1548Int_ttoPlot[1548Int_tto16Plot[1548Int_tto20Plot[1548Int_tto23Plot[1548Int_tto27Plot[1548Int_thitsChan[32];Int_thitFreq[16];Int_tdeltaTime[400Int_tdt16[400Int_tdt20[400Int_tdt23[400Int_tdt27[400Int_tdtChannels[400Int_ttoChannels[15
FILE:canpat4.cpp LINE:402
Warning: Illegal numerical expression
1548Int_ttoPlotTUSTOF[1548Int_ttoPlot[1548Int_tto16Plot[1548Int_tto20Plot[1548Int_tto23Plot[1548Int_tto27Plot[1548Int_thitsChan[32];Int_thitFreq[16];Int_tdeltaTime[400Int_tdt16[400Int_tdt20[400Int_tdt23[400Int_tdt27[400Int_tdtChannels[400Int_ttoChannels[15
FILE:canpat4.cpp LINE:402
.
.
many times
.
.
Warning: Illegal numerical expression
1548Int_ttoPlotTUSTOF[1548Int_ttoPlot[1548Int_tto16Plot[1548Int_tto20Plot[1548In$
FILE:canpat4.cpp LINE:402

here is LINE:402
401: rates->deadtime_cur[rates->counter1] =
402: 1.0 - rates->sc1_rate[11][rates->counter1]/rates->sc1_rate[10][rates->counter1];


I saw the following email and thought maybe it could be related:

>>root [2] NS->SetEstimate(NS->GetEntries())
>> Error: Symbol NS is not defined in current scope
>>FILE:/tmp/filefIIcvo_cint
>>LINE:1

Rene Brun Writes:
>This is a CINT problem. You should code like:

>Int_t nentries = (INt_t)NS->GetEntries();
>NS->SetEstimate(nentries);

>I was thinking, by the way, to automatize this frequent case with
>  NS->SetEstimate(0);

To further my confusion. We tried my program on root 3.01 3.02 and an
older version. The problem shows up on ver 3.01 and 3.02 but not the older
version. The exact error I get is:

Error: No symbol dt23[counter] in current scope  FILE:canpat4.cpp
LINE:1593
*** Interpreter error recovered ***
root [2]

But that is not the case and the program works with about 9 out of 10 of
my input files. Any ideas?

Thank you,

Pat



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:41 MET