Changeset 7262 for trunk/MagicSoft


Ignore:
Timestamp:
08/04/05 20:09:28 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7259 r7262  
    3232     - added option --outf to make it possible to give the filename
    3333       (needed for automation of datacheck)
     34     - added output in txt-file in case of no events (needed for the
     35       evaluation of runs with no interlaced events)
     36     - small changes in output
     37
     38   * datacenter/macros/setupdb.C:
     39     - added new table (DataCheck)
     40
     41   * datacenter/macros/fillsinope.C:
     42     - added (macro to read in the sinope*.txt files and fill the
     43       information into the DB)
     44
     45   * datacenter/macros/filldotraw.C:
     46     - added (was before in the directory macros/sql/)
     47     - made some changes to include it into the automation
     48       added function make it possible to call the macro not only
     49       with the filename but also with the runnumber
     50
     51   * macros/sql/*:
     52     - removed (all macros are now in the datacenter directory)
    3453
    3554
  • trunk/MagicSoft/Mars/datacenter/macros/setupdb.C

    r7234 r7262  
    418418
    419419    list.Add(new TObjString(
    420          "CREATE TABLE MyMagic.%s ("
     420         "CREATE TABLE MyMagic.ExcludedFDA ("
    421421         "  fExcludedFDAKEY        SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,"
    422422         "  fExcludedFDAImportance SMALLINT UNSIGNED        NULL,"
     
    425425         "  fExcludedFDA           VARCHAR(255)             NULL"
    426426         ") MAX_ROWS=65536"));
     427
     428
     429    list.Add(new TObjString(
     430         "CREATE TABLE MyMagic.DataCheck ("
     431         "  fRunNumber                INT      UNSIGNED PRIMARY KEY,"
     432         "  fEvents                   INT      UNSIGNED        NULL,"
     433         "  fPositionSignal           TINYINT  UNSIGNED        NULL,"
     434         "  fPositionFWHM             TINYINT  UNSIGNED        NULL,"
     435         "  fHeightSignal             SMALLINT UNSIGNED        NULL,"
     436         "  fHeightFWHM               SMALLINT UNSIGNED        NULL,"
     437         "  fHasSignal                ENUM(\"yes\",\"no\")     NULL,"
     438         "  fHasPedestal              ENUM(\"yes\",\"no\")     NULL,"
     439         "  fPositionAsym             ENUM(\"yes\",\"no\")     NULL,"
     440         "  fHeightAsym               ENUM(\"yes\",\"no\")     NULL,"
     441         "  fEventsInterlaced         INT      UNSIGNED        NULL,"
     442         "  fPositionSignalInterlaced TINYINT  UNSIGNED        NULL,"
     443         "  fPositionFWHMInterlaced   TINYINT  UNSIGNED        NULL,"
     444         "  fHeightSignalInterlaced   SMALLINT UNSIGNED        NULL,"
     445         "  fHeightFWHMInterlaced     SMALLINT UNSIGNED        NULL,"
     446         "  fHasSignalInterlaced      ENUM(\"yes\",\"no\")     NULL,"
     447         "  fHasPedestalInterlaced    ENUM(\"yes\",\"no\")     NULL,"
     448         "  fPositionAsymInterlaced   ENUM(\"yes\",\"no\")     NULL,"
     449         "  fHeightAsymInterlaced     ENUM(\"yes\",\"no\")     NULL"
     450         ")"));
    427451
    428452
  • trunk/MagicSoft/Mars/sinope.cc

    r7259 r7262  
    117117    {
    118118        gLog << warn << "No entries processed..." << endl;
    119         return kFALSE;
     119
     120        ofstream fout(Form("%stxt", kOutpath.Data()));
     121        if (!fout)
     122        {
     123            gLog << err << "Cannot open file: " << strerror(errno) << endl;
     124            return kERROR;
     125        }
     126
     127        fout << "Events:         " << events << endl;
     128        fout << endl;
     129
     130        return kTRUE;
    120131    }
    121132
     
    164175
    165176    fout << "Events:         " << events << endl;
    166     fout << "HasSignals:     " << (fwhm1>10?"No":"Yes") << endl;
    167     fout << "HasPedestal:    " << (fwhm1<20?"No":"Yes") << endl;
     177    fout << "HasSignal:      " << (fwhm1>10?"no":"yes") << endl;
     178    fout << "HasPedestal:    " << (fwhm1<20?"no":"yes") << endl;
    168179    fout << endl;
    169180    fout << "PositionSignal: " << h1.GetMaximumBin()-1 << endl;
    170181    fout << "PositionFWHM:   " << fwhm1 << endl;
    171     fout << "PositionAsym:   " << (asym1?"Yes":"No") << endl;
     182    fout << "PositionAsym:   " << (asym1?"yes":"no") << endl;
    172183    fout << endl;
    173184    fout << "HeightSignal:   " << h2.GetMaximumBin()-1 << endl;
    174185    fout << "HeightFWHM:     " << fwhm2 << endl;
    175     fout << "HeightAsym:     " << (asym2?"Yes":"No") << endl;
     186    fout << "HeightAsym:     " << (asym2?"yes":"no") << endl;
    176187    fout << endl;
    177188
Note: See TracChangeset for help on using the changeset viewer.