Changeset 8395 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 04/11/07 14:35:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8369 r8395 90 90 #include "MTriggerPatternDecode.h" 91 91 #include "MFTriggerPattern.h" 92 #include "MFDataPhrase.h" 92 93 #include "MFilterList.h" 93 94 #include "MGeomApply.h" … … 111 112 #include "MWriteRootFile.h" 112 113 114 /* 115 #include "MFEvtNumber.h" 116 #include "MMoviePrepare.h" 117 #include "MMovieWrite.h" 118 #include "MImgCleanStd.h" 119 */ 120 113 121 ClassImp(MJCalibrateSignal); 114 122 … … 604 612 MHCamEvent evt6(102, "Unsuitable", "Fraction of unsuitable events per Pixel;;[1]"); 605 613 // MHCamEvent evt7( 6, "Times", "Calibrated Arrival Time;;T [fadc sl]"); 606 MHCamEvent evt8( 0, "Conv ", "Calibration Conv. Factors;;[phe/fadccnts]");614 MHCamEvent evt8( 0, "ConvUpd", "Calibration Conv. Factors;;[phe/cnts]"); 607 615 MHCamEvent evt9( 7, "PulsePos", "Pulse Position of cosmics (>50phe);;T"); 608 616 MHCamEvent evtR( 4, "HiLoCal", "Hi-/Lo-Gain ratio;;Ratio"); … … 621 629 MFillH fill6(&evt6, "MBadPixelsCam", "FillUnsuitable"); 622 630 // MFillH fill7(&evt7, "MSignalCam", "FillTimes"); 623 MFillH fill8(&evt8, "MCalibrationIntensityConstCam", "FillConv ");631 MFillH fill8(&evt8, "MCalibrationIntensityConstCam", "FillConvUpd"); 624 632 MFillH fill9(&evt9, "MSignalCam", "FillPulse"); 625 633 MFillH fillR(&evtR, "MExtractedSignalCam", "FillHiLoCal"); 626 634 MFillH fillO(&evtO, "MArrivalTimeCam", "FillHiLoOff"); 627 635 636 /* 637 MFillH fillP("MHPulseShape", "", "FillPulseShape"); 638 fillP.SetNameTab("Pulse"); 639 */ 640 628 641 if (!extractor1->HasLoGain()) 629 642 { … … 631 644 fill1.SetFilter(&ftp2); 632 645 } 646 647 /* 648 MHVsTime hbadpix("MBadPixelsCam.GetNumUnsuitable"); 649 hbadpix.SetNumEvents(50); 650 MFillH fillB(&hbadpix, "MTime"); 651 */ 633 652 634 653 MTaskEnv fillflorian("FinalFantasy"); … … 657 676 write.AddContainer("MTime", "Events", kFALSE); 658 677 write.AddContainer("MRawEvtHeader", "Events"); 678 659 679 // Slow-Control: Current-tree 660 680 write.AddContainer("MTimeCurrents", "Currents", kFALSE); … … 697 717 tlist2.AddToList(&pedlo2); 698 718 tlist2.AddToList(&pedlo3); 719 tlist2.AddToList(&fill0); // fill pedestal events 720 tlist2.AddToList(&fill1); // fill pedestal events 699 721 700 722 //----------------------------------------------------------- … … 703 725 tlist3.SetFilter(&fcalib); 704 726 727 MFDataPhrase filcalco("MCalibrationIntensityConstCam.IsReadyToSave>0.5", "CalibConstFilter"); 705 728 if (fIsInterlaced) 706 729 { 707 tlist2.AddToList(&fcalib); 730 tlist2.AddToList(&fcalib); // MFTriggerPattern 708 731 tlist2.AddToList(&tlist3); 709 710 732 if (IsUsePINDiode()) 711 tlist3.AddToList(&pinext); 733 tlist3.AddToList(&pinext); // MExtractPINDiode 712 734 if (IsUseBlindPixel()) 713 tlist3.AddToList(&bldext); 735 tlist3.AddToList(&bldext); // MExtractBlindPixel 714 736 tlist3.AddToList(&taskenv3); 715 tlist3.AddToList(&pacalc); 716 tlist3.AddToList(&filcam); 737 tlist3.AddToList(&pacalc); // MCalibCalcFromPast 738 739 tlist3.AddToList(&filcalco); // CalibConstFilter (IsReadyToSave) 740 fill8.SetFilter(&filcalco); 741 tlist3.AddToList(&fill8); // FillConvUpd 742 743 tlist3.AddToList(&filcam); // FillChargeCam 717 744 if (fIsRelTimesUpdate) 718 tlist3.AddToList(&filtme); 745 tlist3.AddToList(&filtme); // FillRelTime 719 746 if (IsUseBlindPixel()) 720 tlist3.AddToList(&filbnd); 747 tlist3.AddToList(&filbnd); // FillBlindCam 721 748 if (IsUsePINDiode()) 722 tlist3.AddToList(&filpin); 723 tlist3.AddToList(&chcalc); 749 tlist3.AddToList(&filpin); // FillPINDiode 750 tlist3.AddToList(&chcalc); // MCalibrationChargeCalc 724 751 if (fIsRelTimesUpdate) 725 tlist3.AddToList(&recalc); 752 tlist3.AddToList(&recalc); // MCalibrationRelTimeCam 726 753 } 727 754 728 755 // Continue for all non-cosmic events 729 tlist2.AddToList(&fill0); // fill pedestal events730 tlist2.AddToList(&fill1); // fill pedestal events731 756 if (!extractor1->HasLoGain()) 732 757 tlist2.AddToList(&contftp2); // remove pedestal events from processing … … 736 761 if (extractor2) 737 762 tlist2.AddToList(&taskenv2); 738 tlist2.AddToList(&contcos); 763 tlist2.AddToList(&contcos); // MFCosmics (ContTrigEvts) 739 764 /* 740 765 if (fIsHiLoCalibration) … … 751 776 */ 752 777 tlist2.AddToList(&fill2); 753 tlist2.AddToList(&calib); 778 tlist2.AddToList(&calib); // MCalibrateData 754 779 if (extractor2 || extractor1->InheritsFrom("MExtractTimeAndCharge")) 755 780 tlist2.AddToList(&caltm); 756 if (fIsInterlaced) 757 tlist2.AddToList(&fill8); 758 tlist2.AddToList(&bpcal); 759 tlist2.AddToList(&treat); 781 782 tlist2.AddToList(&bpcal); // MBadPixelsCalc 783 tlist2.AddToList(&treat); // MBadPixelsTreat 760 784 tlist2.AddToList(&fill6); 761 785 // tlist2.AddToList(&fill3); … … 770 794 tlist2.AddToList(&fillO); 771 795 } 796 797 /* 798 MFillH fillC("MHCleaning", "", "FillClean"); 799 tlist2.AddToList(&fillC); 800 801 tlist2.AddToList(&fillP); 802 803 // --- Start: Code for encoding movies --- 804 805 MMoviePrepare movprep; 806 MMovieWrite movwrite; 807 movprep.SetRangeFromExtractor(*extractor1); 808 809 MFDataPhrase movfilt("MMovieData.fMax>150"); 810 811 MImgCleanStd movclean(8.5, 4.0); 812 movclean.SetMethod(MImgCleanStd::kAbsolute); 813 814 //movprep.SetFilter(&evtnum); 815 movclean.SetFilter(&movfilt); 816 movwrite.SetFilter(&movfilt); 817 818 MTaskList tlistmov; 819 tlistmov.AddToList(&movprep); 820 tlistmov.AddToList(&movfilt); 821 tlistmov.AddToList(&movclean); 822 tlistmov.AddToList(&movwrite); 823 824 MFEvtNumber evtnum; 825 //evtnum.SetFileName("ganymed00000001.root"); 826 tlistmov.SetFilter(&evtnum); 827 828 //tlist2.AddToList(&evtnum); 829 //tlist2.AddToList(&tlistmov); 830 831 // --- End: Code for encoding movies --- 832 */ 833 772 834 tlist2.AddToList(&fillflorian); 773 835
Note:
See TracChangeset
for help on using the changeset viewer.