Changeset 8434 for trunk/MagicSoft/Mars/callisto.cc
- Timestamp:
- 04/23/07 20:11:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.cc
r8406 r8434 55 55 gLog << " -y Extract and calibrate signal" << endl << endl; 56 56 gLog << " Data Type (exclusive):" << endl; 57 gLog << " -raw Read input from raw-data <default>" << endl;58 57 gLog << " -mc Input root-files are monte carlo files" << endl; 59 gLog << " -root Read input from root-files (merpped)" << endl << endl;60 58 gLog << " Options:" << endl; 61 59 gLog.Usage(); … … 192 190 Bool_t kModeC = arg.HasOnlyAndRemove("-c"); 193 191 Bool_t kModeY = arg.HasOnlyAndRemove("-y"); 194 195 MJCalib::DataType_t kDataType = MJCalib::kIsUseRawData; // root 196 if (arg.HasOnlyAndRemove("-root")) 197 kDataType = MJCalib::kIsUseRootData; // root 198 if (arg.HasOnlyAndRemove("-raw")) 199 kDataType = MJCalib::kIsUseRawData; // raw 200 if (arg.HasOnlyAndRemove("-mc")) 201 kDataType = MJCalib::kIsUseMC; // monte carlo 192 const Bool_t kIsMC = arg.HasOnlyAndRemove("-mc"); 202 193 203 194 if (!kInpathY.IsNull() || !kOutpathY.IsNull() || !kOutpath.IsNull() || !kPath.IsNull()) … … 267 258 TString kSequence = arg.GetArgumentStr(0); 268 259 269 if (kSequence.IsDigit()) 270 { 271 const Int_t numseq = kSequence.Atoi(); 272 kSequence = Form("/magic/sequences/%04d/sequence%08d.txt", numseq/10000, numseq); 273 gLog << inf << "Inflated sequence file: " << kSequence << endl; 274 } 275 276 if (gSystem->AccessPathName(kSequence, kFileExists)) 277 { 278 gLog << err << "Sorry, sequence file '" << kSequence << "' doesn't exist." << endl; 260 if (!MSequence::InflatePath(kSequence, kIsMC)) 279 261 return 3; 280 }281 262 282 263 if (gSystem->AccessPathName(kConfig, kFileExists)) … … 293 274 // 294 275 MSequence seq(kSequence, kInpathD); 276 if (!seq.IsMonteCarlo()) 277 seq.SetMonteCarlo(kIsMC); 295 278 if (kPrintSeq) 296 279 { … … 310 293 // 311 294 if (kPrintFiles) 312 PrintFiles(seq, kInpathD, kDataType==MJCalib::kIsUseRawData, kFALSE);295 PrintFiles(seq, kInpathD, !seq.IsMonteCarlo(), kFALSE); 313 296 if (kPrintFound) 314 PrintFiles(seq, kInpathD, kDataType==MJCalib::kIsUseRawData, kTRUE);297 PrintFiles(seq, kInpathD, !seq.IsMonteCarlo(), kTRUE); 315 298 316 299 if (seq.HasMoon()) … … 381 364 job1.SetDisplay(d); 382 365 job1.SetOverwrite(kOverwrite); 383 job1.SetDataType(kDataType);384 366 job1.SetUseHists(kMoon); 385 367 … … 411 393 job2.SetDisplay(d);; 412 394 job2.SetOverwrite(kOverwrite); 413 job2.SetDataType(kDataType);414 395 job2.SetUseHists(kMoon); 415 396 job2.SetDeadPixelCheck(); … … 447 428 job3.SetOverwrite(kOverwrite); 448 429 job3.SetPathOut(kOutpathC); 449 job3.SetDataType(kDataType);450 430 // job2.SetPathIn(kInpathC); // not yet needed 451 431 … … 479 459 job4.SetOverwrite(kOverwrite); 480 460 job4.SetPathOut(kOutpathC); 481 job4.SetDataType(kDataType);482 461 483 462 if (!job4.Process(job1.GetPedestalCam())) … … 514 493 job1.SetOverwrite(kOverwrite); 515 494 job1.SetPathIn(kInpathY); // --> READ Extractor from calib-file 516 job1.SetDataType(kDataType);517 495 //job1.SetPathOut(kOutpathY); // not yet needed 518 496 job1.SetUseData(); … … 544 522 job2.SetOverwrite(kOverwrite); 545 523 job2.SetPathIn(kInpathY); 546 job2.SetDataType(kDataType); 547 job2.SetPulsePosCheck(kDataType!=MJCalib::kIsUseMC); 524 job2.SetPulsePosCheck(!seq.IsMonteCarlo()); 548 525 job2.SetPathOut(kOutpathY); // for updating the extractor 549 526 … … 600 577 job3.SetOverwrite(kOverwrite); 601 578 job3.SetPathIn(kInpathY); 602 job3.SetDataType(kDataType);603 579 // job1.SetPathOut(kOutpathC); // not yet needed 604 580 // job1.SetPathIn(kInpathC); // not yet needed … … 634 610 job4.SetPathIn(kInpathY); 635 611 job4.SetPathOut(kOutpathY); 636 job4.SetDataType(kDataType);637 612 job4.SetMovieMode(kMovie); 638 if ( kDataType!=MJCalib::kIsUseMC)613 if (!seq.IsMonteCarlo()) 639 614 job4.SetExtractor(job2.GetExtractor()); 640 615
Note:
See TracChangeset
for help on using the changeset viewer.