Hi, I am new in ROOT (just one day :) I develop a small analysis program, which I wrote in c++. Now I need visualization for the data produced - I compiled my classes with root, but when running macro (of my code) "Interpreter error recovered" occurs. This is for class (below only relevant piece of code): class labelArea { public: // and another class inside class areaHolder { public: int lowerX[2],upperX[2],lowerY[2],upperY[2]; areaHolder() { lowerX[0] = 1000000; upperX[0] = -1; lowerY[0] = 1000000; upperY[0] = -1; lowerX[1] = upperX[1] = lowerY[1] = upperY[1] = 0; } }; // end of this inner class int howManyRings; areaHolder *areaData; labelArea(int howRings = 5):howManyRings(howRings) { areaData = new areaHolder[howRings]; } ~labelArea() { delete [] areaData; } }; #endif in the place where I cal for labelArea myvar; myvar.areaData[i].lowerX[0]; // this is in loop interpreter stops. What can I do? (sorry if it is simple and one can read it in manual... I am a newbie with ROOT and want to start as fast as possible :) Thank you in advance, Witek
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:21 MET