Changeset 8976 for trunk


Ignore:
Timestamp:
06/18/08 18:29:18 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8974 r8976  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2008/06/19 Thomas Bretz
     22
     23   * mjobs/MJSpectrum.cc:
     24     - small improvement to output
     25
     26
    2027
    2128 2008/06/19 Thomas Bretz
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8940 r8976  
    238238    if (arr.Read()<=0)
    239239    {
    240         *fLog << "MStatusDisplay not found in file... abort." << endl;
     240        *fLog << err << dbginf << "ERROR - MStatusDisplay not found in file... abort." << endl;
    241241        return -1;
    242242    }
     
    245245    TH1D *size   = (TH1D*)arr.FindObjectInCanvas("Excess",     "TH1D", "Hist");
    246246    TH1D *time   = (TH1D*)arr.FindObjectInCanvas("ExcessTime", "TH1D", "Hist");
    247     if (!vstime || !size || !time)
     247    if (!vstime)
     248    {
     249        *fLog << err << dbginf << "ERROR - Theta [TH1D] not found in OnTime-tab... abort." << endl;
    248250        return -1;
     251    }
     252    if (!size)
     253    {
     254        *fLog << err << dbginf << "ERROR - Excess [TH1D] not found in Hist-tab... abort." << endl;
     255        return -1;
     256    }
     257    if (!size)
     258    {
     259        *fLog << err << dbginf << "ERROR - ExcessTime [TH1D] not found in Hist-tab... abort." << endl;
     260        return -1;
     261    }
    249262
    250263    vstime->Copy(h1);
     
    939952
    940953    // Get spill-over corrections from energy estimation
    941     hest.GetWeights(weights);
     954    hest.GetWeights(weights);  // E_mc/E_est
    942955
    943956    // Print effective on-time
Note: See TracChangeset for help on using the changeset viewer.