Changeset 4632 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 08/16/04 17:08:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note:
See TracChangeset
for help on using the changeset viewer.