BRAT update (was Re: Createing a ZDC detector in the database)

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Thu Mar 22 2001 - 15:45:59 EST

  • Next message: Stephen J. Sanders: "How do I tell brat version?"

    Hi Michael et al, 
    
    On Thu, 22 Mar 2001 12:06:27 -0600 (CST)
    Michael Murray <murray@cyclotronmail.tamu.edu> wrote
    concerning ": Createing a ZDC detector in the database":
    >      Dear Flemming, Djamel and Christian,
    >                                                      I am trying to use
    > dpall/CreateDetector
    >  to Create detector for the ZDC in a local database.
    > What I thought to do was to make detector ZDCLeft and ZDCRight both of
    > type ZDC in sector Global.
    > 
    >  it seems that every time I fail to correctly make the type of detector, more
    >  specifically   type->GetDBID(); returns 0. Do you have any
    > suggestions of how I should proceed with this?
    > 
    >   This is how I tried to create the ZDCLeft and ZDCRight detectors.
    
    I'm a bit puzzled that you got that far at all. Anyway, first off, it
    seems that you are using an old BRAT version - Please update to 1.15
    ASAP. 
    
    It was a bug in the BrDbTables classes that I accidently introduced by
    taking out the use of exceptions in the BrDb classes. I've fixed it
    now, so you should be able use CreateDetector. 
    
    Please note, that splitting the calibration object into two may not
    nessecarily be a good thing (BrZdcRdo is one object). Maybe Flemming
    or Kris has some thoughts about this. 
    
    >       [murray@scan5 dbapp]$ ./CreateDetector
    
    You must be more elaborate on the command line from version 1.15 and
    up: 
    
     ./CreateDetector -M <mainhost> -U <user> 
    
    (at least, use --help option for more help). I guess you hostname is
    scan5.<something> 
    
      cholm:~/work/brahms/brat/dbapp> ./CreateDetector -M hilux12.nbi.dk -u insert 
      *************************************
      **                                 **
      ** Insert detector info into DB    **
      **                                 **
      *************************************
       What's the name of the detector:         ZDC
       What's the type of the detector:         ZDC
       What sector does the detector belong to: GLOBAL
      Warning in <BrMainDb::GetSingle>: Too many or too few matches on query SELECT * FROM DetectorType WHERE name LIKE 'ZDC': 0
      Adding detector type ZDC to main database
      Setup is done
    
    notice that I use my file ~/.bratdbrc for authentification with the
    MySQL server. The format of that file is 
    
      <host> <BRAHMS DB> <user> <passwd> 
    
    The file ~/.bratdbrc MUST have mode 600! (and not 4600 or something,
    exactly 600). This is NOT a bug but a feature: by insisting on proper
    protection of the file, we have less changes of corruption and
    therefore higher security. 
    
    Thank you for the very detailed report! Giving that kind of detail
    really made it much easier for me to track down the problem. 
    
    Yours, 
    
    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 : Thu Mar 22 2001 - 15:47:23 EST