Changeset 6855 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/18/05 17:21:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 5 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 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r6330 r6855 2 2 #define MARS_MCalibrateData 3 3 4 /////////////////////////////////////////////////////////////////////////////5 // //6 // MCalibrateData //7 // //8 // Integrates the desired ADC time slices of one pixel and apply //9 // calibration constants //10 // //11 // Differences between MCalibrateData and MCalibrate : //12 // in MCalibrateData //13 // - in ReInit the MPedPhot container is filled using //14 // - the pedstals/slice from MPedestalCam //15 // - the number of used FADC slices from MExtractedSignalCam //16 // - the photon/ADC conversion factor from MCalibrationCam //17 // //18 /////////////////////////////////////////////////////////////////////////////19 4 #ifndef MARS_MTask 20 5 #include "MTask.h" … … 33 18 34 19 class MPedPhotCam; 35 class M CerPhotEvt;20 class MSignalCam; 36 21 class MCalibConstCam; 22 37 23 class MCalibrateData : public MTask 38 24 { … … 50 36 MCalibrationQECam *fQEs; //! Quantum efficiencies 51 37 MExtractedSignalCam *fSignals; //! Integrated charge in FADCs counts 52 M CerPhotEvt*fCerPhotEvt; //! Cerenkov Photon Event used for calculation38 MSignalCam *fCerPhotEvt; //! Cerenkov Photon Event used for calculation 53 39 MCalibConstCam *fCalibConstCam; //! Temporary calib consts storage 54 40 -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r6038 r6855 29 29 // This task takes the extracted arrival times from MArrivalTimeCam for each 30 30 // pixel and applies the offset calibrated in MCalibrationRelTimeCam 31 // The calibrated arrival time and its error gets stored in M CerPhotEvt.31 // The calibrated arrival time and its error gets stored in MSignalCam. 32 32 // 33 33 // Input Containers: … … 36 36 // 37 37 // Output Containers: 38 // M ArrivalTime38 // MSignalCam 39 39 // 40 40 ////////////////////////////////////////////////////////////////////////////// … … 58 58 #include "MBadPixelsPix.h" 59 59 60 #include "MArrivalTime.h" 60 #include "MSignalCam.h" 61 #include "MSignalPix.h" 61 62 62 63 ClassImp(MCalibrateRelTimes); … … 112 113 113 114 114 fArrivalTime = (M ArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime"));115 fArrivalTime = (MSignalCam*)pList->FindCreateObj(AddSerialNumber("MSignalCam")); 115 116 if (!fArrivalTime) 116 {117 *fLog << err << AddSerialNumber("MArrivalTime") << ": Cannot create ... aborting." << endl;118 117 return kFALSE; 119 }120 118 121 119 return kTRUE; 122 120 } 123 121 124 // --------------------------------------------------------------------------125 //126 // Check for validity of the selected calibration method, switch to a127 // different one in case of need128 //129 Bool_t MCalibrateRelTimes::ReInit(MParList *pList)130 {131 return kTRUE;132 }133 122 // -------------------------------------------------------------------------- 134 123 // … … 142 131 { 143 132 // FIXME: MArrivalTime must be of variable size - 144 // like M CerPhotEvt- because we must be able133 // like MSignalCam - because we must be able 145 134 // to reduce size by zero supression 146 135 // For the moment this check could be done in ReInit... … … 172 161 const Float_t time = signal - offset; 173 162 174 fArrivalTime->SetTime(pixidx,time);163 (*fArrivalTime)[pixidx].SetArrivalTime(time); 175 164 176 165 } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */ -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.h
r3752 r6855 18 18 class MCalibrationRelTimeCam; 19 19 class MArrivalTimeCam; 20 class MArrivalTime; 20 class MSignalCam; 21 21 22 class MCalibrateRelTimes : public MTask 22 23 { … … 26 27 MBadPixelsCam *fBadPixels; // Bad Pixels information 27 28 MArrivalTimeCam *fSignals; // Extracted Arrival Time 28 M ArrivalTime*fArrivalTime; // Calibrated arrival times29 MSignalCam *fArrivalTime; // Calibrated arrival times 29 30 30 31 Int_t PreProcess(MParList *pList); 31 Bool_t ReInit(MParList *pList);32 32 Int_t Process(); 33 33 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r6828 r6855 489 489 fBlindCam = (MCalibrationBlindCam*)pList->FindObject(AddSerialNumber("MCalibrationBlindCam")); 490 490 if (!fBlindCam) 491 { 492 *fLog << endl; 493 *fLog << warn << GetDescriptor() 494 << ": No MCalibrationBlindCam found... no Blind Pixel method! " << endl; 495 } 491 *fLog << warn << GetDescriptor() 492 << ": No MCalibrationBlindCam found... no Blind Pixel method! " << endl; 496 493 } 497 494 498 495 fHBlindCam = (MHCalibrationChargeBlindCam*)pList->FindObject(AddSerialNumber("MHCalibrationChargeBlindCam")); 499 496 if (!fHBlindCam) 500 { 501 *fLog << endl; 502 *fLog << warn << GetDescriptor() 503 << ": No MHCalibrationChargeBlindCam found... no Blind Pixel method! " << endl; 504 } 497 *fLog << warn << GetDescriptor() 498 << ": No MHCalibrationChargeBlindCam found... no Blind Pixel method! " << endl; 505 499 506 500 fIntensBad = (MBadPixelsIntensityCam*)pList->FindObject(AddSerialNumber("MBadPixelsIntensityCam")); … … 522 516 fPINDiode = (MCalibrationChargePINDiode*)pList->FindObject("MCalibrationChargePINDiode"); 523 517 if (!fPINDiode) 524 { 525 *fLog << endl; 526 *fLog << warn << GetDescriptor() 527 << ": MCalibrationChargePINDiode not found... no PIN Diode method! " << endl; 528 } 518 *fLog << warn << GetDescriptor() 519 << ": No MCalibrationChargePINDiode found... no PIN Diode method! " << endl; 529 520 530 521 MCalibrationQECam *qecam = fIntensQE … … 1865 1856 ? (MCalibrationChargeCam*)fIntensCam->GetCam() : fCam; 1866 1857 1858 if (!blindcam) 1859 return; 1860 1867 1861 // 1868 1862 // Set the results in the MCalibrationChargeCam … … 1956 1950 MBadPixelsCam *badcam = fIntensBad 1957 1951 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; 1952 1953 if (!fPINDiode) 1954 return; 1955 1958 1956 // 1959 1957 // With the knowledge of the overall photon flux, calculate the
Note:
See TracChangeset
for help on using the changeset viewer.