[ROOT] Seg violation in setting axis name of THStack

From: Edward Chen (edward@SLAC.stanford.edu)
Date: Fri Sep 06 2002 - 11:58:30 MEST


Hi - I get a seg violation when I do the following:

  THStack contStack("contStack","SP4 continuum");
  thePlot = (TH1F *) ccbarFile.Get(myPlotName);
  contStack.Add(thePlot);
  if (myAxisTitle != "") contStack.GetXaxis()->SetTitle(myAxisTitle);


If I remove the SetTitle part, the crash doesn't occur.  Am I doing
something wrong?  Thanks.

-Ed



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