Changeset 8408
- Timestamp:
- 04/17/07 13:40:31 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8406 r8408 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/04/17 Thomas Bretz 22 23 * mcalib/CalibLinkDef.h, mcalib/Makefile: 24 - removed obsolete MCalibrationIntensityConstCam 25 26 * mcalib/MCalibCalcFromPast.[h,cc]: 27 - removed obsolete depedency on MCalibrationIntensityConstCam 28 29 * mcalib/MCalibConstCam.[h,cc]: 30 - added a possibility to veto bad pixels in GetPixelContent by 31 setting a MBadPixelsCam 32 - removed obsolete fRunNumber 33 - increased class version number by 1 34 35 * mcalib/MCalibrateData.[h,cc]: 36 - removed obsolete dependency on MCalibrationIntensityConstCam 37 - removed some obsolete comments with code from old pedestal treatment 38 39 40 21 41 2007/04/15 Thomas Bretz 22 42 -
trunk/MagicSoft/Mars/NEWS
r8407 r8408 17 17 - merpp: When reading raw data the data is now stored in a single 18 18 array. The lo-gain array is obsolete. The interface stays the same. 19 20 - callisto: Started further simplification by removing obsolete 21 dependancies on MCalibIntensity*Cams. 19 22 20 23 - callisto: Added the option to write an event movie. Please use -
trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
r8300 r8408 19 19 #pragma link C++ class MCalibrationIntensityCam+; 20 20 #pragma link C++ class MCalibrationIntensityChargeCam+; 21 #pragma link C++ class MCalibrationIntensityConstCam+;22 21 #pragma link C++ class MCalibrationIntensityBlindCam+; 23 22 #pragma link C++ class MCalibrationIntensityQECam+; -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r8395 r8408 32 32 // MCalibrationIntensityChargeCam 33 33 // MCalibrationIntensityRelTimeCam 34 // MCalibrationIntensityConstCam35 34 // MBadPixelsIntensityCam 36 35 // … … 63 62 #include "MCalibrationIntensityBlindCam.h" 64 63 #include "MCalibrationIntensityQECam.h" 65 #include "MCalibrationIntensityRelTimeCam.h" 66 #include "MCalibrationIntensityConstCam.h" 64 //#include "MCalibrationIntensityRelTimeCam.h" 67 65 68 66 #include "MBadPixelsIntensityCam.h" … … 90 88 MCalibCalcFromPast::MCalibCalcFromPast(const char *name, const char *title) 91 89 : fGeom(NULL), fParList(NULL), fRunHeader(NULL), 92 fIntensCharge(NULL), fIntensBlind(NULL), fIntensRelTime(NULL), fIntensConst(NULL),90 fIntensCharge(NULL), fIntensBlind(NULL), fIntensRelTime(NULL), 93 91 fIntensBad(NULL), 94 92 fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL), … … 165 163 fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam"); 166 164 fIntensQE = (MCalibrationIntensityQECam*) pList->FindCreateObj("MCalibrationIntensityQECam"); 167 fIntensConst = (MCalibrationIntensityConstCam*) pList->FindCreateObj("MCalibrationIntensityConstCam");168 165 169 166 if (!fIntensCharge) … … 171 168 if (!fIntensQE) 172 169 return kFALSE; 173 if (!fIntensConst)174 return kFALSE;175 176 170 177 171 MCalibrationChargeCam *chargeinit = (MCalibrationChargeCam*)pList->FindObject("MCalibrationChargeCam"); … … 188 182 *fLog << "Could not find initial MCalibrationQECam, cannot initialize intensity cam" << endl; 189 183 190 fIntensConst->GetCam()->Init(*fGeom);191 192 184 if (!fChargeCalc) 193 185 fChargeCalc = (MCalibrationChargeCalc*)pList->FindObject("MCalibrationChargeCalc"); 194 195 if (!fCalibrate)196 fCalibrate = (MCalibrateData*)pList->FindObject("MCalibrateData");197 198 *fLog << inf << "Found MHCalibrationChargeCam ... " << flush;199 200 186 if (!fChargeCalc) 201 187 { … … 205 191 206 192 if (!fCalibrate) 193 fCalibrate = (MCalibrateData*)pList->FindObject("MCalibrateData"); 194 if (!fCalibrate) 207 195 { 208 196 *fLog << err << "Could not find MCalibrateData abort... " << endl; 209 197 return kFALSE; 210 198 } 211 } 212 199 200 *fLog << inf << "Found MHCalibrationChargeCam ... " << flush; 201 202 } 203 213 204 // 214 205 // Look for the MFillH name "FillRelTimeCam". In case yes, initialize the … … 219 210 220 211 fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam"); 221 if (!fRelTimeCalc)222 fRelTimeCalc = (MCalibrationRelTimeCalc*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));223 224 *fLog << inf << "Found MHCalibrationRelTimeCam ... " << flush;225 226 212 if (!fIntensRelTime) 227 213 { … … 231 217 232 218 if (!fRelTimeCalc) 219 fRelTimeCalc = (MCalibrationRelTimeCalc*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc")); 220 if (!fRelTimeCalc) 233 221 { 234 222 *fLog << err << "Could not find MCalibrationRelTimeCalc abort... " << endl; 235 223 return kFALSE; 236 224 } 225 226 *fLog << inf << "Found MHCalibrationRelTimeCam ... " << flush; 237 227 } 238 228 -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.h
r8210 r8408 21 21 class MCalibrationIntensityQECam; 22 22 class MCalibrationIntensityRelTimeCam; 23 class MCalibrationIntensityConstCam;24 23 class MBadPixelsIntensityCam; 25 24 … … 37 36 MCalibrationIntensityQECam *fIntensQE; //! Intensity QE Cam (to be created) 38 37 MCalibrationIntensityRelTimeCam *fIntensRelTime; //! Intensity Rel. Time Cam (to be created) 39 MCalibrationIntensityConstCam *fIntensConst; //! Intensity Rel. Time Cam (to be created)40 38 MBadPixelsIntensityCam *fIntensBad; //! Intensity Bad Pixels Cam (to be created) 41 39 -
trunk/MagicSoft/Mars/mcalib/MCalibConstCam.cc
r7804 r8408 18 18 ! Author(s): Markus Gaug 01/2005 <mailto:markus@ifae.es> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 520 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 \* ======================================================================== */ 23 23 24 24 ///////////////////////////////////////////////////////////////////////////// 25 // // 26 // MCalibConstCam // 27 // // 28 // Hold the temporary conversion factors for MCalibrateDatara // 29 // // 25 // 26 // MCalibConstCam 27 // 28 // Hold the temporary conversion factors for MCalibrateDatara 29 // 30 // Version 2: 31 // --------- 32 // - fRunNumber 33 // 34 // 30 35 ///////////////////////////////////////////////////////////////////////////// 31 36 #include "MCalibConstCam.h" … … 40 45 #include "MGeomPix.h" 41 46 47 #include "MBadPixelsCam.h" 48 #include "MBadPixelsPix.h" 49 42 50 ClassImp(MCalibConstCam); 43 51 44 52 using namespace std; 53 45 54 // -------------------------------------------------------------------------- 46 55 // … … 59 68 // has to be performed (in MGeomApply). 60 69 // 61 MCalibConstCam::MCalibConstCam(const char *name, const char *title) 70 MCalibConstCam::MCalibConstCam(const char *name, const char *title) 71 : fBadPixels(0) 62 72 { 63 73 fName = name ? name : "MCalibConstCam"; … … 253 263 { 254 264 if (GetSize() <= idx) 265 return kFALSE; 266 267 if (fBadPixels && (*fBadPixels)[idx].IsUnsuitable()) 255 268 return kFALSE; 256 269 -
trunk/MagicSoft/Mars/mcalib/MCalibConstCam.h
r7188 r8408 13 13 #endif 14 14 15 16 15 class MGeomCam; 17 16 class MCalibConstPix; 17 class MBadPixelsCam; 18 18 19 class MCalibConstCam : public MParContainer, public MCamEvent 19 20 { … … 24 25 TClonesArray *fAverageSectors; //-> Array of MCalibConstPix, one per camera sector 25 26 26 Int_t fRunNumber; // Run number 27 27 //Int_t fRunNumber; // Run number 28 29 MBadPixelsCam *fBadPixels; //! 30 28 31 public: 29 32 … … 54 57 55 58 // Setters 56 void SetRunNumber( const Int_t n ) { fRunNumber = n; } 59 //void SetRunNumber(const Int_t n) { fRunNumber = n; } 60 void SetBadPixels(MBadPixelsCam *b) { fBadPixels = b; } 57 61 58 62 Bool_t GetPixelContent (Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; 59 63 void DrawPixelContent(Int_t idx) const; 60 64 61 ClassDef(MCalibConstCam, 1) // Temporary Storage for calibration constants65 ClassDef(MCalibConstCam, 2) // Temporary Storage for calibration constants 62 66 }; 63 67 -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r8395 r8408 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.6 5 2007-04-11 13:35:13tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.66 2007-04-17 12:39:14 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 122 122 #include "MCalibrationQEPix.h" 123 123 124 #include "MCalibrationIntensityConstCam.h"125 124 #include "MCalibConstCam.h" 126 125 #include "MCalibConstPix.h" … … 159 158 : fGeomCam(NULL), fBadPixels(NULL), fCalibrations(NULL), fIntensCalib(NULL), 160 159 fQEs(NULL), fIntensQE(NULL), fSignals(NULL), fCerPhotEvt(NULL), fCalibConstCam(NULL), 161 fIntensConst(NULL), /*fPedestalExt(NULL), fPedestalRndm(NULL), fPedPhotCam(NULL),*/162 160 fPedestalFlag(kNo), fSignalType(kPhot), fRenormFactor(1.), fScaleFactor(1.) 163 161 { … … 216 214 return kFALSE; 217 215 } 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 */237 216 238 217 fSignals = 0; … … 251 230 return kFALSE; 252 231 253 fIntensConst = (MCalibrationIntensityConstCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityConstCam")); 254 if (fIntensConst) 255 *fLog << inf << "Found MCalibrationIntensityConstCam ... " << endl; 256 else 257 { 258 fCalibConstCam = (MCalibConstCam*)pList->FindCreateObj(AddSerialNumber("MCalibConstCam")); 259 if (!fCalibConstCam) 260 return kFALSE; 261 } 232 fCalibConstCam = (MCalibConstCam*)pList->FindCreateObj(AddSerialNumber("MCalibConstCam")); 233 if (!fCalibConstCam) 234 return kFALSE; 262 235 } 263 236 … … 546 519 fHiLoConvErr.Reset(); 547 520 548 MCalibConstCam *constcam = fIntensConst ? fIntensConst->GetCam() : fCalibConstCam;549 550 521 MCalibrationChargeCam *chargecam = NULL; 551 522 MCalibrationQECam *qecam = NULL; … … 580 551 Float_t calibUpdate = 1.; 581 552 582 MCalibConstPix &cpix = (*constcam)[pixidx];583 584 553 if(fCalibrationMode!=kNone) 585 554 { … … 727 696 *fLog << fCalibConvMinLimit << "," << fCalibConvMaxLimit << "[... set to 0. " << endl; 728 697 } 729 cpix.SetCalibConst(calibConv); 698 699 MCalibConstPix &cpix = (*fCalibConstCam)[pixidx]; 700 701 cpix.SetCalibConst(calibConv); 730 702 cpix.SetCalibFFactor(calibFFactor); 731 703 732 704 } /* for (Int_t pixidx=0; pixidx<fGeomCam->GetNumPixels(); pixidx++) */ 733 705 734 if (fIntensConst) 735 fIntensConst->SetReadyToSave(); 736 else 737 fCalibConstCam->SetReadyToSave(); 706 fCalibConstCam->SetReadyToSave(); 738 707 739 708 if (skip>fGeomCam->GetNumPixels()*0.9) … … 842 811 //break; 843 812 } 844 /*845 const Double_t mean = (*fPedestalExt)[pixidx].GetPedestal() * pedmeancalib;846 const Double_t rms = (*fPedestalExt)[pixidx].GetPedestalRms() * pedrmscalib;847 848 (*fPedPhotCam)[pixidx].Set(mean, rms);849 fPedPhotCam->SetReadyToSave();850 */851 813 } /* if (pedestal) */ 852 814 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r8274 r8408 23 23 class MCalibrationIntensityChargeCam; 24 24 class MCalibrationIntensityQECam; 25 class MCalibrationIntensityConstCam;26 25 27 26 class MCalibrateData : public MTask … … 71 70 MSignalCam *fCerPhotEvt; //! Cerenkov Photon Event used for calculation 72 71 MCalibConstCam *fCalibConstCam; //! Temporary calib consts storage 73 MCalibrationIntensityConstCam *fIntensConst; //! Temporary calib consts storage74 // MPedestalCam *fPedestalExt; //! Input container for calibrated pedestal75 // MPedestalCam *fPedestalRndm; //! Input container for calibrated pedestal76 // MPedPhotCam *fPedPhotCam; //! Output container for calibrated pedestal77 72 78 73 CalibrationMode_t fCalibrationMode; // Flag defining the calibration mode (CalibrationMode_t) -
trunk/MagicSoft/Mars/mcalib/Makefile
r8300 r8408 40 40 MCalibrateRelTimes.cc \ 41 41 MCalibrationIntensityCam.cc \ 42 MCalibrationIntensityConstCam.cc \43 42 MCalibrationIntensityChargeCam.cc \ 44 43 MCalibrationIntensityBlindCam.cc \
Note:
See TracChangeset
for help on using the changeset viewer.