Changeset 8154 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 10/24/06 09:26:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8141 r8154 94 94 #include "MFTriggerPattern.h" 95 95 #include "MGeomApply.h" 96 #include "MPedestalSubtract.h" 96 97 //#include "MMcPedestalCopy.h" 97 98 #include "MPointingPosCalc.h" … … 450 451 MContinue conttp(&ftp, "ContTrigPattern"); 451 452 453 // Create the pedestal subtracted raw-data 454 MPedestalSubtract pedsub; 455 pedsub.SetPedestalCam(&pedcamab); 456 452 457 // Do signal and pedestal calculation 453 458 MPedCalcFromLoGain pedlo1("MPedCalcFundamental"); … … 471 476 extractor1->SetPedestals(&pedcamab); 472 477 478 // Setup to use the hi-gain extraction window in the lo-gain 479 // range (the start of the lo-gain range is added automatically 480 // by MPedCalcFromLoGain) 481 // 482 // The window size of the extractor is not yet initialized, 483 // so we have to stick to the extraction range 484 const Int_t f = extractor1->GetHiGainFirst(); 485 const Int_t l = extractor1->GetHiGainLast(); 486 const Int_t w = (l-f+1)&~1; 487 488 pedlo1.SetExtractWindow(f, w); 489 473 490 if (extractor1->InheritsFrom("MExtractTimeAndCharge")) 474 491 { 475 492 pedlo2.SetExtractor((MExtractTimeAndCharge*)extractor1); 476 493 pedlo3.SetExtractor((MExtractTimeAndCharge*)extractor1); 494 /* 477 495 const Int_t win = ((MExtractTimeAndCharge*)extractor1)->GetWindowSizeHiGain(); 478 496 pedlo1.SetExtractWindow(15, win); 479 pedlo2.SetExtractWindow(15, win/*obsolete*/); 480 pedlo3.SetExtractWindow(15, win/*obsolete*/); 497 pedlo2.SetExtractWindow(15, win//obsolete//); 498 pedlo3.SetExtractWindow(15, win//obsolete//); 499 */ 481 500 } 482 501 else 483 502 { 503 /* 484 504 // FIXME: How to get the fixed value 15 automatically? 485 505 const Int_t f = (Int_t)(15.5+extractor1->GetHiGainFirst()); … … 488 508 pedlo2.SetExtractWindow(f, n); 489 509 pedlo3.SetExtractWindow(f, n); 510 */ 511 pedlo2.SetExtractWindow(f, w); 512 pedlo3.SetExtractWindow(f, w); 513 490 514 } 491 515 } … … 657 681 tlist2.AddToList(&apply); 658 682 tlist2.AddToList(&merge); 683 tlist2.AddToList(&pedsub); 659 684 tlist2.AddToList(&pedlo1); 660 685 tlist2.AddToList(&pedlo2);
Note:
See TracChangeset
for help on using the changeset viewer.