- Timestamp:
- Nov 2, 2009 10:55:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/WorkFileUtils.ipf
r576 r588 141 141 dscale = 1/(1-deadTime*cntrate) 142 142 143 #if def ILL_D22143 #if (exists("ILL_D22")==6) 144 144 Variable tubeSum 145 145 // for D22 detector might need to use cntrate/128 as it is the tube response … … 161 161 //update totals by adding RAW values to the local ones (write to work header at end of function) 162 162 total_mon += raw_reals[0] 163 #if def ILL_D22163 #if (exists("ILL_D22")==6) 164 164 total_det += sum(data,-inf,inf) //add the newly scaled detector array 165 165 #else … … 311 311 dscale = 1/(1-deadTime*cntrate) 312 312 313 #if def ILL_D22313 #if (exists("ILL_D22")==6) 314 314 Variable tubeSum 315 315 // for D22 detector might need to use cntrate/128 as it is the tube response … … 332 332 //update totals to put in the work header (at the end of the function) 333 333 total_mon += realsread[0] 334 #if def ILL_D22334 #if (exists("ILL_D22")==6) 335 335 total_det += sum(data,-inf,inf) //add the newly scaled detector array 336 336 #else … … 496 496 // so divide here to get the correct answer (5/22/08 SRK) 497 497 if(doEfficiency) 498 #if def ILL_D22498 #if (exists("ILL_D22")==6) 499 499 data[ii][jj] /= DetEffCorrILL(lambda,dtdist,xd) //tube-by-tube corrections 500 500 solidAngle[ii][jj] = DetEffCorrILL(lambda,dtdist,xd)
Note: See TracChangeset
for help on using the changeset viewer.