Hi rooters,
How can I “clear” results of TSpectrum::Search(), i.e. erase the TPolyMakers which indicate positions of the peaks found in a TH1 spectrum (from scripts/programs)?
Using GUI, I can delete a TPolyMaker by right-clicking near the marker and selecting “Delete”.
According to http://root.cern.ch/root/html522/TSpectrum.html#TSpectrum:Search
[quote]A pointer to the polymarker object can be retrieved later via:
TList *functions = hin->GetListOfFunctions();
TPolyMarker *pm = (TPolyMarker*)functions->FindObject("TPolyMarker")
[/quote]
So I did
and then the application segfaults…
My environment is root v5.22.00 on Fedora 10 i386/x86_64 w/ g++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7).
Thanks in advance,
Kazuyoshi