Changeset 4457 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 08/04/04 11:37:56 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r3568 r4457 18 18 ! Author(s): Thomas Bretz, 11/2002 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 42 42 // MMcTrig mc data container for trigger information 43 43 // MSrcPosCam source position in the camera 44 // MB lindPixelsArray holding blind pixels44 // MBadPixelsCam Array holding blind pixels 45 45 // 46 46 ///////////////////////////////////////////////////////////////////////////// … … 74 74 #include "MGeomCam.h" 75 75 #include "MSrcPosCam.h" 76 #include "MBlindPixels.h" 76 #include "MBadPixelsCam.h" 77 #include "MBadPixelsPix.h" 77 78 78 79 #include "MRawRunHeader.h" … … 245 246 { 246 247 *fLog << i << " "; 247 fBlinds->SetPixelBlind(i);248 (*fBlinds)[i].SetUnsuitable(MBadPixelsPix::kUnreliableRun); 248 249 } 249 250 *fLog << endl; … … 255 256 { 256 257 *fLog << i << " "; 257 fBlinds->SetPixelBlind(i);258 (*fBlinds)[i].SetUnsuitable(MBadPixelsPix::kUnreliableRun); 258 259 } 259 260 *fLog << endl; … … 262 263 fBlnd.Set(iMAXNUMPIX); 263 264 for (int i=0; i<iMAXNUMPIX; i++) 264 fBlnd[i] = fBlinds->IsBlind(i) ? 1 : 0;265 fBlnd[i] = (*fBlinds)[i].IsBad() ? 1 : 0; 265 266 266 267 fBlinds->SetReadyToSave(); … … 349 350 350 351 // float frms_pedsig_phot[iMAXNUMPIX]; // standard deviation of the calibrated signals from the pedestal run */ 351 fPedest->Init Size(iMAXNUMPIX);352 fPedest->Init(*fGeom); 352 353 353 354 fPedRMS.Set(iMAXNUMPIX); … … 775 776 // look for the pedestal class in the plist 776 777 // 777 fBlinds = (MB lindPixels*)pList->FindCreateObj("MBlindPixels");778 fBlinds = (MBadPixelsCam*)pList->FindCreateObj("MBadPixelsCam"); 778 779 if (!fBlinds) 779 780 return kFALSE; … … 818 819 Rewind(); 819 820 820 fPedest->Init Size(iMAXNUMPIX);821 fPedest->Init(*fGeom); 821 822 822 823 return GetSelector() ? GetSelector()->CallPreProcess(pList) : kTRUE; … … 901 902 fBlinds->Clear(); 902 903 for (int i=0; i<iMAXNUMPIX; i++) 903 if ( fBlnd[i]==1 ) 904 { 905 fBlinds->SetPixelBlind(i); 906 } 904 if (fBlnd[i]==1) 905 (*fBlinds)[i].SetUnsuitable(MBadPixelsPix::kUnreliableRun); 907 906 908 907 // reset pedestal RMS for this event -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r2781 r4457 22 22 class MCerPhotEvt; 23 23 class MPedPhotCam; 24 class MB lindPixels;24 class MBadPixelsCam; 25 25 class MRawRunHeader; 26 26 class MTaskList; … … 45 45 MMcTrig *fMcTrig; // mc data container for trigger information 46 46 MSrcPosCam *fSrcPos; // source position in the camera 47 MB lindPixels*fBlinds; // Array holding blind pixels47 MBadPixelsCam *fBlinds; // Array holding blind pixels 48 48 MRawRunHeader *fRawRunHeader; // raw run header 49 49 MParList *fParList; // parameter list
Note:
See TracChangeset
for help on using the changeset viewer.