Dear concerned,.. each time I send an email to the root mailing list, I get an error email back,.. I felt I should report this,.. a sample email can be found below,.. Best Wishes, Selim -------- Original Message -------- From: MAILER-DAEMON@usa.net Subject: Processing Error To: selim.issever@desy.de Intended recipient: mnott@usa.net The following mail has been returned because it encountered an error while being processed. Please try to resend this message. A notice of this error has been reported to the POSTMASTER at USA.NET which will attempt to contact the intended recipient. --------RETURNED MAIL FOLLOWS-------- Received: from popper.gwdg.de by apps01 with [Collected by] USA.NET Rover (vM3.3.0.56) for mnott@usa.net with ESMTP id 894DkPcfE9460R01; Tue, 16 Nov 1999 02:31:30 GMT Received: by gwdu42 (mbox mnott) (with Cubic Circle's cucipop (v1.31 1998/05/13) Tue Nov 16 03:31:00 1999) X-From_: owner-roottalk@pcroot.cern.ch Mon Nov 15 19:58:42 1999 Return-path: <owner-roottalk@pcroot.cern.ch> Envelope-to: mnott@gwdg.de Delivery-date: Mon, 15 Nov 1999 19:58:42 +0100 Received: from pcroot.cern.ch ([137.138.202.252]) by gwdu42.gwdg.de with esmtp (Exim 3.03 #2) id 11nRKs-0006xb-00 for mnott@gwdg.de; Mon, 15 Nov 1999 19:58:42 +0100 Received: (from majordomo@localhost) by pcroot.cern.ch (8.8.7/8.8.7) id SAA19512 for roottalk-outgoing; Mon, 15 Nov 1999 18:49:52 +0100 Received: from newmint.cern.ch (newmint.cern.ch [137.138.26.94]) by pcroot.cern.ch (8.8.7/8.8.7) with ESMTP id SAA19509 for <roottalk@pcroot.cern.ch>; Mon, 15 Nov 1999 18:49:51 +0100 Received: from mail1-195.desy.de (mailserver1.desy.de [131.169.87.109]) by newmint.cern.ch (8.9.3/8.9.3) with ESMTP id SAA02592 for <roottalk@pcroot.cern.ch>; Mon, 15 Nov 1999 18:49:51 +0100 (MET) X-Authentication-Warning: newmint.cern.ch: Host mailserver1.desy.de [131.169.87.109] claimed to be mail1-195.desy.de Received: from desy.de (issever@elif.desy.de [131.169.206.75]) by mail1-195.desy.de (8.8.5/8.8.5/R) with ESMTP id SAA16003; Mon, 15 Nov 1999 18:49:20 +0100 (MET) Message-ID: <3830479F.E956641A@desy.de> Date: Mon, 15 Nov 1999 18:49:19 +0100 From: Selim Issever <selim.issever@desy.de> Organization: DESY X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.34 i586) X-Accept-Language: en MIME-Version: 1.0 To: Mailing List: ROOT <roottalk@pcroot.cern.ch> Subject: Re: ttree ntuple with UShort_t References: <382D95C4.5DB49A93@desy.de> <38303FF2.4F5416D8@cern.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-roottalk@pcroot.cern.ch Precedence: bulk Status: O X-Status: X-Keywords: X-UID: 396 Hello,.. correct me, if I am wrong,.. but as far as I remember a struct is nothing else than a class with public members?!?... so the struct is a class,.. or do you refer to "root classes" (ClassDef, ClassImp)? Cheerio, Selim Rene Brun wrote: > > Hi Selim, > This is an alignment problem and it is machine dependent. > When you use a class instead of a struct, rootcint can generate the > appropriate code (class::ShowMembers) to compute the relative offsets of > data members with respect to the pointer to the object. > With struct, the only thing that we can do is to assume that the > compiler > will store in memory the struct items serialy like in the struct > definition. > However, most compilers, for performance reasons, will do the alignment > to a 4 or even 8 bytes boundary (the longest element in the struct). > You SHOULD NOT use a struct as input for a branch if the struct contains > members of different sizes. > Use a class instead. This has the additional advantage that the element > names and types are known and the branch definition will be simpler. > > Rene Brun > -- Selim Issever | Tel: 040 8998-2843 +- C++ -- The language in which - DESY-F15 | Fax: 040 8998-4033 +- only friends can access your - Notkestr. 85 | selim.issever@desy.de +- private members. -- Anon. ---- 22603 Hamburg/Germany | http://www.physik.uni-dortmund.de/~issevers ---------END OF RETURNED MAIL--------
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET