Changeset 5570 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 12/08/04 18:02:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r5558 r5570 250 250 fRunHeader = NULL; 251 251 fEvtHeader = NULL; 252 fPedestalsOut = NULL;253 252 254 253 // If the size is yet set, set the size … … 344 343 if (fExtractor && !fPedestalsIn) 345 344 { 346 fPedestalsIn = (MPedestalCam*)pList->FindObject( "MPedestalCam", AddSerialNumber(fNamePedestalCamIn));345 fPedestalsIn = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCamIn), "MPedestalCam"); 347 346 if (!fPedestalsIn) 348 347 { … … 352 351 } 353 352 354 fPedestalsOut = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", AddSerialNumber(fNamePedestalCamOut));355 353 if (!fPedestalsOut) 356 return kFALSE; 354 { 355 fPedestalsOut = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", AddSerialNumber(fNamePedestalCamOut)); 356 if (!fPedestalsOut) 357 return kFALSE; 358 } 357 359 358 360 *fLog << inf; … … 630 632 *fLog << "Name of input MPedestalCam: " << (fPedestalsIn?fPedestalsIn->GetName():fNamePedestalCamIn.Data()) << " (" << fPedestalsIn << ")" << endl; 631 633 *fLog << "Name of output MPedestalCam: " << (fPedestalsOut?fPedestalsOut->GetName():fNamePedestalCamOut.Data()) << " (" << fPedestalsOut << ")" << endl; 632 *fLog << "Num evts for pedestal calc: " << fNumEventsDump << endl;633 *fLog << "Num evts for avg.areas calc: " << fNumAreasDump << endl;634 *fLog << "Num evts for avg.sector calc: " << fNumSectorsDump << endl;635 634 *fLog << "Pedestal Update is " << (fPedestalUpdate?"on":"off") << endl; 636 *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl; 637 635 if (fPedestalUpdate) 636 { 637 *fLog << "Num evts for pedestal calc: " << fNumEventsDump << endl; 638 *fLog << "Num evts for avg.areas calc: " << fNumAreasDump << endl; 639 *fLog << "Num evts for avg.sector calc: " << fNumSectorsDump << endl; 640 } 638 641 if (fExtractor) 639 642 *fLog << "Extractor used: " << fExtractor->ClassName() << endl; 640 } 643 *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl; 644 } -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h
r5558 r5570 94 94 95 95 void SetPedestalsIn(MPedestalCam *pedcam) { fPedestalsIn = pedcam; } 96 void SetPedestalsOut(MPedestalCam *pedcam) { fPedestalsOut = pedcam; } 96 97 97 98 void SetExtractor(MExtractTimeAndCharge *e) { fExtractor = e; } -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r5558 r5570 320 320 321 321 Float_t sum = 0.; 322 UInt_t sumi = 0;323 322 324 323 //extract pedestal … … 327 326 else 328 327 { 328 UInt_t sumi = 0; 329 329 for(Byte_t *slice=slices+fExtractWinFirst; slice<=slices+fExtractWinLast; slice++) 330 330 sumi += *slice; … … 422 422 423 423 Float_t dummy; 424 fExtractor->SetNoiseCalculation(kTRUE); 424 425 fExtractor->FindTimeAndChargeHiGain(logain,logain,sum,dummy,dummy,dummy,sat,ped,logainabflag); 425 } 426 426 fExtractor->SetNoiseCalculation(kFALSE); 427 } 427 428 428 429 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r5559 r5570 316 316 317 317 Float_t dummy; 318 fExtractor->SetNoiseCalculation(kTRUE); 318 319 fExtractor->FindTimeAndChargeHiGain(first,logain,sum,dummy,dummy,dummy,sat,ped,abflag); 320 fExtractor->SetNoiseCalculation(kFALSE); 319 321 } 320 322
Note:
See TracChangeset
for help on using the changeset viewer.