On Mon, 20 Aug 2001, Flemming Videbaek wrote: > I trust the request/asumption is that each DefineHistogram restores the > current directory, when making subdir. The base Book methods does that - it > certainly could save and restore current directory to minimize effects of > coding mistakes. I.e. now BrModule::Book restores the current working directory. Before I modified this function last week it didn't alter gDirectory at all. I forgot to restore gDirectory after adding histograms in subdir of gDirectory to the list of histograms. Now it should be ok. Revision bumped. New tag BRAT-2-0-29. Best wishes from Jens Ivar > ----- Original Message ----- > From: "Djamel Ouerdane" <ouerdane@nbi.dk> > To: <brahms-dev-l@bnl.gov> > Sent: Monday, August 20, 2001 6:35 AM > Subject: histograms > > > > Hi brats, > > > > There is something a bit odd since I've updated my brat to the latest > > version: > > > > the histogram directories don't fall in the right place: if I have 2 > > modules mod1 and mod2, the histos from mod2 will be written in the mod1 > > histo dir because gDirectory points to mod1 dir when it comes to mod2. > > > > I think it has to do with Jens Ivar's last change but I'haven't checked if > > this is right. Jens Ivar, could you take a look at that ? > > > > Thanks > > Djam > > > > -- > > Djamel Ouerdane ------------------------------------------o > > | Niels Bohr Intstitute | Home: | > > | Blegdamsvej 17, DK-2100 Ř | Jagtvej 141 2D, | > > | Fax: +45 35 32 50 16 | DK-2200 Copenhagen N | > > | Tel: +45 35 32 52 69 | +45 35 86 19 74 | > > | http://www.nbi.dk/~ouerdane | > > | ouerdane@nbi.dk | > > o---------------------------------------------------------o > > -- Jens Ivar Jřrdre e-mail: JensIvar.Jordre@fi.uib.no usually: Dep. of Phys., Allégt. 55, N-5007 BERGEN, NORWAY currently: Bldg 510D, P.O.Box 5000, Upton, NY 11973-5000, USA phone: +1-631-344-4223
This archive was generated by hypermail 2b30 : Mon Aug 20 2001 - 15:09:02 EDT