Changeset 7325 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/28/05 00:30:58 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7322 r7325  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2005/08/28 Daniela Dorner
     22
     23   * datacenter/scripts/dodatacheck:
     24     - added 'find-todofile-algorithm' to this script to accelerate the
     25       process of datacheck
     26     - changed call of filldotraw.C
     27
     28   * datacenter/macros/getdolist.C:
     29     - added fDataCheckDone for the option to get many todofiles to
     30       accelerate the process of datacheck
     31
     32   * datacenter/macros/filldotrun.C:
     33     - added check: if a run is a testrun, the flag for datacheck is
     34       set to 'not to be done'
     35
     36   * datacenter/macros/filldotraw.C:
     37     - removed database name from the queries
     38
     39   * datacenter/macros/setupdb.C:
     40     - adapted to changes in the table MagicNumber
     41
     42
    2043
    2144 2005/08/27 Daniela Dorner
  • trunk/MagicSoft/Mars/datacenter/macros/filldotraw.C

    r7265 r7325  
    7474Int_t MagicNumber(MSQLServer &serv, const MRawRunHeader &h)
    7575{
    76     TString query(Form("SELECT fMagicNumberKEY FROM MyMagic.MagicNumber WHERE fMagicNumber=%d",
     76    TString query(Form("SELECT fMagicNumberKEY FROM MagicNumber WHERE fMagicNumber=%d",
    7777                       h.GetMagicNumber()));
    7878
     
    152152        return 0;
    153153
    154     TString query(Form("UPDATE MyMagic.RunData SET fMagicNumberKEY=%d, fFormatVersion=%d WHERE fRunNumber=%d",
     154    TString query(Form("UPDATE RunData SET fMagicNumberKEY=%d, fFormatVersion=%d WHERE fRunNumber=%d",
    155155                       key, h.GetFormatVersion(), h.GetRunNumber()));
    156156
  • trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C

    r7236 r7325  
    577577        //create entry in table RunProcessStatus for this runnumber
    578578        TString query2=Form("INSERT RunProcessStatus SET fRunNumber=%d, fTimingCorrection='1970-01-01 00:00:00'",
    579                     runnumber);
     579                            runnumber);
     580        if (testflagkey==1)
     581            query+=" , fDataCheckDone='1970-01-01 00:00:00'";
    580582        res = serv.Query(query2);
    581583        if (!res)
  • trunk/MagicSoft/Mars/datacenter/macros/setupdb.C

    r7265 r7325  
    193193    list.Add(new TObjString(
    194194        "INSERT MyMagic.MagicNumber (fMagicNumber, fMagicNumberName) VALUES "
    195         "  (0x0000, 'Not available'),"
    196         "  (0xc0c0, 'Ok'),"
    197         "  (0xc0c1, 'Not closed'),"
    198         "  (0xffff, 'Wrong')"));
     195        "  (0x0001, 'Not available')," //1
     196        "  (0xc0c0, 'Ok'),"            //45344
     197        "  (0xc0c1, 'Not closed'),"    //45345
     198        "  (0x0000, 'Wrong')"));       //0
    199199
    200200    // Run type
  • trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck

    r7323 r7325  
    151151
    152152   echo "doing filldotraw..." >> $scriptlog 2>&1
    153    check1=`root -q -b $macrospath/filldotraw.C+\($run\,kFALSE\) | tee $filldotrawlogfile | grep int | sed -e 's/.*(int)//'`
     153   check1=`root -q -b $macrospath/filldotraw.C+\($rawfile\,kFALSE\) | tee $filldotrawlogfile | grep int | sed -e 's/.*(int)//'`
    154154
    155155   case $check1 in
Note: See TracChangeset for help on using the changeset viewer.