Changeset 7005 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 05/10/05 12:13:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r6979 r7005 390 390 391 391 // Check for interleaved events 392 // This will make that for data with version less than 5, where trigger 393 // patterns were not yet correct, all the events in the file will be 394 // processed. For those data there are no interleaved calibration events, 395 // so it makes no sense to run this test on a _D_ file. So we assume it 396 // will be a _C_ file, and accept all events. 392 397 MTriggerPatternDecode decode; 393 398 MFTriggerPattern fcalib; 394 399 fcalib.DenyCalibration(); 400 fcalib.SetDefault(kFALSE); 395 401 MContinue conttp(&fcalib, "ContTrigPattern"); 396 402 -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6979 r7005 460 460 MTriggerPatternDecode decode; 461 461 462 // This will make that for data with version less than 5, where 463 // trigger patterns were not yet correct, all the events in the real 464 // data file will be processed. In any case there are no interleaved 465 // calibration events in such data, so this is fine. 462 466 MFTriggerPattern ftp; 463 467 ftp.SetDefault(kTRUE); … … 467 471 // ftp.DenyPinDiode(); 468 472 ftp.SetInverted(); 473 474 // This will skip interleaved calibration events and pedestal events (if any) 475 // --> tlist2 469 476 MContinue conttp(&ftp, "ContTrigPattern"); 470 // --> tlist2471 477 472 478 // Do signal and pedestal calculation -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6998 r7005 1799 1799 // Other Tasks 1800 1800 // 1801 1802 // Set the default for data version earlier than 5, where no valid 1803 // trigger pattern exists. There should not be pin diode or other 1804 // types of events inside the calibration files which should be skipped, 1805 // anyway. So we set the default such that the MContinue ccalib 1806 // will never be executed. 1801 1807 MTriggerPatternDecode trgpat; 1802 1808 MFTriggerPattern fcalib("CalibFilter"); -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7001 r7005 77 77 MJCut::MJCut(const char *name, const char *title) 78 78 : fStoreSummary(kFALSE), fStoreResult(kTRUE), fWriteOnly(kFALSE), 79 fIsWobble(kFALSE), fIsMonteCarlo(kFALSE), fFullDisplay(k FALSE),79 fIsWobble(kFALSE), fIsMonteCarlo(kFALSE), fFullDisplay(kTRUE), 80 80 fNameHist("MHThetaSq"), fCalcHadronness(0) 81 81 { … … 334 334 write->AddContainer("MHadronness", "Events", kFALSE); 335 335 write->AddContainer("MEnergyEst", "Events", kFALSE); 336 write->AddContainer("ThetaSquared", "Events", kFALSE); 336 337 write->AddContainer("MMcEvt", "Events", kFALSE); 337 338 write->AddContainer("DataType", "Events"); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6998 r7005 940 940 } 941 941 942 // This will make that for data with version less than 5, where 943 // trigger patterns were not yet correct, all the events in the real 944 // data file will be processed. In any case there are no interleaved 945 // calibration events in such data, so this is fine. 942 946 MFTriggerPattern fcalib("CalibFilter"); 947 fcalib.SetDefault(kFALSE); 943 948 fcalib.RequireCalibration(); 944 949 fcalib.SetInverted(); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7001 r7005 178 178 return -1; 179 179 180 TObject *hist = arr.FindObjectInCanvas("Hist", "MHAlpha", "Hist");181 cout << "HIST: " << hist << endl;182 if (hist)183 cout << "TYPE: " << hist->ClassName() << endl;184 arr.Print();185 186 180 vstime->Copy(h1); 187 181 size->Copy(h2); … … 335 329 Bool_t MJSpectrum::Refill(MParList &plist, TH1D &h2) const 336 330 { 331 // Try to find the class used to determin the signal! 332 TString cls("MHAlpha"); 333 if (fDisplay) 334 { 335 TCanvas *c = fDisplay->GetCanvas("Hist"); 336 if (c) 337 { 338 TIter Next(c->GetListOfPrimitives()); 339 TObject *obj=0; 340 while ((obj=Next())) 341 if (obj->InheritsFrom(MHAlpha::Class())) 342 break; 343 if (obj) 344 cls = obj->ClassName(); 345 } 346 } 347 348 cout << "FOUND: "<< cls << endl; 349 350 // Now fill the histogram 337 351 *fLog << endl; 338 352 fLog->Separator("Refill Excess"); … … 350 364 taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 351 365 352 MFillH fill1( "HistEOff [MHAlpha]", "MHillasSrc", "FillHistEOff");353 MFillH fill2( "HistE [MHAlpha]", "MHillasSrc", "FillHistE");366 MFillH fill1(Form("HistEOff [%s]", cls.Data()), "", "FillHistEOff"); 367 MFillH fill2(Form("HistE [%s]", cls.Data()), "", "FillHistE"); 354 368 355 369 MFDataMember f0("DataType.fVal", '<', 0.5, "FilterOffData"); -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r6997 r7005 325 325 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 326 326 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 327 write.AddCopySource("OriginalMC");328 327 } 329 328 else … … 354 353 writem.AddContainer("MMcTrig", "Muons"); 355 354 } 355 356 if (ismc) 357 if (fMuonAnalysis) 358 writem.AddCopySource("OriginalMC"); 359 else 360 write.AddCopySource("OriginalMC"); 356 361 357 362 MTaskList tlist2("Events");
Note:
See TracChangeset
for help on using the changeset viewer.