Changeset 8371


Ignore:
Timestamp:
03/05/07 15:55:08 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/callisto_mux.rc

    r8369 r8371  
    7777MJPedestalC1.ExtractSignal.HiGainFirst:        15
    7878MJPedestalC1.ExtractSignal.HiGainLast:         64
    79 #MJPedestalC1.ExtractSignal.LoGainFirst:         3
    80 #MJPedestalC1.ExtractSignal.LoGainLast:         14
     79#MJPedestalC1.ExtractSignal.LoGainFirst:         0
     80#MJPedestalC1.ExtractSignal.LoGainLast:          0
    8181MJPedestalC1.ExtractSignal.SaturationLimit:   252
    8282#MJPedestalC1.ExtractSignal.OffsetLoGain:     1.51
     
    421421#MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0
    422422#MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors:    3
    423 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0
     423MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 6.0
    424424#MJCalibrateSignal.MBadPixelsTreat.UseInterpolation:   yes
    425425#MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r8324 r8371  
    225225        case kRawAll:
    226226            d += "rawfiles/";
    227             d += fNight.GetStringFmt("%Y/%m/%d/");
     227            d += fNight.GetStringFmt("%Y/%m/%d");
    228228            break;
    229229        case kRootDat:
     
    232232        case kRootAll:
    233233            d += "merpp/";
    234             d += fNight.GetStringFmt("%Y/%m/%d/");
     234            d += fNight.GetStringFmt("%Y/%m/%d");
    235235            break;
    236236        case kCalibrated:
    237             d += Form("callisto/%04d/%08d/", fSequence/10000, fSequence);
     237            d += Form("callisto/%04d/%08d", fSequence/10000, fSequence);
    238238            break;
    239239        case kImages:
    240             d += Form("star/%04d/%08d/", fSequence/10000, fSequence);
     240            d += Form("star/%04d/%08d", fSequence/10000, fSequence);
    241241            break;
    242242        }
     
    244244    else
    245245        gSystem->ExpandPathName(d);
     246
     247    if (!d.EndsWith("/"))
     248        d += '/';
    246249
    247250    for (int i=0; i<arr.GetSize(); i++)
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc

    r8357 r8371  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.27 2007-03-03 22:27:50 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.28 2007-03-05 15:54:55 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    401401  fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber(fNameRawEvtData));
    402402  if (!fRawEvt)
    403       if (!fUseSpecialPixels)
    404       {
    405           *fLog << err << AddSerialNumber(fNameRawEvtData) << " not found... aborting." << endl;
    406           return kFALSE;
    407       }
    408 
    409 
    410   fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
    411   if (!fRawEvt)
    412403  {
    413       *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;
     404      *fLog << err << AddSerialNumber(fNameRawEvtData) << " not found... aborting." << endl;
    414405      return kFALSE;
    415406  }
    416  
     407
    417408  fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));
    418409  if (!fRunHeader)
     
    581572
    582573        SetRangeFromExtractor(*fExtractor);
    583         /*
    584         // If an extractor is set determin the window size automatically!
    585         fExtractWinFirst = fExtractor->GetHiGainFirst();
    586         fExtractWinLast  = fExtractor->GetHiGainLast();
    587 
    588         if (!fExtractor->HasLoGain())
    589         {
    590             fCheckWinFirst=fExtractWinFirst;
    591             fCheckWinLast =fExtractWinLast;
    592         }*/
     574
    593575        // fSignal->GetNumSamples() not yet initialized!!!
    594         const UInt_t num = fRunHeader->GetNumSamplesHiGain()+fRunHeader->GetNumSamplesLoGain();
     576        const UInt_t num = fRunHeader->GetNumSamples();
    595577        if (fExtractWinLast >= num)
    596578        {
    597             *fLog << err << GetDescriptor();
    598             *fLog << " - ERROR: Selected fExtractWinLast " << fExtractWinLast;
     579            *fLog << err;
     580            *fLog << "ERROR - Selected fExtractWinLast " << fExtractWinLast;
    599581            *fLog << " out of range (>=" << num<< ")." << endl;
    600582            return kFALSE;
    601583        }
    602584    }
     585    else
     586        if (fRunHeader->GetNumSamplesLoGain()==0 && (fCheckWinFirst!=0 || fCheckWinLast!=0))
     587        {
     588            *fLog << inf << "Data has no lo-gains... resetting check window to extraction window." << endl;
     589            SetCheckRange(fExtractWinFirst, fExtractWinLast);
     590        }
    603591
    604592    //CheckExtractionWindow();
Note: See TracChangeset for help on using the changeset viewer.