inconsistency in TFile::Write between DEC/OSF and SunOS?

From: stefan kluth (skluth@mh1.lbl.gov)
Date: Wed Nov 25 1998 - 19:13:11 MET


Hi,

I noticed that the behaviour of TFile::Write in root 2.00/13 is different
between the DEC unix and SunOS versions of root. The difference is that
TFile::Write on SunOS *always* prints a message like:

TFile Writing Name=file1.root Title=Created for you by RooTupleManager

while on DEC unix this is controlled by the value of the global gDebug. If
gDebug==0 the message is not printed, and vice versa. 

The relevant source code from BASE_File.cxx for TFile::Write looks like
this (version 2.00/13):

...
   if (gDebug) {
      if (!GetTitle() || strlen(GetTitle()) == 0)
         Printf("TFile Writing Name=%s", GetName());
      else
         Printf("TFile Writing Name=%s Title=%s", GetName(), GetTitle());
   }
...

>From this I conclude that the behaviour on DEC unix is right, and that
SunOS is wrong, right?

cheers, Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
-  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
-  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET