Changeset 19589 for trunk/FACT++/src


Ignore:
Timestamp:
09/02/19 17:35:15 (5 years ago)
Author:
tbretz
Message:
Do not handly type 110 (this is a pre-alert without coordinates), fixed some naming issues and renamed a column in a database table. Events with coordinates 0/0 are considered to have no coordinates.
File:
1 edited

Legend:

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

    r19578 r19589  
    259259            switch (id)
    260260            {
    261             case 60:
    262             case 61:
    263             case 62:
    264 
    265             case 110:
    266             case 111:
    267             case 112:
    268             case 115:
    269                 name = GetParamValue(what, "TRIGGER_NUM").toStdString();
    270                 break;
    271 
    272             case 123:
    273                 name = GetParamValue(what, "REF_NUM").toStdString();
    274                 break;
     261            // case 60:
     262            // case 61:
     263            // case 62:
     264            //
     265            // case 110:
     266            // case 111:
     267            // case 112:
     268            // case 115:
     269            //     name = GetParamValue(what, "TRIGGER_NUM").toStdString();
     270            //     break;
     271            //
     272            // case 123:
     273            //     name = GetParamValue(what, "REF_NUM").toStdString();
     274            //     break;
    275275
    276276            case 125:
     
    294294                }
    295295
     296            case 171:
     297            case 173:
     298            case 174:
     299                {
     300                    const string run_id   = GetParamValue(what, "run_id").toStdString();
     301                    const string event_id = GetParamValue(what, "event_id").toStdString();
     302                    name = run_id+"_"+event_id;
     303                    break;
     304                }
     305
    296306                // Missing ID
    297307                // case 51:
     
    324334            const string n2 = name2.text().toStdString();
    325335
    326             const bool has_coordinates = n1=="RA" && n2=="Dec" && unit=="deg";
     336            const bool has_coordinates = n1=="RA" && n2=="Dec" && unit=="deg" && ra!=0 && dec!=0;
    327337
    328338            const std::set<int16_t> typelist =
     
    349359                102, // AGILE_GRB_REFINED
    350360
    351                 110, // FERMI_GBM_FLT_POS
    352                 111, // FERMI_GBM_GND_POS
    353                 112, // FERMI_GBM_LC
    354                 115, // FERMI_GBM_TRANS
     361                // 110, // FERMI_GBM_ALERT [0/0]
     362                111, // FERMI_GBM_FLT_POS
     363                112, // FERMI_GBM_GND_POS
     364                115, // FERMI_GBM_FIN_POS
    355365
    356366                123, // FERMI_LAT_TRANS
     
    503513                    " fTriggerInserted=Now(),\n"
    504514                    " fNight="+to_string(Time().NightAsInt())+",\n"
    505                     " fRunID="+to_string(-rc)+",\n"
     515                    " fPacketTypeKey="+to_string(-rc)+",\n"
    506516                    " fTriggerType=8";
    507517
Note: See TracChangeset for help on using the changeset viewer.