Ignore:
Timestamp:
02/25/06 18:31:03 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7460 r7528  
    5555// file called sql.rc and the resource file is found.
    5656//
    57 // Returns 0 in case of failure and 1 in case of success.
     57// Returns 2 in case of failure, 1 in case of success and 0 if the connection
     58// to the database is not working.
    5859//
    5960/////////////////////////////////////////////////////////////////////////////
     
    115116    {
    116117        cout << "ERROR - Could not find file " << fname << endl;
    117         return 0;
     118        return 2;
    118119    }
    119120
     
    121122    {
    122123        cout << "ERROR - Reading of MBadPixelsCam failed." << endl;
    123         return 0;
     124        return 2;
    124125    }
    125126
     
    147148
    148149    if (unsin<0 || unsout<0 || unrin<0 || unrout<0 || isoin<0 || isoout<0 || clumax<0)
    149         return 0;
     150    {
     151        cout << "ERROR - one of the pixel values < 0." << endl;
     152        return 2;
     153    }
    150154
    151155    //     MHCamera hist(geom);
     
    158162    MStatusArray arr;
    159163    if (arr.Read()<=0)
    160         return 0;
     164    {
     165        cout << "ERROR - could not read MStatusArray." << endl;
     166        return 2;
     167    }
    161168
    162169    TH1 *h;
     
    167174    {
    168175        cout << "WARNING - Could not find histogram HRelTimeHiGainArea0." << endl;
    169         return 0;
     176        return 2;
    170177    }
    171178
     
    183190    {
    184191        cout << "WARNING - Could not find histogram HRelTimeHiGainArea1." << endl;
    185         return 0;
     192        return 2;
    186193    }
    187194
     
    199206    {
    200207        cout << "WARNING - Could not find MHCamera TotalConv." << endl;
    201         return 0;
     208        return 2;
    202209    }
    203210
     
    221228    {
    222229        cout << "WARNING - Could get sequence# from filename: " << fname << endl;
    223         return 0;
     230        return 2;
    224231    }
    225232
     
    289296
    290297    if (dummy)
    291         return 0;
     298        return 1;
    292299
    293300    TSQLResult *res = serv.Query(query);
     
    295302    {
    296303        cout << "ERROR - Query failed: " << query << endl;
    297         return 0;
     304        return 2;
    298305    }
    299306    delete res;
Note: See TracChangeset for help on using the changeset viewer.