Changeset 6229 for trunk/MagicSoft


Ignore:
Timestamp:
02/03/05 10:42:15 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/callisto.cc

    r6214 r6229  
    391391            if (!job4.ProcessFile(job1.GetPedestalCam()))
    392392              {
    393                 gLog << err << "Calculation of calibration failed." << endl << endl;
     393                gLog << err << "Calibration of calibration failed." << endl << endl;
    394394                return -1;
    395395              }
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r6217 r6229  
    352352  if (fSequence.IsValid())
    353353    {
    354       const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData, "D", IsUseRawData());
    355       const Int_t n1 = fSequence.GetNumDatRuns();
     354      const Int_t n0 = fSequence.SetupCalRuns(iter, fPathData, "C", IsUseRawData());
     355      const Int_t n1 = fSequence.GetNumCalRuns();
    356356      if (n0==0)
    357357        {
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc

    r6166 r6229  
    271271  MRawEvtPixelIter pixel(fRawEvt);
    272272
    273   Int_t   sat;
    274   Byte_t  satpos;
     273  Int_t   sat        = 0;
     274  Byte_t  satpos     = 0;
    275275  ULong_t gsatpos    = 0;
    276276
    277277  Int_t   maxsumhi   = -1000000;
    278278  Int_t   numsat     = 0;
    279   Byte_t startslice;
     279  Byte_t  startslice = 0;
    280280
    281281  Byte_t hiGainFirstsave = fHiGainFirst;
     
    319319    fHiGainFirst = higainfirst - fOffsetLeftFromPeak;
    320320  else
    321     fHiGainOutOfRangeLeft++;
    322 
     321    {
     322      //      *fLog << err << (Int_t)higainfirst << "   " << (int)fHiGainFirst << "  " << (int)fOffsetLeftFromPeak << endl;     
     323      fHiGainOutOfRangeLeft++;
     324    }
     325 
    323326  //
    324327  // Shift the last slice to the right:
    325328  //
    326329  const Byte_t rlim = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain;
    327   if (rlim <= hiGainLastsave+fHiLoLast)
    328     if (rlim > hiGainLastsave)
     330  if (rlim <= fHiGainLast+fHiLoLast)
     331    if (rlim > fHiGainLast)
    329332      fHiLoLast   = rlim - fHiGainLast;
    330333    else
     
    334337      }
    335338  else
    336     fHiGainOutOfRangeRight++;
    337      
    338 
     339    {
     340      fHiGainOutOfRangeRight++;
     341      //      *fLog << err << (Int_t)higainfirst << endl;
     342    }
     343 
    339344  const Byte_t llim = fHiGainFirst + (Int_t)fOffsetLoGain;
    340345  if ( llim >= fLoGainFirst )
     
    544549
    545550    MExtractTimeAndChargeDigitalFilter::Print(o);
    546     *fLog << " Offset from Peak left:   " << fOffsetLeftFromPeak   << endl;
    547     *fLog << " Offset from Peak right:  " << fOffsetRightFromPeak  << endl;
    548     *fLog << " Peak search window size: " << fPeakSearchWindowSize << endl;
     551    *fLog << " Offset from Peak left:   " << (int)fOffsetLeftFromPeak   << endl;
     552    *fLog << " Offset from Peak right:  " << (int)fOffsetRightFromPeak  << endl;
     553    *fLog << " Peak search window size: " << (int)fPeakSearchWindowSize << endl;
    549554    *fLog << " High Gain Failure limit: " << fHiGainFailureLimit << endl;
    550555    *fLog << " Low Gain Failure limit:  " << fLoGainFailureLimit << endl;
Note: See TracChangeset for help on using the changeset viewer.