Changeset 8898 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 05/25/08 11:28:15 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8897 r8898 432 432 // data file will be processed. In any case there are no interleaved 433 433 // calibration events in such data, so this is fine. 434 // We allow only cosmics triggered events to pass (before prescaling) 434 435 MFTriggerPattern fcalped; 435 436 fcalped.SetInverted(); 436 437 fcalped.SetDefault(kTRUE); 437 // ftp.RequireCalibration();438 fcalped. DenyCalibration();439 fcalped. DenyPedestal();440 // ftp.DenyPinDiode();438 fcalped.DenyAll(); 439 fcalped.AllowTriggerLvl1(); 440 fcalped.AllowTriggerLvl2(); 441 //fcalped.AllowSumTrigger(); 441 442 442 443 // This will skip interleaved events with a cal- or ped-trigger … … 505 506 // without artifially calibration events 506 507 // 508 // Deny or allow is done before prescaling. 509 // 507 510 MFTriggerPattern fped; 508 511 fped.SetDefault(kTRUE); … … 510 513 if (!extractor1->HasLoGain()) 511 514 { 515 fped.DenyAll(); 512 516 fped.RequirePedestal(); 513 fped.DenyTriggerLvl1();514 fped.DenyTriggerLvl2();515 517 } 516 518 … … 565 567 MExtractBlindPixel bldext; 566 568 569 // Execute for all events with the calibration trigger. If no 570 // trigger pattern is available do not execute it 571 // The selection is done before prescaling. 567 572 MFTriggerPattern fcalib("CalibFilter"); 568 573 fcalib.SetDefault(kFALSE); 574 fcalib.DenyAll(); 569 575 fcalib.RequireCalibration(); 570 //fcalib.DenyPedestal(); // This should never happen!571 576 572 577 MCalibrationChargeCalc chcalc; … … 769 774 if (fIsInterlaced) 770 775 { 776 // The task list is executed for all events with the calibration 777 // trigger 771 778 tlist2.AddToList(&fcalib); // MFTriggerPattern 772 779 tlist2.AddToList(&tlist4); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8804 r8898 19 19 ! Author(s): Markus Gaug, 02/2004 <mailto:markus@ifae.es> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 721 ! Copyright: MAGIC Software Development, 2000-2008 22 22 ! 23 23 ! … … 1715 1715 // anyway. So we set the default such that the MContinue ccalib 1716 1716 // will never be executed. 1717 // We allow to have only calibration events before Prescaling. 1718 // We require that the calibration events have not been prescaled (why?) 1717 1719 MTriggerPatternDecode trgpat; 1718 1720 MFTriggerPattern fcalib("CalibFilter"); 1719 1721 fcalib.SetDefault(kFALSE); 1720 1722 fcalib.DenyCalibration(MFTriggerPattern::kPrescaled); 1723 fcalib.DenyAll(); 1724 fcalib.AllowCalibration(); 1721 1725 1722 1726 MContinue ccalib(&fcalib,"ContTrigPattern"); … … 1831 1835 1832 1836 // 1833 // Apply a filter against cosmics 1834 // (will have to be needed in the future1835 // when the calibration hardware-trigger is working)1837 // Apply a filter against cosmics (this is for the old times in which 1838 // the calibration events where triggered by level 1 and for 1839 // sanity against empty trigger events) 1836 1840 // 1837 1841 MFCosmics cosmics; -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8892 r8898 1096 1096 // data file will be processed. In any case there are no interleaved 1097 1097 // calibration events in such data, so this is fine. 1098 // The selection is done with the trigger bits before prescaling 1098 1099 MTriggerPatternDecode decode; 1099 1100 MFTriggerPattern fcalib("CalibFilter"); 1100 1101 fcalib.SetDefault(kTRUE); 1101 fcalib.DenyCalibration(); 1102 fcalib.DenyPedestal(); 1102 fcalib.DenyAll(); 1103 fcalib.AllowTriggerLvl1(); 1104 fcalib.AllowTriggerLvl2(); 1105 //fcalib.AllowSumTrigger(); 1103 1106 1104 1107 tlist.AddToList(&decode); … … 1130 1133 1131 1134 //------------------------------ 1135 // Require that before the Prescaling we had only a pedestal trigger 1132 1136 MFTriggerPattern ftp2("PedestalFilter"); 1133 1137 ftp2.SetDefault(kTRUE); 1138 ftp2.DenyAll(); 1134 1139 ftp2.RequirePedestal(); 1135 ftp2.DenyCalibration();1136 1137 // NEW!1138 ftp2.DenyTriggerLvl1();1139 ftp2.DenyTriggerLvl2();1140 1140 1141 1141 if (!fSequence.IsMonteCarlo() && (!fExtractor || !fExtractor->HasLoGain()))
Note:
See TracChangeset
for help on using the changeset viewer.