- Timestamp:
- 12/15/04 10:25:49 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5599 r5601 21 21 -*-*- END OF LINE -*-*- 22 22 23 2004/12/15: Thomas Bretz (important bugfixes for callisto) 24 25 * callisto.rc: 26 - fixed wrong names in comments 27 28 * mjobs/MJCalibrateSignal.cc: 29 - fixed naming of the two MPedCalcFromLoGain 30 - set correct pedestal container for extractor 31 32 * msignal/MArrivalTimeCam.h: 33 - added Reset() function 34 35 * msignal/MExtractTime.cc: 36 - replaced parts of the common PreProcess by new function PreProcessStd 37 38 * msignal/MExtractTimeAndCharge.cc: 39 - removed Clear() in Process() -- this is automatically done by 40 Reset() 41 42 * msignal/MExtractedSignalCam.h: 43 - added Reset() function 44 45 * msignal/MExtractor.[h,cc]: 46 - moved some common parts of PreProcess to new function PreProcessStd 47 this fixed the problem that searching for fPedestals was 48 overwritten in MExtractTime 49 50 51 23 52 2004/12/15: Abelardo Moralejo 24 53 25 * mmc/MMcConfigRunHeader.h 26 - added data member fPmtTimeJitter, sigma of gaussian of the time 27 jitter introduced in the time of each photoelectron. 54 * mmc/MMcConfigRunHeader.h 55 - added data member fPmtTimeJitter, sigma of gaussian of the time 56 jitter introduced in the time of each photoelectron. 57 58 28 59 29 60 2004/12/14: Markus Gaug 30 61 31 * msignal/MExtractor.[h,cc] 32 - add possibility to set pedestal pointer from outside 33 34 * msignal/MExtractTimeAndCharge.[h,cc] 35 - make modification of extraction window only for case of now 36 high-gain saturation. 37 38 * msignal/MExtractTimeAndChargeSpline.cc 39 - fixed some smaller bugs for special cases 40 41 * mcalib/MCalibrationIntensityChargeCam.[h,cc] 42 - implemented automatic plotting of Razmik plot and others 62 * msignal/MExtractor.[h,cc] 63 - add possibility to set pedestal pointer from outside 64 65 * msignal/MExtractTimeAndCharge.[h,cc] 66 - make modification of extraction window only for case of now 67 high-gain saturation. 68 69 * msignal/MExtractTimeAndChargeSpline.cc 70 - fixed some smaller bugs for special cases 71 72 * mcalib/MCalibrationIntensityChargeCam.[h,cc] 73 - implemented automatic plotting of Razmik plot and others 74 43 75 44 76 45 77 2004/12/14: Markus Gaug and Abelardo Moralejo 46 78 47 * msignal/MExtractFixedWindowPeakSearch.cc 48 - adjusted the offset from peak search window to extraction window 49 such that they start at the same slice for the case: 50 fOffsetFromWindow=0. This was the original intention of the 51 extractor and had been lost at some place. Instead, the default 52 (fOffsetFromWindow=1) did before correspond to an offset of 2 53 slices which gave wrong results for the calibration and further 54 default settings. 55 - Changed one comparison: (Byte_t - Byte_t) > 0 to (Byte_t > Byte_t) 56 since the first mode is always true (a negative "byte" simply gives 57 256-difference. The version before could have lead to crashes from 58 time to time. 79 * msignal/MExtractFixedWindowPeakSearch.cc 80 - adjusted the offset from peak search window to extraction window 81 such that they start at the same slice for the case: 82 fOffsetFromWindow=0. This was the original intention of the 83 extractor and had been lost at some place. Instead, the default 84 (fOffsetFromWindow=1) did before correspond to an offset of 2 85 slices which gave wrong results for the calibration and further 86 default settings. 87 - Changed one comparison: (Byte_t - Byte_t) > 0 to (Byte_t > Byte_t) 88 since the first mode is always true (a negative "byte" simply gives 89 256-difference. The version before could have lead to crashes from 90 time to time. 91 92 59 93 60 94 2004/12/12: Abelardo Moralejo … … 65 99 warning. 66 100 101 102 67 103 2004/12/09: Markus Gaug 68 104 69 * mhcalib/MHCalibrationPix.[h,cc] 70 - fixed a bug in Reset(), fSaturation was not resetted before. 71 Affects only intensity calibraion. 72 * mhcalib/MHGausEvents.cc 73 - fixed bug in Reset(), histogram ranges were not reset before. 74 Affects only intensity calibraion. 105 * mhcalib/MHCalibrationPix.[h,cc] 106 - fixed a bug in Reset(), fSaturation was not resetted before. 107 Affects only intensity calibraion. 108 * mhcalib/MHGausEvents.cc 109 - fixed bug in Reset(), histogram ranges were not reset before. 110 Affects only intensity calibraion. 111 112 75 113 76 114 2004/12/09: Thomas Bretz 77 115 78 * mbadpixels/MBadPixelsTreat.cc: 79 - set default in constructor to UseInterpolation, ProcessPedestalEvt 80 and ProcessTimes which is the callisto default 81 - enhanced comments in output 116 * mbadpixels/MBadPixelsTreat.cc: 117 - set default in constructor to UseInterpolation, ProcessPedestalEvt 118 and ProcessTimes which is the callisto default 119 - enhanced comments in output 120 82 121 83 122 -
trunk/MagicSoft/Mars/callisto.rc
r5572 r5601 219 219 # Setup pedestal extractor for running through data 220 220 # ------------------------------------------------------------------------- 221 #MJCalibrateSignalAB.ExtractPedestal: MPedCalcFromLoGain 222 #MJCalibrateSignalAB.ExtractPedestal.PedestalUpdate: yes 223 #MJCalibrateSignalAB.ExtractPedestal.NumEventsDump: 1500 224 #MJCalibrateSignalAB.ExtractPedestal.ExtractWinFirst: 15 225 #MJCalibrateSignalAB.ExtractPedestal.ExtractWinSize: 6 226 #MJCalibrateSignalAB.ExtractPedestal.CheckWinFirst: 0 227 #MJCalibrateSignalAB.ExtractPedestal.CheckWinSize: 29 228 #MJCalibrateSignalAB.ExtractPedestal.MaxHiGainVar: 40 229 230 #MJCalibrateSignal.ExtractPedestal: MPedCalcFromLoGain 231 #MJCalibrateSignal.ExtractPedestal.PedestalUpdate: yes 232 #MJCalibrateSignal.ExtractPedestal.NumEventsDump: 1500 233 #MJCalibrateSignal.ExtractPedestal.ExtractWinFirst: 15 234 #MJCalibrateSignal.ExtractPedestal.ExtractWinSize: 6 235 #MJCalibrateSignal.ExtractPedestal.CheckWinFirst: 0 236 #MJCalibrateSignal.ExtractPedestal.CheckWinSize: 29 237 #MJCalibrateSignal.ExtractPedestal.MaxHiGainVar: 40 221 #MJCalibrateSignal.MPedCalcMeanFromLoGain.PedestalUpdate: yes 222 #MJCalibrateSignal.MPedCalcMeanFromLoGain.NumEventsDump: 1500 223 #MJCalibrateSignal.MPedCalcMeanFromLoGain.ExtractWinFirst: 15 224 #MJCalibrateSignal.MPedCalcMeanFromLoGain.ExtractWinSize: 6 225 #MJCalibrateSignal.MPedCalcMeanFromLoGain.CheckWinFirst: 0 226 #MJCalibrateSignal.MPedCalcMeanFromLoGain.CheckWinSize: 29 227 #MJCalibrateSignal.MPedCalcMeanFromLoGain.MaxHiGainVar: 40 228 229 #MJCalibrateSignal.MPedCalcRmsFromLoGain.PedestalUpdate: yes 230 #MJCalibrateSignal.MPedCalcRmsFromLoGain.NumEventsDump: 1500 231 #MJCalibrateSignal.MPedCalcRmsFromLoGain.ExtractWinFirst: 15 232 #MJCalibrateSignal.MPedCalcRmsFromLoGain.ExtractWinSize: 6 233 #MJCalibrateSignal.MPedCalcRmsFromLoGain.CheckWinFirst: 0 234 #MJCalibrateSignal.MPedCalcRmsFromLoGain.CheckWinSize: 29 235 #MJCalibrateSignal.MPedCalcRmsFromLoGain.MaxHiGainVar: 40 238 236 239 237 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r5570 r5601 320 320 MBadPixelsMerge merge(&badpix); 321 321 322 MPedCalcFromLoGain pedlo1("MPedCalc FromLoGainAB");322 MPedCalcFromLoGain pedlo1("MPedCalcMeanFromLoGain"); 323 323 pedlo1.SetPedestalUpdate(kTRUE); 324 324 pedlo1.SetPedestalsOut(&pedcamab); 325 325 326 MPedCalcFromLoGain pedlo2 ;326 MPedCalcFromLoGain pedlo2("MPedCalcRmsFromLoGain"); 327 327 pedlo2.SetPedestalUpdate(kTRUE); 328 328 pedlo2.SetPedestalsIn(&pedcamab); … … 336 336 337 337 if (extractor1->InheritsFrom("MExtractTimeAndCharge")) 338 { 338 339 pedlo2.SetExtractor((MExtractTimeAndCharge*)extractor1); 340 extractor1->SetPedestals(&pedcamab); 341 } 339 342 } 340 343 … … 345 348 taskenv2.SetDefault(extractor2); 346 349 MCalibrateData calib; 347 if (filetype==3) 350 if (filetype==3) // MC file 348 351 { 349 352 calib.SetCalibrationMode(MCalibrateData::kFfactor); -
trunk/MagicSoft/Mars/msignal/MArrivalTimeCam.h
r4274 r5601 32 32 void Clear(Option_t *o=""); 33 33 void SetLogStream(MLog *lg); 34 void Reset() { Clear(); } 34 35 35 36 void InitSize(const UInt_t i); -
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r5558 r5601 110 110 Int_t MExtractTime::PreProcess(MParList *pList) 111 111 { 112 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));113 if (!fRawEvt)114 {115 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;116 return kFALSE;117 }118 119 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));120 if (!fRunHeader)121 {122 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;123 return kFALSE;124 }125 126 127 112 fArrTime = (MArrivalTimeCam*)pList->FindCreateObj("MArrivalTimeCam",AddSerialNumber(fNameTimeCam)); 128 113 if (!fArrTime) 129 114 return kFALSE; 130 115 131 fPedestals = (MPedestalCam*)pList->FindObject( AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 132 if (!fPedestals) 133 { 134 *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl; 135 return kFALSE; 136 } 137 138 return kTRUE; 116 return PreProcessStd(pList); 139 117 } 140 118 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5595 r5601 159 159 Int_t MExtractTimeAndCharge::Process() 160 160 { 161 // This cleaning is nor necessary: It is done automatically by 162 // Reset() before each execution of the Tasklist (Process()) 163 // fArrTime->Clear(); 164 // fSignals->Clear(); 161 165 162 166 MRawEvtPixelIter pixel(fRawEvt); 163 fArrTime->Clear();164 fSignals->Clear();165 167 166 168 while (pixel.Next()) -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h
r4274 r5601 35 35 void Clear(Option_t *o=""); 36 36 void SetLogStream(MLog *lg); 37 void Reset() { Clear(); } 37 38 38 39 void InitSize(const UInt_t i); -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r5592 r5601 130 130 } 131 131 132 Int_t MExtractor::PreProcessStd(MParList *pList) 133 { 134 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 135 if (!fRawEvt) 136 { 137 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl; 138 return kFALSE; 139 } 140 141 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 142 if (!fRunHeader) 143 { 144 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 145 return kFALSE; 146 } 147 148 149 if (fPedestals) 150 return kTRUE; 151 152 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 153 if (!fPedestals) 154 { 155 *fLog << err << fNamePedestalCam << " not found... aborting" << endl; 156 return kFALSE; 157 } 158 159 return kTRUE; 160 } 161 132 162 // -------------------------------------------------------------------------- 133 163 // … … 144 174 Int_t MExtractor::PreProcess(MParList *pList) 145 175 { 146 147 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 148 if (!fRawEvt) 149 { 150 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl; 151 return kFALSE; 152 } 153 154 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 155 if (!fRunHeader) 156 { 157 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 158 return kFALSE; 159 } 160 161 162 if (!fPedestals) 163 { 164 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 165 if (!fPedestals) 166 { 167 *fLog << err << fNamePedestalCam << " not found... aborting" << endl; 168 return kFALSE; 169 } 170 } 171 172 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 173 if (!fSignals) 174 return kFALSE; 175 176 return kTRUE; 176 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 177 if (!fSignals) 178 return kFALSE; 179 180 return PreProcessStd(pList); 177 181 } 178 182 -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r5592 r5601 62 62 virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { } 63 63 64 Int_t PreProcessStd(MParList *pList); 64 65 Int_t PreProcess( MParList *pList ); 65 66 Bool_t ReInit ( MParList *pList );
Note:
See TracChangeset
for help on using the changeset viewer.