Changeset 2893


Ignore:
Timestamp:
01/23/04 16:13:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2878 r2893  
    153153    fSignals->Clear();
    154154
     155    UInt_t satlo=0;
     156
    155157    while (pixel.Next())
    156158    {
     
    196198        Byte_t maxlo  = 0;
    197199        Byte_t midlo  = 0;
    198        
     200
    199201        for (ptr=first;ptr<last;ptr++)
    200202          {
     
    208210            sumLo += *ptr;
    209211
    210             if (*ptr >= fSaturationLimit)
    211               satLo++;
     212            if (*ptr >= fSaturationLimit)
     213                satLo++;
    212214          }
    213215
    214216        if (satLo)
    215           *fLog << warn << "WARNING: Saturation of Lo Gain reached in "
    216                 << satLo << " time slices in pixel " << pixid << endl;
     217            satlo++;
    217218
    218219        pix.SetExtractedSignal((Float_t)sumHi - pedes*(Float_t)fNumHiGainSamples,
     
    231232      } /* while (pixel.Next()) */
    232233
     234    if (satlo)
     235        *fLog << warn << "WARNING - Lo Gain saturated in " << satlo << " pixels." << endl;
     236
    233237
    234238    fSignals->SetReadyToSave();
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r2805 r2893  
    15481548    TCanvas *c;
    15491549    while ((c=(TCanvas*)Next()))
    1550         DrawClonePad(AddTab(c->GetName()), *c);
     1550        if (!GetCanvas(c->GetName()))
     1551            DrawClonePad(AddTab(c->GetName()), *c);
    15511552
    15521553    *fLog << inf << "MStatusDisplay: Key " << name << " with " << n << " keys read from file." << endl;
  • trunk/MagicSoft/Mars/mcalib/MCalibrate.cc

    r2885 r2893  
    161161      nphotErr  = TMath::Sqrt(nphotErr);
    162162     
    163       fCerPhotEvt->AddPixel(pixid, nphot, nphotErr);
     163      MCerPhotPix *cpix = fCerPhotEvt->AddPixel(pixid, nphot, nphotErr);
    164164     
    165165      if (sig.GetNumLoGainSaturated() > 0)
    166         (*fCerPhotEvt)[pixid].SetPixelSaturated();
     166          cpix->SetPixelSaturated();
    167167    }
    168168 
  • trunk/MagicSoft/Mars/mcamera/MCameraDC.cc

    r2632 r2893  
    5252// --------------------------------------------------------------------------
    5353//
    54 // Print the hillas Parameters to *fLog
     54// Print the dc currents
    5555//
    5656void MCameraDC::Print(Option_t *) const
     
    6262}
    6363
     64// --------------------------------------------------------------------------
     65//
     66// Return the minimum dc current
     67//
    6468Float_t MCameraDC::GetMin() const
    6569{
     
    7074}
    7175
     76// --------------------------------------------------------------------------
     77//
     78// Return the maximum dc current
     79//
    7280Float_t MCameraDC::GetMax() const
    7381{
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r2816 r2893  
    9797    MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam");
    9898    if (!cam)
    99         *fLog << warn << GetDescriptor() << ": No MGeomCam found." << endl;
     99    {
     100        *fLog << err << GetDescriptor() << ": No MGeomCam found." << endl;
     101        return kFALSE;
     102    }
    100103
    101104    if (fSum)
     
    114117    fRms = new MHCamera(*cam, name+";rms", fTitle);
    115118    fRms->SetYTitle("a.u.");
     119
    116120    return kTRUE;
    117121}
Note: See TracChangeset for help on using the changeset viewer.