Changeset 6839 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 03/16/05 19:15:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6838 r6839 543 543 544 544 // 545 // This is new calibration to eff. photo-electrons, hard-coded as decided546 // a t the Wuerzburg software meeting 26.01.05545 // This is new calibration to photo-electrons, hard-coded 546 // as decided at the Wuerzburg software meeting 26.01.05 547 547 // 548 548 MCalibrateData calib; 549 549 calib.SetSignalType(MCalibrateData::kPhe); 550 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 551 //if (IsUseMC()) // MC file 552 //{ 553 // calib.SetCalibrationMode(MCalibrateData::kFfactor); 554 // calib.SetPedestalFlag(MCalibrateData::kRun); 555 // // FIXME: What to do for MC files??? 556 // calib.AddPedestal("MPedestalCam", "MPedPhotFundamental"); 557 // calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor"); 558 // calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm"); 559 //} 560 //else 561 //{ 562 calib.AddPedestal("Fundamental"); 563 calib.AddPedestal("FromExtractor"); 564 calib.AddPedestal("FromExtractorRndm"); 565 calib.SetPedestalFlag(MCalibrateData::kEvent); 566 //} 550 calib.AddPedestal("Fundamental"); 551 calib.AddPedestal("FromExtractor"); 552 calib.AddPedestal("FromExtractorRndm"); 553 calib.SetPedestalFlag(MCalibrateData::kEvent); 567 554 //---------------------------------------------------------- 568 555 … … 625 612 MHCamEvent evt7(0, "Times", "Calibrated Arrival Time;;T [fadc sl]"); 626 613 MHCamEvent evt8(0, "Conv", "Calibration Conv. Factors;;[phe/fadc cnts]"); 614 //MHCamEvent evt9(0, "PulsePos", "Pulse Position of cosmics"); //Calibration Conv. Factors;;[phe/fadc cnts] 627 615 628 616 evt0.EnableSqrtVariance(); … … 644 632 MFillH fill7(&evt7, "MArrivalTime", "FillTimes"); 645 633 MFillH fill8(&evt8, "MCalibConstCam", "FillConv"); 634 //MFillH fill9(&evt9, "MCalibConstCam", "FillPulse"); 646 635 647 636 MTaskEnv fillflorian("FinalFantasy"); … … 707 696 tlist2.AddToList(&apply); 708 697 tlist2.AddToList(&merge); 709 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 710 //if (IsUseMC()) 711 // tlist2.AddToList(&pcopy); 712 //else 713 //{ 714 tlist2.AddToList(&pedlo1); 715 tlist2.AddToList(&pedlo2); 716 tlist2.AddToList(&pedlo3); 717 //} 698 tlist2.AddToList(&pedlo1); 699 tlist2.AddToList(&pedlo2); 700 tlist2.AddToList(&pedlo3); 718 701 //----------------------------------------------------------- 719 702 if (fIsInterlaced) … … 870 853 return; 871 854 855 MGeomCam &geomcam = *(MGeomCam*)plist.FindObject("MGeomCam"); 856 872 857 // 873 858 // Get container from list 874 859 // 875 MGeomCam &geomcam = *(MGeomCam*)plist.FindObject("MGeomCam");876 860 MCalibrationPulseTimeCam *pcam = (MCalibrationPulseTimeCam*)plist.FindObject("MCalibrationPulseTimeCam"); 877 861
Note:
See TracChangeset
for help on using the changeset viewer.