Changeset 4632
- Timestamp:
- 08/16/04 17:08:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4630 r4632 26 26 - change to support also 'No calibration of data' 27 27 - removed obsolete dependancie on *'FromData' containers 28 - added member function ReadEnv 28 29 29 30 * mbase/MTime.[h,cc]: 30 31 - added new member function SetStringFmt 32 33 * mcalib/MHCalibrationChargeBlindPix.cc: 34 - removed unused variable 35 36 * mcalib/MHCalibrationChargeBlindPix.cc: 37 - removed unused variable 31 38 32 39 … … 39 46 - replace two gLog by *fLog 40 47 - add the pulser color (needed for the datacheck histograms) 48 41 49 * mjobs/MJCalibration.[h,cc] 42 50 - some small modifications in the data-check display, discussed -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r4608 r4632 55 55 #include "MBadPixelsCalc.h" 56 56 57 #include <TEnv.h> 57 58 #include <TArrayD.h> 58 59 … … 102 103 if (fPedestalLevel>0) 103 104 { 104 fPedPhotCam = (MPedPhotCam*)pList->FindObject(AddSerialNumber(fNamePedPhotContainer), "MPedPhotCam");105 fPedPhotCam = (MPedPhotCam*)pList->FindObject(AddSerialNumber(fNamePedPhotContainer), "MPedPhotCam"); 105 106 if (!fPedPhotCam) 106 107 { … … 115 116 return kFALSE; 116 117 } 117 118 /* fSigmabar = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar"));119 if (!fSigmabar)120 {121 *fLog << err << "MSigmabar not found... aborting." << endl;122 return kFALSE;123 }124 */125 118 } 126 119 return kTRUE; … … 158 151 } 159 152 */ 160 // -------------------------------------------------------------------------- 153 154 // -------------------------------------------------------------------------- 155 // 161 156 // Check the pedestal Rms of the pixels: compute with 2 iterations the mean 162 157 // for inner and outer pixels. Set as blind the pixels with too small or … … 257 252 Int_t MBadPixelsCalc::Process() 258 253 { 259 if (fPedestalLevel>0){ 260 CheckPedestalRms(); 261 fPedPhotCam->ReCalc(*fGeomCam,fBadPixels); 262 } 263 return kTRUE; 264 } 265 266 254 if (fPedestalLevel>0) 255 { 256 CheckPedestalRms(); 257 fPedPhotCam->ReCalc(*fGeomCam, fBadPixels); 258 } 259 return kTRUE; 260 } 261 262 // -------------------------------------------------------------------------- 263 // 264 // Read the setup from a TEnv, eg: 265 // MBadPixelsCalc.PedestalLevel: 3.0 266 // 267 Int_t MBadPixelsCalc::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 268 { 269 Bool_t rc = kFALSE; 270 if (IsEnvDefined(env, prefix, "PedestalLevel")) 271 { 272 rc = kTRUE; 273 SetPedestalLevel(GetEnvValue(env, prefix, "PedestalLevel", fPedestalLevel)); 274 } 275 return rc; 276 } -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.h
r4586 r4632 7 7 8 8 class MBadPixelsCam; 9 //class MSigmabar;10 9 class MGeomCam; 11 10 class MPedPhotCam; … … 15 14 private: 16 15 MGeomCam *fGeomCam; //! Input container storing the pixel sizes 17 // MSigmabar *fSigmabar; //! Input container storing mean pedestal rms of the camera18 16 MPedPhotCam *fPedPhotCam; //! Input container storing the pedestal and pedestal rms of all pixels 19 20 17 MBadPixelsCam *fBadPixels; //! Output container holding the bad pixels 21 18 … … 28 25 Int_t PreProcess(MParList *pList); 29 26 Int_t Process(); 27 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 30 28 31 29 public: -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r4628 r4632 99 99 #include <fstream> 100 100 101 #include <TEnv.h> 102 101 103 #include "MLog.h" 102 104 #include "MLogManip.h" … … 636 638 } 637 639 } 640 641 // -------------------------------------------------------------------------- 642 // 643 // Read the setup from a TEnv, eg: 644 // MJPedestal.MCalibrateDate.PedestalFlag: no,run,event 645 // MJPedestal.MCalibrateDate.CalibrationMode: skip,none,flatcharge,blindpixel,ffactor,pindiode,combined,dummy,default 646 // 647 Int_t MCalibrateData::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 648 { 649 Bool_t rc = kFALSE; 650 if (IsEnvDefined(env, prefix, "PedestalFlag")) 651 { 652 rc = kTRUE; 653 TString s = GetEnvValue(env, prefix, "PedestalFlag", ""); 654 s.ToLower(); 655 if (s==(TString)"no") 656 SetPedestalFlag(kNo); 657 if (s==(TString)"run") 658 SetPedestalFlag(kRun); 659 if (s==(TString)"event") 660 SetPedestalFlag(kEvent); 661 } 662 663 if (IsEnvDefined(env, prefix, "CalibrationMode")) 664 { 665 rc = kTRUE; 666 TString s = GetEnvValue(env, prefix, "CalibrationMode", ""); 667 s.ToLower(); 668 if (s==(TString)"skip") 669 SetCalibrationMode(kSkip); 670 if (s==(TString)"none") 671 SetCalibrationMode(kNone); 672 if (s==(TString)"flatcharge") 673 SetCalibrationMode(kFlatCharge); 674 if (s==(TString)"blindpixel") 675 SetCalibrationMode(kBlindPixel); 676 if (s==(TString)"ffactor") 677 SetCalibrationMode(kFfactor); 678 if (s==(TString)"pindiode") 679 SetCalibrationMode(kPinDiode); 680 if (s==(TString)"combined") 681 SetCalibrationMode(kCombined); 682 if (s==(TString)"dummy") 683 SetCalibrationMode(kDummy); 684 if (s==(TString)"default") 685 SetCalibrationMode(); 686 } 687 688 return rc; 689 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r4628 r4632 61 61 Bool_t ReInit(MParList *pList); 62 62 Int_t Process(); 63 64 void StreamPrimitive( ofstream &out) const;63 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 64 void StreamPrimitive(ofstream &out) const; 65 65 66 66 public:
Note:
See TracChangeset
for help on using the changeset viewer.