Changeset 8158 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 10/24/06 13:40:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8154 r8158 114 114 115 115 #include "MPedestalCam.h" 116 #include "MPedestalSubtract.h" 116 117 #include "MCalibColorSteer.h" 117 118 … … 1594 1595 MHCalibrationChargeBlindCam &blindcam) 1595 1596 { 1596 1597 Int_t run = fSequence.GetLastRun(); 1598 1599 // 1600 // Initialize the blind pixel. Unfortunately, there is a hardware difference 1601 // in the first blind pixel until run "gkSecondBlindPixelInstallation" and the 1602 // later setup. The first needs to use a filter because of the length of 1603 // spurious NSB photon signals. The latter get better along extracting the amplitude 1604 // from a small window. 1605 // 1606 if (run < gkSecondBlindPixelInstallation) 1607 { 1608 MCalibrationBlindCamOneOldStyle blindresults; 1609 if (IsIntensity()) 1597 const Int_t run = fSequence.GetLastRun(); 1598 1599 // 1600 // Initialize the blind pixel. Unfortunately, there is a hardware 1601 // difference in the first blind pixel until run 1602 // gkSecondBlindPixelInstallation and the later setup. The first 1603 // needs to use a filter because of the length of spurious NSB photon 1604 // signals. The latter get better along extracting the amplitude 1605 // from a small window. 1606 // 1607 const MCalibrationBlindCamOneOldStyle one; 1608 const MCalibrationBlindCamTwoNewStyle two; 1609 const MCalibrationBlindCamThreeNewStyle three; 1610 1611 const MCalibrationBlindCam &blindresults = 1612 run<gkSecondBlindPixelInstallation ? static_cast<MCalibrationBlindCam>(one) : 1613 (run<gkThirdBlindPixelInstallation ? static_cast<MCalibrationBlindCam>(two) : static_cast<MCalibrationBlindCam>(three)); 1614 1615 if (IsIntensity()) 1610 1616 blindresults.Copy(*fIntensBlindCam.GetCam()); 1611 1617 else 1612 1618 blindresults.Copy(fCalibrationBlindCam); 1613 1619 1614 blindext.SetExtractionType(MExtractBlindPixel::kIntegral); 1615 blindext.SetExtractionType(MExtractBlindPixel::kFilter); 1616 blindext.SetRange(10,19,0,6); 1617 blindext.SetNSBFilterLimit(70); 1618 } 1619 else if (run < gkThirdBlindPixelInstallation) 1620 { 1621 1622 MCalibrationBlindCamTwoNewStyle blindresults; 1623 1624 if (IsIntensity()) 1625 blindresults.Copy(*fIntensBlindCam.GetCam()); 1626 else 1627 blindresults.Copy(fCalibrationBlindCam); 1628 1629 blindext.SetNumBlindPixels(blindresults.GetSize()); 1630 for (Int_t i=0;i<blindresults.GetSize();i++) 1631 blindext.SetBlindPixelIdx(blindresults[i].GetPixId(),i); 1632 1633 blindext.SetExtractionType(MExtractBlindPixel::kAmplitude); 1634 blindext.SetExtractionType(MExtractBlindPixel::kFilter); 1635 blindext.SetRange(5,8,0,2); 1636 blindext.SetNSBFilterLimit(38); 1637 1638 } 1639 else 1640 { 1641 1642 MCalibrationBlindCamThreeNewStyle blindresults; 1643 1644 if (IsIntensity()) 1645 blindresults.Copy(*fIntensBlindCam.GetCam()); 1646 else 1647 blindresults.Copy(fCalibrationBlindCam); 1648 1649 blindext.SetNumBlindPixels(blindresults.GetSize()); 1650 1651 for (Int_t i=0;i<blindresults.GetSize();i++) 1652 blindext.SetBlindPixelIdx(blindresults[i].GetPixId(),i); 1653 1654 blindext.SetExtractionType(MExtractBlindPixel::kAmplitude); 1655 blindext.SetExtractionType(MExtractBlindPixel::kFilter); 1656 blindext.SetDataType(MExtractBlindPixel::kRawEvt2); 1657 blindext.SetRange(5,8,0,2); 1658 blindext.SetNSBFilterLimit(38); 1659 1660 } 1661 1620 blindext.SetExtractionType(MExtractBlindPixel::kIntegral); 1621 blindext.SetExtractionType(MExtractBlindPixel::kFilter); 1622 1623 if (run<gkSecondBlindPixelInstallation) 1624 { 1625 blindext.SetRange(10,19,0,6); 1626 blindext.SetNSBFilterLimit(70); 1627 } 1628 else 1629 { 1630 blindext.SetRange(5,8,0,2); 1631 blindext.SetNSBFilterLimit(38); 1632 } 1633 1634 if (run>=gkThirdBlindPixelInstallation) 1635 blindext.SetDataType(MExtractBlindPixel::kRawEvt2); 1662 1636 } 1663 1637
Note:
See TracChangeset
for help on using the changeset viewer.