Changeset 8371
- Timestamp:
- 03/05/07 15:55:08 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto_mux.rc
r8369 r8371 77 77 MJPedestalC1.ExtractSignal.HiGainFirst: 15 78 78 MJPedestalC1.ExtractSignal.HiGainLast: 64 79 #MJPedestalC1.ExtractSignal.LoGainFirst: 380 #MJPedestalC1.ExtractSignal.LoGainLast: 1479 #MJPedestalC1.ExtractSignal.LoGainFirst: 0 80 #MJPedestalC1.ExtractSignal.LoGainLast: 0 81 81 MJPedestalC1.ExtractSignal.SaturationLimit: 252 82 82 #MJPedestalC1.ExtractSignal.OffsetLoGain: 1.51 … … 421 421 #MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0 422 422 #MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors: 3 423 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0423 MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 6.0 424 424 #MJCalibrateSignal.MBadPixelsTreat.UseInterpolation: yes 425 425 #MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r8324 r8371 225 225 case kRawAll: 226 226 d += "rawfiles/"; 227 d += fNight.GetStringFmt("%Y/%m/%d /");227 d += fNight.GetStringFmt("%Y/%m/%d"); 228 228 break; 229 229 case kRootDat: … … 232 232 case kRootAll: 233 233 d += "merpp/"; 234 d += fNight.GetStringFmt("%Y/%m/%d /");234 d += fNight.GetStringFmt("%Y/%m/%d"); 235 235 break; 236 236 case kCalibrated: 237 d += Form("callisto/%04d/%08d /", fSequence/10000, fSequence);237 d += Form("callisto/%04d/%08d", fSequence/10000, fSequence); 238 238 break; 239 239 case kImages: 240 d += Form("star/%04d/%08d /", fSequence/10000, fSequence);240 d += Form("star/%04d/%08d", fSequence/10000, fSequence); 241 241 break; 242 242 } … … 244 244 else 245 245 gSystem->ExpandPathName(d); 246 247 if (!d.EndsWith("/")) 248 d += '/'; 246 249 247 250 for (int i=0; i<arr.GetSize(); i++) -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r8357 r8371 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.2 7 2007-03-03 22:27:50tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.28 2007-03-05 15:54:55 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 401 401 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber(fNameRawEvtData)); 402 402 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)412 403 { 413 *fLog << err << AddSerialNumber( "MRawEvtData") << " not found... aborting." << endl;404 *fLog << err << AddSerialNumber(fNameRawEvtData) << " not found... aborting." << endl; 414 405 return kFALSE; 415 406 } 416 407 417 408 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 418 409 if (!fRunHeader) … … 581 572 582 573 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 593 575 // fSignal->GetNumSamples() not yet initialized!!! 594 const UInt_t num = fRunHeader->GetNumSamples HiGain()+fRunHeader->GetNumSamplesLoGain();576 const UInt_t num = fRunHeader->GetNumSamples(); 595 577 if (fExtractWinLast >= num) 596 578 { 597 *fLog << err << GetDescriptor();598 *fLog << " - ERROR:Selected fExtractWinLast " << fExtractWinLast;579 *fLog << err; 580 *fLog << "ERROR - Selected fExtractWinLast " << fExtractWinLast; 599 581 *fLog << " out of range (>=" << num<< ")." << endl; 600 582 return kFALSE; 601 583 } 602 584 } 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 } 603 591 604 592 //CheckExtractionWindow();
Note:
See TracChangeset
for help on using the changeset viewer.