Hi Kris et al, On Fri, 14 Dec 2001 09:51:04 -0600 (CST) Kris Hagel <hagel@cyclotronmail.tamu.edu> wrote concerning "Re: Fw: Geo files": > To use it, all you need to do is: > BrGeometryDbManager *gGeoDb = BrGeometryDbManager::Instance(); > gGeoDb->SetDbModeMySQL(); Perhaps this should then be the default. > To use the above, you must connect with the BrahmsGeom database. > This is done in the following way: > > BrGeometriesDb *geoDb mainDb->ConnectToGeom(); > geoDb->SetUserName("query"); > geoDb->Connect(); Argh! The proper way to connect to the Geometry database is, like for the any other database: BrMainDb* mainDb = BrMainDb::Instance(); if (!mainDb->Connect()) return; if (!mainDb->ConnectToCalib()) return; if (!mainDb->ConnectToRuns()) return; if (!mainDb->ConnectToGeom()) return; > > Keep in mind that you must connect to the run db and select a run. > This is used extensively to obtain the proper settings from the > geometry db. That should not be an issue since I think most > analysis now requires connection to the run db. Well, not all but quite a lot. > So, give it a try and give me any feed back. We are in the midst > of a NIMROD run, so response (especially if I need to fix something) > might not be as fast as is optimal, but I will do my best. As > usual, if you find something wrong, it would help me if you provide > as many details as possible. 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 : Fri Dec 14 2001 - 11:00:25 EST