Re: Variadic functions

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Apr 14 2000 - 06:33:06 EDT

  • Next message: Ian Bearden: "Monitoring issues..."

    Hi Anders, Kris, et al, 
    
    On Fri, 14 Apr 2000 08:55:14 +0200 (MET DST) Anders Holm <aholm@alf.nbi.dk> wrote:
    > Use of variadic functions
    > 
    > printf uses it. It looks nice but it is a hack.
    
    It's ANSI/ISO C!!! I.e., not a hack!!! 
     
    > Please do not introduce use of variadic functions in new places.
    
    In the sense that CINT has a hard time coping with these, you're
    right - we should probably avoid it. In a general C++ programming way,
    I see no reason _not_ to use it. 
      
    > It is not necessay and it is likely to cause a lot of pain.
    
    The pain is only there because of CINT! 
    
    On Thu, 13 Apr 2000 19:18:26 -0500 hagel@comp.tamu.edu wrote:
    > Hi Konstantin and all,
    > ... The unreal reason is that when I am never sure if I need
    > something again and although I hear about CVS attics, I prefer to
    > leave things were they are.  
    
    It's rather easy to get files from the CVS Attic (just do something
    like "cvs update <-r <tag>|-D <date> brat/raw/src/BrDisIOProxy.cxx"
    and so on), so I see no reason _not_ to do a "cvs remove". In fact
    I'll prefer if it was removed, since it's liable to cause confusion. 
    
    > The second reason is that the proxy stuff has some techniques that I
    > might use for other things and wanted an easy way to look it up.  
    
    Why not copy the stuff to some local directory for your reference? 
    
    On Thu, 13 Apr 2000 19:34:14 -0500 hagel@comp.tamu.edu wrote:
    > Hello all,
    > Sorry for the delay in commenting on this.  The following are replies to
    > Ian's comments below.
    > 
    > 1. Histograms are currently saved by a simple
    > fReferenceMonitor->Write().  So Ian would be correct in saying that the
    > most straightforward way in getting to the spectra is with the monitor.
    > Flemming showed a script to get at spectra, because once you open a root
    > file, you have access to things.  I plan to do something so that you can
    > get to the spectra more straightforwardly, but have not decided on an
    > interface yet.
    
    You can (as of version 1.5.4) browse the histograms via the
    TBrowser!!! Just make sure that the monitori is listed in the top most
    tree of your browser, either by "View->Refresh" or by clicking the
    "back" symbol at the top most node of the browser tree. 
    
    Also, as of version 1.5.5, you can from a BrEventIO object get a
    pointer to the contained ROOT fiel, via the method GetROOTFile().
    Once you got this pointer, it's just a question of using
    TFile::Get(const char*), and so on. 
    
    > 4. I am very .... That might point to a timing problem since
    > putting those print statements slows things down.  
    
    Oh-oh. Hard to deal with! Good luck. 
    
    Cheers, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    



    This archive was generated by hypermail 2b29 : Fri Apr 14 2000 - 06:35:55 EDT