Hi Stephen, You can remove an histogram from the list of objects supported by the current directory via h->SetDirectory(0). In the version 2.24/03, I have added a static function to TH1 static void TH1::AddDirectory(Bool_t add=kTRUE) if you do TH1::AddDirectory(0), from this point, histograms will not be automatically added to the current directory. Rene Brun On Mon, 1 May 2000, Stephen Bailey wrote: > > Hi. > > I sometimes use temporary histograms within a function > to simplify some calculation. Since each histogram > apparently has to have a unique name, I sometimes end > up stepping on some histogram name that I had used > elsewhere, either blowing it away or getting an error > about different histogram types of the same name being > used. Is there a simple way around this problem? > > Thanks. > > Stephen > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET