[ROOT] TObjString confusion

From: Kevin M. Rhodes (kmr@alizarin.physics.wisc.edu)
Date: Mon Aug 07 2000 - 18:31:43 MEST


Any explanations why this won't work:

{
  gROOT->Reset();
  TObjString *Avars[23] = { "Total", "Debrems", "Dedelta", "Deelse", 
			   "Deepair", "Demunu", "Demuon", "Costhmu", 
			   "Deelse", "Ener", "Gmtns", "Gmtsec", "Id",
			   "Ievent", "Nch", "Nhits", "Nstr", "Ntr", 
			   "Phimu", "Toff","Trigg", "Vmu", "Zmu" };

  TString temp = Avars[0].GetString();
  cout << temp.Data() << endl;
}                                                          

I just need to use these variable names for passing to other functions,
and all I've accomplished is getting their memory adresses to print.
Thanks in advance for any help.

Kevin Rhodes
UW-Madison
Amanda Project



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET