Re: Latest Geometries in Database

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed Mar 27 2002 - 04:40:17 EST

  • Next message: Flemming Videbaek: "Fw: Diffraction at RHIC Workshop"

    Hi Kris, 
    
    On Tue, 26 Mar 2002 17:49:32 -0600
    Kris Hagel <hagel@comp.tamu.edu> wrote
    concerning "Latest Geometries in Database":
    > Hello,
    
    > This is to announce that baring typographical errors on my part, all
    > of the latest and greatest geometry values are safely inside the
    > geometry DB.  
    
    Yeee-ha! (Micheal, ye' think that's proper Texan :-)
    
    > These are the values which result from the survey and were verified 
    > and iterated by using in "real" analysis.
    
    Cool!
    
    > I also went through the run database and made sure that there are 
    > entries for all angle settings.
    
    Ok.
    
    > I have not yet made the MySQL mode the default in the Geometry DB
    > manager.  I await advice on exactly when that should be done, but my  
    > feeling is that it should be done very soon.  
    
    I'd say, ASAP. 
    
    > In the meantime, in order to use the geometry db manager getting the
    > data from the brahms geometry database, just connect to the Main DB
    > and Run DB 
    
    And I guess the geometry DB: 
    
      BrMainDb* mainDb = BrMainDb::Instance(); 
      if (!mainDb->Connect())
        return;
      ...
      if (!mainDb->ConnectToGeom())
        return;
    
    The BrGeometryDBManager shouldn't make that connection, 'cause that
    makes it hard to setup for a different database server/backend in the
    configuration scripts. 
       
    > in the normal way and select a run.  Then create the
    > GeometryDBManager also in the normal way, that is:
    > 
    >   BrGeometryDbManager *gGeoDb = BrGeometryDbManager::Instance();
    > 
    > After that, use:
    >
    >   gGeoDb->SetDbModeMySQL();
    > 
    > to put into MySQL mode.  Once you do that, you do not need to set
    > the db file anymore (although doing so will not hurt anything; it
    > will simply be ignored) 
    
    If you could also make the code so, that one diconnects from the
    geometry DB server as soon as the connection isn't needed anymore (in
    Update and Commit), then it would be really great.  Take a look in
    BrCalibrationManager, BrCalibration, and BrRunInfo for how to do
    that. 
    
    > Good luck.  It should work.  Let me know of any problems ASAP as we
    > need to migrate to this as quickly as possible and exterminate the
    > .geo files from our memories.
    
    Well said, and thanks.
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Wed Mar 27 2002 - 04:40:58 EST