Hi rooters,
I have a question concerninglLooping a function from another function
I have a fucntion lets say "loopit" declared like that:
void loopit(Int_t iloop)
{
for(Int_t k=0;k<3; k++)
{
signal(iloop);
}
}
It calls the fucntion "signal" 3 times (as you can see).
However the following error message appears (coming from signal())
Error: non class,struct,union object $gPad used with . or ->
Note that without the for loop it works fine...
Now if I remove the gPad->SetLogy() it complains about the
h10->Draw(...); I have later on.. which should be fine anyway...
Can someone help-me out ?
I joined my file for inspection work..
Thanks
--
------------------------------------------------------------
Reinhardt CHAMONAL The University of Edinburgh
Dept. of Physics & Astronomy
email: chamonal@ph.ed.ac.uk King's Buildings, JCMB, 5301
Mayfield Road
phone: +44-131-650 5307 Edinburgh, EH9 3JZ
web: http://www.ph.ed.ac.uk/~chamonal/
http://www.reuh.fr.st
------------------------------------------------------------
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET