Changeset 11029


Ignore:
Timestamp:
06/15/11 11:41:27 (13 years ago)
Author:
Daniela Dorner
Message:
added inserting fObservationKEY into the table ScheduledRun
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r11024 r11029  
    130130    struct ScheduledObs
    131131    {
     132        int obskey_obs;
    132133        int sourcekey_obs;
    133134        string sourcename_obs;
     
    142143    {
    143144        //int runnumber; // to be seen, if runnumber is needed
     145        int obskey_run;
    144146        int runtype;
    145147        int sourcekey_run;
     
    492494            obslist[num].telsetup_obs=obsfixedlist[counter2].telsetup;
    493495            obslist[num].sourcekey_obs=obsfixedlist[counter2].sourcekey;
     496            obslist[num].obskey_obs=obsfixedlist[counter2].obskey;
    494497            counter2++;
    495498
     
    547550            runlist[counter2].telsetup_run=obslist[counter2].telsetup_obs;
    548551            runlist[counter2].sourcekey_run=obslist[counter2].sourcekey_obs;
     552            runlist[counter2].obskey_run=obslist[counter2].obskey_obs;
    549553            counter2++;
    550554            //cout << (*vobs3).sourcename_obs << endl;
     
    596600                q1 << "', fStopTime='" << Time::sql << finalstoptime;
    597601                q1 << "', fSourceKEY='" << (*vobs4).sourcekey_run;
     602                q1 << "', fObservationKEY='" << (*vobs4).obskey_run;
    598603                q1 << "', fRunTypeKEY='" << i;
    599604                q1 << "', fTelescopeSetupKEY='" << (*vobs4).telsetup_run;
Note: See TracChangeset for help on using the changeset viewer.