Changeset 8274
- Timestamp:
- 01/29/07 12:49:21 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8273 r8274 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/01/27 Thomas Bretz 22 23 * manalysis/MMcCalibrationUpdate.cc: 24 - fixed a typo in a comment 25 26 * mcalib/MCalibrateData.[h,cc]: 27 - commented out some obsolete currently unused code 28 29 * mdata/MDataPhrase.cc: 30 - added a sanity check 31 32 * mpedestal/MMcPedestalCopy.cc: 33 - Changed output to fit the structure used in all other classes 34 35 20 36 21 37 2007/01/27 Daniela Dorner -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r7876 r8274 27 27 // MMcCalibrationUpdate 28 28 // 29 // This task looks for the ìnformation about FADC pedestals in29 // This task looks for the information about FADC pedestals in 30 30 // MMcFadcHeader and translates it to the pedestal mean and rms (in adc counts). 31 31 // If not already existing in the parameter list, an MCalibrationCam object -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r8132 r8274 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.6 1 2006-10-19 13:58:29tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.62 2007-01-29 12:46:55 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 159 159 : fGeomCam(NULL), fBadPixels(NULL), fCalibrations(NULL), fIntensCalib(NULL), 160 160 fQEs(NULL), fIntensQE(NULL), fSignals(NULL), fCerPhotEvt(NULL), fCalibConstCam(NULL), 161 fIntensConst(NULL), fPedestalFlag(kNo), fSignalType(kPhot), fRenormFactor(1.),162 161 fIntensConst(NULL), /*fPedestalExt(NULL), fPedestalRndm(NULL), fPedPhotCam(NULL),*/ 162 fPedestalFlag(kNo), fSignalType(kPhot), fRenormFactor(1.), fScaleFactor(1.) 163 163 { 164 164 … … 216 216 return kFALSE; 217 217 } 218 /* 219 fPedPhotCam = (MPedPhotCam*)pList->FindCreateObj("MPedPhotCam"); 220 if (!fPedPhotCam) 221 return kFALSE; 222 223 fPedestalExt = (MPedestalCam*)pList->FindObject("MPedestalFromExtractor", "MPedestalCam"); 224 if (!fPedestalExt) 225 { 226 *fLog << err << "MPedestalFromExtractor [MPedestalCam] not found ... aborting" << endl; 227 return kFALSE; 228 } 229 /* 230 fPedestalRndm = (MPedestalCam*)pList->FindObject("MPedestalFromExtractorRndm", "MPedestalCam"); 231 if (!fPedestalRndm) 232 { 233 *fLog << err << "MPedestalFromExtractorRndm [MPedestalCam] not found ... aborting" << endl; 234 return kFALSE; 235 } 236 */ 218 237 219 238 fSignals = 0; … … 795 814 } /* if (data) */ 796 815 797 798 816 if (pedestal) 799 817 { … … 816 834 (*pedphot)[pixidx].Set(mean, rms); 817 835 pedphot->SetReadyToSave(); 836 //break; 818 837 } 838 /* 839 const Double_t mean = (*fPedestalExt)[pixidx].GetPedestal() * pedmeancalib; 840 const Double_t rms = (*fPedestalExt)[pixidx].GetPedestalRms() * pedrmscalib; 841 842 (*fPedPhotCam)[pixidx].Set(mean, rms); 843 fPedPhotCam->SetReadyToSave(); 844 */ 819 845 } /* if (pedestal) */ 820 846 } 847 848 // Now we should take the bias (MPedPhotExtractor/Mean) and 849 // pedestal rms (MPedPhotExtractorRndm/Rms) and store it 850 // into MSignalPix 821 851 822 852 if (data) -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r7804 r8274 72 72 MCalibConstCam *fCalibConstCam; //! Temporary calib consts storage 73 73 MCalibrationIntensityConstCam *fIntensConst; //! Temporary calib consts storage 74 // MPedestalCam *fPedestalExt; //! Input container for calibrated pedestal 75 // MPedestalCam *fPedestalRndm; //! Input container for calibrated pedestal 76 // MPedPhotCam *fPedPhotCam; //! Output container for calibrated pedestal 74 77 75 78 CalibrationMode_t fCalibrationMode; // Flag defining the calibration mode (CalibrationMode_t) … … 90 93 MArrayF fHiLoConv; //! Array of calibration constants for each pixel, calculated only once! 91 94 MArrayF fHiLoConvErr; //! Array of calibration F-Factors for each pixel, calculated only once! 92 95 93 96 Int_t Calibrate(Bool_t data, Bool_t pedestal) const; 94 97 95 98 Int_t PreProcess(MParList *pList); 96 99 Bool_t ReInit(MParList *pList); … … 98 101 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 99 102 void StreamPrimitive(ostream &out) const; 100 103 101 104 public: 102 105 MCalibrateData(CalibrationMode_t calmode=gkDefault, 103 106 const char *name=NULL, const char *title=NULL); 104 107 105 108 void AddPedestal(const char *name="Cam"); 106 109 void AddPedestal(const char *pedestal, const char *pedphot); -
trunk/MagicSoft/Mars/mdata/MDataPhrase.cc
r8149 r8274 519 519 Bool_t MDataPhrase::PreProcess(const MParList *plist) 520 520 { 521 if (!fFormula) 522 { 523 *fLog << err << "Error - So far no valid phrase was setup." << endl; 524 return kFALSE; 525 } 526 521 527 TIter Next(&fMembers); 522 528 -
trunk/MagicSoft/Mars/mpedestal/MMcPedestalCopy.cc
r7188 r8274 90 90 } 91 91 92 93 94 92 // -------------------------------------------------------------------------- 95 93 // … … 98 96 Int_t MMcPedestalCopy::PreProcess(MParList *pList) 99 97 { 100 if ( ! pList->FindObject(AddSerialNumber("MPedestalCam")) ) 101 pList->FindCreateObj(AddSerialNumber("MPedestalCam")); 102 103 return kTRUE; 98 return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE; 104 99 } 105 100 … … 127 122 if (!fadc) 128 123 { 129 *fLog << err << dbginf <<"MMcFadcHeader not found... aborting." << endl;124 *fLog << err << "MMcFadcHeader not found... aborting." << endl; 130 125 return kFALSE; 131 126 } … … 133 128 MPedestalCam *pedcam = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 134 129 if (!pedcam) 135 { 136 *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MPedestalCam") <<"... Exiting." << endl; 137 130 { 131 *fLog << err << "MPedestalCam not found... aborting." << endl; 138 132 return kFALSE; 139 133 } 140 134 141 135 MMcRunHeader *mcrun = (MMcRunHeader*)pList->FindObject(AddSerialNumber("MMcRunHeader"));
Note:
See TracChangeset
for help on using the changeset viewer.