Changeset 19588


Ignore:
Timestamp:
Sep 2, 2019, 5:34:06 PM (2 weeks ago)
Author:
tbretz
Message:
Added fRa,fDec,fErr,fName to FlareTriggers insert and renamed key on request of Daniela.
File:
1 edited

Legend:

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

    r19583 r19588  
    10331033    }
    10341034
    1035     void EnterIntoAlertDB(const ToO::DataGRB &grb, const CheckVisibility &check, const bool &is_pointing)
     1035    void EnterIntoAlertDB(const string &name, const ToO::DataGRB &grb, const CheckVisibility &check, const bool &is_pointing)
    10361036    {
    10371037        // Do not enter satellite pointing alerts (as there are too many)
     
    10541054            return;
    10551055
    1056         Info("Source might be observable.");
     1056        Info("Source "+name+" might be observable.");
    10571057
    10581058        // Make an entry in the alter databse to issue a call
     
    10611061            " fTriggerInserted=Now(),\n"
    10621062            " fNight="+to_string(Time().NightAsInt())+",\n"
    1063             " fRunID="+to_string(grb.type)+",\n"
     1063            " fPacketTypeKey="+to_string(grb.type)+",\n"
     1064            " fRa="+to_string(grb.ra/15)+",\n"
     1065            " fDec="+to_string(grb.dec)+",\n"
     1066            " fErr="+to_string(grb.err)+",\n"
     1067            " fName=\""+name+"\",\n"
    10641068            " fTriggerType=7";
    10651069
     
    11851189            {
    11861190                Info("Source not observable... skipped.");
    1187                 EnterIntoAlertDB(grb, check, is_pointing);
     1191                EnterIntoAlertDB(name, grb, check, is_pointing);
    11881192
    11891193                return fConnection.connected() ? GetCurrentState() : ToO::State::kDisconnected;
     
    11931197
    11941198            if (!ScheduleImp(name, grb, check, is_pointing))
    1195                 EnterIntoAlertDB(grb, check, is_pointing);
     1199                EnterIntoAlertDB(name, grb, check, is_pointing);
    11961200        }
    11971201        catch (const exception &e)
Note: See TracChangeset for help on using the changeset viewer.