Changeset 15515 for trunk/Mars/fact


Ignore:
Timestamp:
05/07/13 12:44:33 (12 years ago)
Author:
mknoetig
Message:
bugfixes added, now numevts.C works
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/processing/numevents.C

    r15481 r15515  
    2424    //and only data runs
    2525    query+=" WHERE fRunTypeKEY=1 ";
    26     query+=" AND fNight="+night;
     26    query+=" AND fNight>"+night;
    2727    //query+=" AND fRunID=128 ";
    2828    if (pernight)
     
    206206                    " fNumBgEvts=%5.1f, "
    207207                    " fNumSigEvts=%5.1f, "
    208                     " fNumExcEvts=%5.1f "
     208                    " fNumExcEvts=%5.1f, "
    209209                    " fNumIslandsMean=%5.4f ",
    210210                    fNumEvtsAfterQualCuts,
     
    224224            where = Form("fRunID=%s AND fNight=%s", runid.Data(), night.Data());
    225225
    226         //cout << "vars: " << vars << endl;
    227         //cout << "where: " << where << endl;
     226        cout << "vars: " << vars << endl;
     227        cout << "where: " << where << endl;
    228228
    229229        if (!serv.InsertUpdate(table, vars, where))
     
    231231            cout << "ERROR - insert/update to DB failed  (vars:" << vars << " where: " << where << ")." << endl;
    232232            return 2;
    233         }
     233        }
    234234
    235235    }
Note: See TracChangeset for help on using the changeset viewer.