Ignore:
Timestamp:
06/15/05 17:12:46 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/createdataset.C

    r7166 r7167  
    1616!
    1717!
    18 !   Author(s): Daniela Dorner, 05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
     18!   Author(s): Daniela Dorner, 06/2005 <mailto:dorner@astro.uni-wuerzburg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2005
     
    8282    fouthtml << source << endl;
    8383    fouthtml << "</td><td>" << endl;
    84     if (wobble.Contains("Y"))
     84    if (wobble!="N")
    8585        fouthtml << "wobble," << endl;
    8686    if (startdate=="0000-00-00 00:00:00")
     
    8989        fouthtml << "from " << startdate << " to " << stopdate << endl;
    9090    if (cal)
    91         fouthtml << "only data processed to the imgpar is taken into account" << endl;
     91        fouthtml << ", only data processed to the imgpar is taken into account" << endl;
    9292    fouthtml << "</td></tr>" << endl;
    9393
     
    100100    if (cal)
    101101        query +=" left join SequenceProcessStatus on Sequences.fSequenceFirst=SequenceProcessStatus.fSequenceFirst ";
    102     query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
    103                  source.Data(), startdate.Data(), stopdate.Data());
     102    if (wobble=="N")
     103        query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
     104                     source.Data(), startdate.Data(), stopdate.Data());
     105    else
     106        query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
     107                     wobble.Data(), startdate.Data(), stopdate.Data());
    104108    if (cal)
    105109        query +=" and not IsNull(fStar) ";
     
    123127    delete res;
    124128
    125     if (wobble.Contains("N"))
    126     {
    127         if (off.Contains("none"))
     129    if (wobble=="N")
     130    {
     131        if (off=="none")
    128132        {
    129133            off  ="Off";
     
    161165    }
    162166
    163     if (wobble.Contains("N"))
     167    if (wobble=="N")
    164168        fout << "#" << flush;
    165169    fout << "SourceName: " << source << endl;
    166170    fout << "Catalog: /magic/datacenter/setup/magic_favorites.edb" << endl;
    167     if (wobble.Contains("N"))
     171    if (wobble=="N")
    168172        fout << "#" << flush;
    169173    fout << "WobbleMode: On" << endl << endl;
Note: See TracChangeset for help on using the changeset viewer.