Changeset 6855 for trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
- Timestamp:
- 03/18/05 17:21:58 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r6845 r6855 34 34 // This task takes the integrated charge from MExtractedSignal and applies 35 35 // the calibration constants from MCalibrationCam to convert the summed FADC 36 // slices into photons. The number of photons obtained is stored in M CerPhotEvt.36 // slices into photons. The number of photons obtained is stored in MSignalCam. 37 37 // Optionally, the calibration of pedestals from an MPedestalCam container into 38 38 // an MPedPhotCam container can be chosen with the member functions … … 89 89 // Output Containers: 90 90 // [MPedPhotCam] 91 // [M CerPhotEvt]91 // [MSignalCam] 92 92 // 93 93 // See also: MJCalibration, MJPedestal, MJExtractSignal, MJExtractCalibTest … … 129 129 #include "MBadPixelsPix.h" 130 130 131 #include "M CerPhotEvt.h"131 #include "MSignalCam.h" 132 132 133 133 ClassImp(MCalibrateData); … … 194 194 // 195 195 // - MPedPhotCam 196 // - M CerPhotEvt196 // - MSignalCam 197 197 // 198 198 Int_t MCalibrateData::PreProcess(MParList *pList) … … 218 218 } 219 219 220 fCerPhotEvt = (M CerPhotEvt*)pList->FindCreateObj(AddSerialNumber("MCerPhotEvt"));220 fCerPhotEvt = (MSignalCam*)pList->FindCreateObj(AddSerialNumber("MSignalCam")); 221 221 if (!fCerPhotEvt) 222 222 return kFALSE; … … 657 657 const Float_t sqrtslices = TMath::Sqrt(slices); 658 658 659 Int_t numsatlo=0; 660 Int_t numsathi=0; 661 659 662 for (UInt_t pixidx=0; pixidx<npix; pixidx++) 660 663 { … … 699 702 const Float_t nphotErr = TMath::Sqrt(TMath::Abs(nphot)) * fCalibFFactors[pixidx]; 700 703 701 MCerPhotPix *cpix =fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr);704 fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr); 702 705 703 706 if (sig.GetNumHiGainSaturated() > 0) 704 cpix->SetPixelHGSaturated();707 numsathi++; 705 708 706 709 if (sig.GetNumLoGainSaturated() > 0) 707 cpix->SetPixelSaturated();710 numsatlo++; 708 711 } /* if (data) */ 709 712 … … 735 738 if (data) 736 739 { 737 fCerPhotEvt-> FixSize();740 fCerPhotEvt->SetNumPixelsSaturated(numsathi, numsatlo); 738 741 fCerPhotEvt->SetReadyToSave(); 739 742 }
Note:
See TracChangeset
for help on using the changeset viewer.