Changeset 16991 for fact/tools/pyscripts/pyfact
- Timestamp:
- 07/30/13 20:13:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/calfactfits.h
r16947 r16991 2 2 // 3 3 // Class CalFactFits 4 // Wrapper class for f its.h or pyfits.h4 // Wrapper class for factfits.h (or fits.h, pyfits.h) 5 5 // Provides fast access to calibrated events of FACT raw files 6 6 // … … 17 17 // root [3] .L calfactfits.h++ 18 18 // 19 // Try /usr/lib/x86_64-linux-gnu/libz.so at ETH for the libz.so file. 20 // 19 21 // Note: the produced izstream_h.so must be in LD_LIBRARY_PATH, e.g. 20 22 // export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/guest/kraehenb/software/PythonIncludes/ … … 101 103 //Read basic parameters of the two files 102 104 // std::cout << "...Reading basic file parameters..." << std::endl; 103 calib_nroi = calibfile.GetUInt("NROI"); 104 calib_npix = calibfile.GetUInt("NPIX"); 105 try { 106 calib_nroi = calibfile.GetUInt("NROI"); 107 } 108 catch(runtime_error &err) { 109 std::cout << err.what() << std::endl; 110 std::cout << "Standard value NROI=1024 assumed." << std::endl; 111 calib_nroi = 1024; 112 } 113 try { 114 calib_npix = calibfile.GetUInt("NPIX"); 115 } 116 catch(runtime_error &err) { 117 std::cout << err.what() << std::endl; 118 std::cout << "Standard value NPIX=1440 assumed." << std::endl; 119 calib_npix = 1440; 120 } 121 105 122 data_nroi = datafile.GetUInt("NROI"); 106 123 data_npix = datafile.GetUInt("NPIX");
Note:
See TracChangeset
for help on using the changeset viewer.