Changeset 7259 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/04/05 16:23:53 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7258 r7259  
    2424     - added (script to make the links for the correct callisto.rc in
    2525       case when callisto_Dec04Jan05.rc is needed)
     26
     27   * datacenter/macros/writesequencefile.C:
     28     - added writing of ZdMin and ZdMax to the sequencefile
     29
     30   * sinope.cc
     31     - added printing of Usage() in case of missing arguments
     32     - added option --outf to make it possible to give the filename
     33       (needed for automation of datacheck)
    2634
    2735
  • trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C

    r7232 r7259  
    257257        return kFALSE;
    258258
    259     TString fname(Form("%s/sequences/%04d/sequence%08d.txt", sequpath.Data(), atoi(data[0])/10000, atoi(data[0])));
     259    TString fname(Form("%s/%04d/sequence%08d.txt", sequpath.Data(), atoi(data[0])/10000, atoi(data[0])));
    260260    cout << "Creating " << fname << "..." << flush;
    261261
     
    267267    }
    268268
    269     fout << "Sequence:        " << data[0] << endl;
    270     fout << "Period:          " << period  << endl;
    271     fout << "Night:           " << date    << endl;
    272     fout << "LightConditions: " << str[5] << endl;
    273     fout << endl;
    274     fout << "Start:           " << data[8] << endl;
    275     fout << "LastRun:         " << data[1] << endl;
    276     fout << "Project:         " << str[0]  << endl;
    277     fout << "Source:          " << str[1]  << endl;
    278     fout << "L1TriggerTable:  " << str[2]  << endl;
    279     fout << "L2TriggerTable:  " << str[3]  << endl;
    280     fout << "HvSettings:      " << str[4]  << endl;
    281     fout << "NumEvents:       " << data[9] << endl;
     269    fout << "Sequence:        " << data[0]  << endl;
     270    fout << "Period:          " << period   << endl;
     271    fout << "Night:           " << date     << endl;
     272    fout << "LightConditions: " << str[5]   << endl;
     273    fout << endl;
     274    fout << "Start:           " << data[8]  << endl;
     275    fout << "LastRun:         " << data[1]  << endl;
     276    fout << "Project:         " << str[0]   << endl;
     277    fout << "Source:          " << str[1]   << endl;
     278    fout << "ZdMin:           " << data[10] << endl;
     279    fout << "ZdMax:           " << data[11] << endl;
     280    fout << "L1TriggerTable:  " << str[2]   << endl;
     281    fout << "L2TriggerTable:  " << str[3]   << endl;
     282    fout << "HvSettings:      " << str[4]   << endl;
     283    fout << "NumEvents:       " << data[9]  << endl;
    282284    fout << endl;
    283285
     
    327329    TString query(Form("SELECT fSequenceFirst, fSequenceLast, fProjectKEY, fSourceKEY,"
    328330                       " fL1TriggerTableKEY, fL2TriggerTableKEY, fHvSettingsKEY, "
    329                        " fLightConditionsKEY, fRunStart, fNumEvents"
     331                       " fLightConditionsKEY, fRunStart, fNumEvents, "
     332                       " fZenithDistanceMin, fZenithDistanceMax "
    330333                       " FROM Sequences WHERE fSequenceFirst=%d", sequno));
    331334    TSQLResult *res = serv.Query(query);
  • trunk/MagicSoft/Mars/sinope.cc

    r7212 r7259  
    109109
    110110TString kOutpath="";
     111TString kOutfile="";
    111112MStatusDisplay *d=0;
    112113
     
    220221    gLog << "                             [default=standard path in datacenter]" << endl;
    221222    gLog << "   --out=path                Path to write the all results to [def=local path]" << endl;
     223    gLog << "   --outf=filename           Filename of the outputfiles [def=sinope{runnumber}.*]" << endl;
    222224    gLog << "   --num={number}            Number of events to process (default=1000)" << endl;
    223225    gLog << "   --print-seq               Print Sequence information" << endl;
     
    289291    const TString kInpathD    = arg.GetStringAndRemove("--ind=",  "");
    290292    /*const TString*/ kOutpath    = arg.GetStringAndRemove("--out=",  "");
     293    /*const TString*/ kOutfile    = arg.GetStringAndRemove("--outf=",  "");
    291294
    292295    const Int_t   kNumEvents  = arg.GetIntAndRemove("--num=", header.GetNumEvents());
     
    299302        arg.Print("options");
    300303        gLog << endl;
     304        Usage();
    301305        return 2;
    302306    }
     
    306310        gLog << warn << "ERROR - No '--run=' option given... required." << endl;
    307311        gLog << endl;
     312        Usage();
    308313        return 2;
    309314    }
     
    312317        gLog << warn << "ERROR - No '--date=' option given... required." << endl;
    313318        gLog << endl;
     319        Usage();
    314320        return 2;
    315321    }
     
    361367    if (!kOutpath.EndsWith("/"))
    362368        kOutpath += "/";
    363     kOutpath += Form("sinope%08d.", kRunNumber);
     369    if (kOutfile.IsNull())
     370        kOutpath += Form("sinope%08d.", kRunNumber);
     371    else
     372        kOutpath += kOutfile+".";
    364373
    365374    if (!kOverwrite)
Note: See TracChangeset for help on using the changeset viewer.