Changeset 16991 for fact/tools
- Timestamp:
- 07/30/13 20:13:30 (11 years ago)
- Location:
- fact/tools/pyscripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/examples/CalFactFitsTest.py
r13515 r16991 14 14 15 15 from ROOT import gSystem 16 gSystem.Load("izstream_h.so") #Not always necessary 17 gSystem.Load("factfits_h.so") #Not always necessary 16 18 gSystem.Load("calfactfits_h.so") 17 19 from ROOT import * -
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.