Changeset 6569 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/17/05 17:09:00 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalib.cc
r6475 r6569 37 37 38 38 const Int_t MJCalib::fgCheckedPixId = 100; 39 39 40 // -------------------------------------------------------------------------- 40 41 // … … 54 55 Bool_t MJCalib::CheckEnvLocal() 55 56 { 56 57 57 if (HasEnv("PixelCheck")) 58 SetPixelCheck();58 SetPixelCheck(GetEnv("PixelCheck", fPixelCheck)); 59 59 60 60 if (HasEnv("CheckedPixId")) 61 SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId));61 SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId)); 62 62 63 63 if (!HasEnv("DataType")) -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6505 r6569 464 464 taskenv3.SetDefault(extractor3); 465 465 466 MCalibrateData calib;467 466 // 468 467 // This is new calibration to eff. photo-electrons, hard-coded as decided … … 470 469 // 471 470 #warning Default calibration now in equiv. photo-electrons! 471 MCalibrateData calib; 472 472 calib.SetSignalType(MCalibrateData::kPhe); 473 473 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 474 474 if (IsUseMC()) // MC file 475 475 { … … 488 488 calib.SetPedestalFlag(MCalibrateData::kEvent); 489 489 } 490 //---------------------------------------------------------- 490 491 491 492 MExtractPINDiode pinext; … … 621 622 tlist2.AddToList(&apply); 622 623 tlist2.AddToList(&merge); 624 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 623 625 if (IsUseMC()) 624 626 tlist2.AddToList(&pcopy); … … 629 631 tlist2.AddToList(&pedlo3); 630 632 } 633 //----------------------------------------------------------- 631 634 if (fIsInterlaced) 632 635 { 633 636 pinext.SetFilter(&fcalib); 634 637 bldext.SetFilter(&fcalib); … … 655 658 if (fIsRelTimesUpdate) 656 659 tlist2.AddToList(&recalc); 657 660 } 658 661 659 662 tlist2.AddToList(&conttp); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6553 r6569 791 791 792 792 if (HasEnv("UseData")) 793 fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun; 793 fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun; 794 795 if (IsUseMC() && fExtractType==kUseData) 796 { 797 // The reason is, that the standard data files contains empty 798 // (untriggered) events. If we would loop over the default 500 799 // first events of the data file you would calculate the 800 // pedestal from only some single events... 801 *fLog << inf; 802 *fLog << "Sorry, you cannot extract the starting pedestal from the first" << endl; 803 *fLog << "events in your data files... using pedestal file instead. The" << endl; 804 *fLog << "result should not differ..." << endl; 805 fExtractType = kUsePedRun; 806 } 807 794 808 795 809 if (HasEnv("UseHists")) … … 1002 1016 1003 1017 if (fIsUseHists) 1004 1018 { 1005 1019 pedcalc.SetIntermediateStorage(); 1006 1020 pedlogain.SetIntermediateStorage(); … … 1009 1023 // plist.AddToList(&fPedestalHist); 1010 1024 tlist.AddToList(&fillped); 1011 1025 } 1012 1026 1013 1027 pedcalc.SetPedestalsIn(&fPedestalCamIn); 1014 1028 pedlogain.SetPedestalsIn(&fPedestalCamIn); 1029 1015 1030 pedcalc.SetPedestalsInter(&pedinter); 1016 1031 pedlogain.SetPedestalsInter(&pedinter); … … 1135 1150 DisplayResult(plist); 1136 1151 1137 if (fExtractionType!=kFundamental)1138 fExtractor->SetFilter(0);1139 1140 1152 if (!WriteResult()) 1141 1153 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.