Changeset 5030 for trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
- Timestamp:
- 09/15/04 14:53:06 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r5028 r5030 1453 1453 1454 1454 SetRelTimeCalibration(GetEnv("RelTimeCalibration", IsRelTimes())); 1455 SetIntensity(GetEnv("IntensityCalibration", IsIntensity())); 1455 1456 SetDataCheck(GetEnv("Datacheck", IsDataCheck())); 1456 1457 SetDebug(GetEnv("Debug", IsDebug())); 1457 SetIntensity(GetEnv("Intensity", IsIntensity()));1458 1458 1459 1459 SetUseBlindPixel(GetEnv("UseBlindPixel", IsUseBlindPixel())); … … 1491 1491 if (run < gkSecondBlindPixelInstallation) 1492 1492 { 1493 1494 1493 MCalibrationBlindCamOneOldStyle blindresults; 1495 1494 if (IsIntensity()) … … 1505 1504 else if (run < gkThirdBlindPixelInstallation) 1506 1505 { 1507 1508 1506 MCalibrationBlindCamTwoNewStyle blindresults; 1509 1507 … … 2031 2029 *fLog << inf << "ok." << endl; 2032 2030 2031 TObjArray cont; 2033 2032 if (IsIntensity()) 2034 { 2035 *fLog << inf << " - MBadPixelsIntensityCam..." << flush; 2036 if (fIntensBadCam.Write()<=0) 2037 { 2038 *fLog << err << "Unable to write MBadPixelsIntensityCam to " << oname << endl; 2039 return kFALSE; 2040 } 2041 *fLog << inf << "ok." << endl; 2042 2043 *fLog << inf << " - MCalibrationIntensityChargeCam..." << flush; 2044 if (fIntensCalibCam.Write()<=0) 2045 { 2046 *fLog << err << "Unable to write MCalibrationIntensityChargeCam to " << oname << endl; 2047 return kFALSE; 2048 } 2049 *fLog << inf << "ok." << endl; 2050 2051 *fLog << inf << " - MCalibrationIntensityQECam..." << flush; 2052 if (fIntensQECam.Write()<=0) 2053 { 2054 *fLog << err << "Unable to write MCalibrationIntensityQECam to " << oname << endl; 2055 return kFALSE; 2056 } 2057 *fLog << inf << "ok." << endl; 2058 *fLog << inf << " - MCalibrationIntensityBlindCam..." << flush; 2059 if (fIntensBlindCam.Write()<=0) 2060 { 2061 *fLog << err << "Unable to write MCalibrationIntensityBlindCam to " << oname << endl; 2062 return kFALSE; 2063 } 2064 *fLog << inf << "ok." << endl; 2065 } 2033 { 2034 cont.Add(&fIntensBadCam); 2035 cont.Add(&fIntensCalibCam); 2036 cont.Add(&fIntensQECam); 2037 cont.Add(&fIntensBlindCam); 2038 } 2066 2039 else 2067 { 2068 *fLog << inf << " - MCalibrationChargeCam..." << flush; 2069 if (fCalibrationCam.Write()<=0) 2070 { 2071 *fLog << err << "Unable to write MCalibrationChargeCam to " << oname << endl; 2072 return kFALSE; 2073 } 2074 *fLog << inf << "ok." << endl; 2075 2076 *fLog << inf << " - MCalibrationQECam..." << flush; 2077 if (fQECam.Write()<=0) 2078 { 2079 *fLog << err << "Unable to write MCalibrationQECam to " << oname << endl; 2080 return kFALSE; 2081 } 2082 *fLog << inf << "ok." << endl; 2083 2084 *fLog << inf << " - MCalibrationBlindCam..." << flush; 2085 if (fCalibrationBlindCam.Write()<=0) 2086 { 2087 *fLog << err << "Unable to write MCalibrationBlindCam to " << oname << endl; 2088 return kFALSE; 2089 } 2090 *fLog << inf << "ok." << endl; 2091 } 2092 2093 *fLog << inf << " - MCalibrationChargePINDiode..." << flush; 2094 if (fCalibrationPINDiode.Write()<=0) 2095 { 2096 *fLog << err << "Unable to write MCalibrationChargePINDiode to " << oname << endl; 2097 return kFALSE; 2098 } 2099 *fLog << inf << "ok." << endl; 2100 2101 *fLog << inf << " - MBadPixelsCam..." << flush; 2102 if (fBadPixels.Write()<=0) 2103 { 2104 *fLog << err << "Unable to write MBadPixelsCam to " << oname << endl; 2105 return kFALSE; 2106 } 2107 *fLog << inf << "ok." << endl; 2040 { 2041 cont.Add(&fCalibrationCam); 2042 cont.Add(&fQECam); 2043 cont.Add(&fCalibrationBlindCam); 2044 } 2045 cont.Add(&fCalibrationPINDiode); 2046 cont.Add(&fBadPixels); 2047 if (IsRelTimes()) 2048 cont.Add(IsIntensity() ? (TObject*)&fIntensRelTimeCam : (TObject*)&fRelTimeCam); 2108 2049 2109 2050 if (!geom) 2110 *fLog << warn << " - WARNING: MGeomCam... not found!" << endl; 2111 { 2112 *fLog << inf << " - MGeomCam..." << flush; 2113 if (geom->Write()<=0) 2114 { 2115 *fLog << err << "Unable to write MGeomCam to " << oname << endl; 2116 return kFALSE; 2117 } 2118 *fLog << inf << "ok." << endl; 2119 } 2120 2121 if (IsRelTimes()) 2122 { 2123 if (IsIntensity()) 2124 { 2125 *fLog << inf << " - MCalibrationIntensityRelTimeCam..." << flush; 2126 if (fIntensRelTimeCam.Write()<=0) 2127 { 2128 *fLog << err << "Unable to write MCalibrationIntensityRelTimeCam to " << oname << endl; 2129 return kFALSE; 2130 } 2131 *fLog << inf << "ok." << endl; 2132 } 2133 else 2134 { 2135 *fLog << inf << " - MCalibrationRelTimeCam..." << flush; 2136 if (fRelTimeCam.Write()<=0) 2137 { 2138 *fLog << err << "Unable to write MCalibrationRelTimeCam to " << oname << endl; 2139 return kFALSE; 2140 } 2141 *fLog << inf << "ok." << endl; 2142 } 2143 2144 } 2051 *fLog << warn << " - WARNING - MGeomCam... not found!" << endl; 2052 else 2053 cont.Add(geom); 2054 2055 return WriteContainer(cont); 2145 2056 2146 2057 return kTRUE; 2147 2148 2058 } 2149 2059
Note:
See TracChangeset
for help on using the changeset viewer.