Re: ROOT question --- SetMakeClass

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed Sep 25 2002 - 07:24:39 EDT

  • Next message: Truls Martin Larsen: "Small updatte to BrDetectorTrack.cxx"

    Hi Hiro et al, 
    
    Hironori Ito <hito@students.phsx.ukans.edu> wrote concerning
    ROOT question --- SetMakeClass [Tue, 24 Sep 2002 16:25:55 -0500 (CDT)]
    ----------------------------------------------------------------------
    > 	Hello.  I have a ROOT question to ROOT experts.  What does really
    > SetMakeClass (TTree) function  do?   
    
    Check out Rene's respond here [1] (you did search roottalk didn't
    you?).  Also checkout the code of `TBranchElement' [2]. 
    
    > I have a  this little program that read a tree and does a few
    > things.   Previously, I did not need this function.  
    
    This requirement was added around version 3.01 [3] - just what
    version of ROOT are you using?  
    
    As Rene so often points out, when sending questions to roottalk (which
    also goes for this list), please state:
    
      * Operating system and its version (e.g., Red Hat Linux 7.3)
      * Architecture (e.g., i386, MIPS, SPARC) 
      * Compiler (e.g., `GCC' 2.96-RH, GCC 3.2) 
      * ROOT version (e.g., 3.03/09, CVS head [as of ...]) 
      * Additional relevant information for the question at hand e.g.,
        MySQL version.
    
    and for this list in particular: 
    
      * BRAT, BRAG, BROP, BREG, BRED, BDST, ... version number. 
      
    
    Anyway, I strongly advice everyone to update to ROOT 3.03/09 ASAP, as
    BRAT works a lot better with newer version of ROOT.
    
    > Now, I must call this function ... 
    
    `member function' or `method'.  `function' means a global function
    (possibly in some namespace). 
    
    > ... (It took me about 6hr to figure that out.)  What is this
    > function?  It seems that by setting  SetMakeClass(1), all branch in
    > a tree become available.  But, I have no clue.  ROOT page was not
    > helpful to me for this function.   I am just  curious.
    
    Well, I guess you didn't read the posting [1].  It poped up when I did
    a search for `SetMakeClass' in the normal ROOT search engine. 
    
    Finally, I think questions like this should go to roottalk rather than
    this list.  After all, it's not specific to BRAHMS, and you can be
    darn sure someone else have been wondering about the same thing, so
    why not increase the common knowledge base?  Also, it may prompt the
    ROOT people to add some documentation of that that member function.
    
    Yours, 
    
     ____ |  Christian Holm Christensen 
      |_| |	 -------------------------------------------------------------
        | |	 Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
         _|	          DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
        _|	          Denmark                    Office: (+45) 353  25 305
     ____|	 Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
     | |
    
    [1] http://root.cern.ch/root/roottalk/roottalk02/1594.html
    [2] http://root.cern.ch/root/html/src/TBranchElement.cxx.html
    [3] http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/html/examples/V3.01.txt.html?SetMakeClass#first_hit
    



    This archive was generated by hypermail 2b30 : Wed Sep 25 2002 - 07:25:45 EDT