Changeset 5237 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 10/12/04 12:25:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r5236 r5237 1920 1920 Bool_t MJCalibration::WriteResult(TObject *geom) 1921 1921 { 1922 if (fPathOut.IsNull()) 1923 return kTRUE; 1924 1925 const TString oname(GetOutputFile()); 1926 1927 *fLog << inf << "Writing to file: " << oname << endl; 1928 1929 TFile file(oname, "UPDATE", "File created by MJCalibration", 9); 1930 if (!file.IsOpen()) 1931 { 1932 *fLog << err << "ERROR - Couldn't open file " << oname << " for writing..." << endl; 1933 return kFALSE; 1934 } 1935 1936 *fLog << inf << " - MStatusDisplay..." << flush; 1937 if (fDisplay && fDisplay->Write()<=0) 1938 { 1939 *fLog << err << "Unable to write MStatusDisplay to " << oname << endl; 1940 return kFALSE; 1941 } 1942 *fLog << inf << "ok." << endl; 1943 1944 TObjArray cont; 1945 if (IsIntensity()) 1946 { 1947 cont.Add(&fIntensBadCam); 1948 cont.Add(&fIntensCalibCam); 1949 cont.Add(&fIntensQECam); 1950 cont.Add(&fIntensBlindCam); 1951 } 1952 else 1953 { 1954 cont.Add(&fBadPixels); 1955 cont.Add(&fCalibrationCam); 1956 cont.Add(&fQECam); 1957 cont.Add(&fCalibrationBlindCam); 1958 } 1959 cont.Add(&fCalibrationPINDiode); 1960 if (IsRelTimes()) 1961 cont.Add(IsIntensity() ? (TObject*)&fIntensRelTimeCam : (TObject*)&fRelTimeCam); 1962 1963 if (!geom) 1964 *fLog << warn << " - WARNING - MGeomCam... not found!" << endl; 1965 else 1966 cont.Add(geom); 1967 1968 return WriteContainer(cont); 1922 1923 if (IsNoStorage()) 1924 return kTRUE; 1925 1926 if (fPathOut.IsNull()) 1927 return kTRUE; 1928 1929 const TString oname(GetOutputFile()); 1930 1931 *fLog << inf << "Writing to file: " << oname << endl; 1932 1933 TFile file(oname, "UPDATE", "File created by MJCalibration", 9); 1934 if (!file.IsOpen()) 1935 { 1936 *fLog << err << "ERROR - Couldn't open file " << oname << " for writing..." << endl; 1937 return kFALSE; 1938 } 1939 1940 *fLog << inf << " - MStatusDisplay..." << flush; 1941 if (fDisplay && fDisplay->Write()<=0) 1942 { 1943 *fLog << err << "Unable to write MStatusDisplay to " << oname << endl; 1944 return kFALSE; 1945 } 1946 *fLog << inf << "ok." << endl; 1947 1948 TObjArray cont; 1949 if (IsIntensity()) 1950 { 1951 cont.Add(&fIntensBadCam); 1952 cont.Add(&fIntensCalibCam); 1953 cont.Add(&fIntensQECam); 1954 cont.Add(&fIntensBlindCam); 1955 } 1956 else 1957 { 1958 cont.Add(&fBadPixels); 1959 cont.Add(&fCalibrationCam); 1960 cont.Add(&fQECam); 1961 cont.Add(&fCalibrationBlindCam); 1962 } 1963 cont.Add(&fCalibrationPINDiode); 1964 if (IsRelTimes()) 1965 cont.Add(IsIntensity() ? (TObject*)&fIntensRelTimeCam : (TObject*)&fRelTimeCam); 1966 1967 if (!geom) 1968 *fLog << warn << " - WARNING - MGeomCam... not found!" << endl; 1969 else 1970 cont.Add(geom); 1971 1972 return WriteContainer(cont); 1969 1973 } 1970 1974
Note:
See TracChangeset
for help on using the changeset viewer.