Hallo folks, I am modifying an existing analysis that operates on a root tree using member functions to put and read variable values in the tree. Now I have added a further variable of type Short_t to the tree and its setter / getter - function to the class. I can acces the variable's values with the Tree Viewer, but I cannot access it with the getter function, CINT mourns: "non class, struct or union object $record used with -> or ".", while for other functions of the class it works: Short_t clussize = record->getClussize(i); // the new function, works not Double_t x = record->getX(i); // an old function, does work with the class: class Record : public TObject { private: Int_t fev; Float_t x[NMOD]; Short_t clussize[NMOD]; public: Record(); virtual ~Record(); // setters : void Clear(); void setEv(Int_t ev) {fev=ev;} void setx(Int_t n,Float_t f) {x[n]=f;} void setClussize(Int_t n,Short_t s) {clussize[n]=s;} // getters : Int_t getEv() {return fev;} Short_t getClussize(Int_t n) {return clussize[n];} Float_t getx(Int_t n) {return x[n];} ClassDef(Record,1) // lt event class Can anyone help me, do I have to do some special compiling ? Martin
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:22 MET