Changeset 3931 for trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
- Timestamp:
- 05/03/04 10:47:30 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r3889 r3931 116 116 #include "MGeomCam.h" 117 117 118 #include "MBadPixelsPix.h" 119 #include "MBadPixelsCam.h" 120 118 121 #include "MGeomCamMagic.h" 119 122 … … 133 136 // 134 137 // Sets: 138 // - all pointers to NULL 135 139 // - fWindowSizeHiGain to fgHiGainWindowSize 136 140 // - fWindowSizeLoGain to fgLoGainWindowSize … … 144 148 MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title) 145 149 : fWindowSizeHiGain(fgHiGainWindowSize), 146 fWindowSizeLoGain(fgLoGainWindowSize) 150 fWindowSizeLoGain(fgLoGainWindowSize), 151 fGeom(NULL),fBad(NULL) 147 152 { 148 153 fName = name ? name : "MPedCalcPedRun"; … … 263 268 // - MRawRunHeader 264 269 // - MGeomCam 270 // - MBadPixelsCam 265 271 // 266 272 // The following output containers are also searched and created if … … 298 304 if (!fPedestals) 299 305 return kFALSE; 306 307 fBad = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); 300 308 301 309 return kTRUE; … … 318 326 // modifying the ranges again, if necessary. 319 327 // 328 // A loop over the MBadPixelsCam is performed and bad pixels are set 329 // to MPedestalPix::SetValid(kFALSE); 330 // 320 331 Bool_t MPedCalcPedRun::ReInit(MParList *pList) 321 332 { … … 385 396 *fLog << inf << GetDescriptor() << ": Taking " << (int)fWindowSizeLoGain 386 397 << " LoGain FADC samples starting with slice: " << (int)fLoGainFirst << endl; 398 399 400 if (fBad) 401 { 402 const Int_t nbads = fBad->GetSize(); 403 for (Int_t i=0; i<(nbads>npixels?npixels:nbads);i++) 404 if ((*fBad)[i].IsBad()) 405 (*fPedestals)[i].SetValid(kFALSE); 406 } 387 407 388 408 return kTRUE; 389 409 390 410 } 391 411 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.