disruptions and RUNDB

From: Flemming Videbaek (videbaek@sgs1.hirg.bnl.gov)
Date: Wed Apr 03 2002 - 12:12:04 EST

  • Next message: Flemming Videbaek: "CRS/CAS upgrades"

    As noted the pii's will be down next week. Since this will disrupt the use
    of the RUNDB
    a copy was moved to rcas0005. Thanks to foresight it is not too difficult to
    use within the
    exsiting Brat - The following snippet was tested and works.
    In addition you must edit the .bratdbrc file and add
    rcas0005.rcf.bnl.gov RUNDB query xxx
    with xxx the query users password.
    
    
    // Un-comment if you need access to database
    if (!mainDb->Connect())
    return;
    if (!mainDb->ConnectToCalib("query"))
    return;
    //
    // To access the RUNDB on the rcas rather than the pii3
    // use the following piece of code
    //
    Bool_t useRcas = kTRUE;
    if(useRcas) {
    BrRunsDb *runDb = BrRunsDb::Instance();
    runDb->SetName("runs");
    runDb->SetUserName("query");
    runDb->SetHostName("rcas0005.rcf.bnl.gov");
    runDb->SetDbName("RUNDB");
    runDb->Connect();
    }
    else
    {
    if (!mainDb->ConnectToRun("query"))
    return;
    }
    ------------------------------------------------------
    Flemming Videbaek
    Physics Department
    Brookhaven National Laboratory
    
    tlf: 631-344-4106
    fax 631-344-1334
    e-mail: videbaek@bnl.gov
    
    
    



    This archive was generated by hypermail 2b30 : Wed Apr 03 2002 - 12:11:17 EST