Changeset 3268 for trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc
- Timestamp:
- 02/23/04 22:17:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc
r3201 r3268 40 40 #include "MRawEvtPixelIter.h" 41 41 42 #include "MPedestalCam.h" 43 #include "MPedestalPix.h" 44 42 45 #include "MExtractedSignalBlindPixel.h" 43 46 … … 49 52 const Byte_t MExtractBlindPixel::fgSaturationLimit = 254; 50 53 const Byte_t MExtractBlindPixel::fgFirst = 3; 51 const Byte_t MExtractBlindPixel::fgLast = 1 4;54 const Byte_t MExtractBlindPixel::fgLast = 16; 52 55 53 56 // -------------------------------------------------------------------------- … … 98 101 } 99 102 103 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 104 if (!fPedestals) 105 { 106 *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting." << endl; 107 return kFALSE; 108 } 100 109 101 110 fBlindPixel = (MExtractedSignalBlindPixel*)pList->FindCreateObj(AddSerialNumber("MExtractedSignalBlindPixel")); … … 177 186 *fLog << warn << "WARNING - saturation occurred in the Blind Pixel " << endl; 178 187 188 // 189 // catch the pointer to the event, because MHCalibrationChargeBlindPix will need it later 190 // 191 fPixelIter = &pixel; 192 179 193 fBlindPixel->SetReadyToSave(); 180 194 181 195 return kTRUE; 196 } 197 198 Int_t MExtractBlindPixel::PostProcess() 199 { 200 201 MPedestalPix &pedpix = (*fPedestals)[fBlindPixelIdx]; 202 203 if (&pedpix) 204 { 205 fPed = pedpix.GetPedestal() * fNumSamples; 206 fPedErr = pedpix.GetPedestalRms()* fNumSamples / TMath::Sqrt((Float_t)fPedestals->GetTotalEntries()); 207 fPedRms = pedpix.GetPedestalRms()* TMath::Sqrt((Float_t)fNumSamples); 208 fPedRmsErr = fPedErr/2.; 209 } 210 211 return kTRUE; 212 182 213 } 183 214
Note:
See TracChangeset
for help on using the changeset viewer.