Changeset 6150 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 01/31/05 16:04:49 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6084 r6150 44 44 45 45 #include "MDirIter.h" 46 #include "MRunIter.h" 46 47 #include "MParList.h" 47 48 #include "MTaskList.h" … … 116 117 // 117 118 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 118 : f DataFlag(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsHiLoCalibration(kFALSE)119 : fRuns(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsHiLoCalibration(kFALSE) 119 120 { 120 121 fName = name ? name : "MJCalibrateSignal"; … … 213 214 if (!fSequence.IsValid()) 214 215 { 215 *fLog << err << "ERROR - Sequence invalid!" << endl; 216 return kFALSE; 216 if (!fRuns) 217 { 218 *fLog << err << "ERROR - Sequence invalid and no runs chosen!" << endl; 219 return kFALSE; 220 } 221 222 if (fRuns->GetNumRuns() != fRuns->GetNumEntries()) 223 { 224 *fLog << err << "Number of files found doesn't match number of runs... abort." 225 << fRuns->GetNumRuns() << " vs. " << fRuns->GetNumEntries() << endl; 226 return kFALSE; 227 } 228 *fLog << "Calibrate data from "; 229 *fLog << "Runs " << fRuns->GetRunsAsString() << endl; 230 *fLog << endl; 217 231 } 218 232 … … 339 353 plist.AddToList(&tlist); 340 354 341 /*342 TString name = iter.Next();343 Byte_t filetype = MRawFileRead::IsFileValid(name);344 if (!filetype)345 filetype = MReadMarsFile::IsFileValid(name)+1;346 if (filetype<1||filetype>3)347 {348 gLog << err << "ERROR - FileType #" << (int)filetype << " of first file " << name << " unknown..." << endl;349 return kFALSE;350 } */351 352 355 MReadReports readreal; 353 356 readreal.AddTree("Events", "MTime.", kTRUE); … … 362 365 MRawFileRead rawread(NULL); 363 366 if (IsRawData()) 364 rawread.AddFiles( iter);367 rawread.AddFiles(fSequence.IsValid() ? iter : *fRuns); 365 368 else 366 readreal.AddFiles( iter);369 readreal.AddFiles(fSequence.IsValid() ? iter : *fRuns); 367 370 368 371 MPointingPosInterpolate pextr;
Note:
See TracChangeset
for help on using the changeset viewer.