- Timestamp:
- Jan 6, 2012 11:37:33 AM (11 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_FlipperPanel.ipf
r829 r832 386 386 cr3 = TotalCR_FromRun(w[selRow][%DD_Trans],err_cr3,0) 387 387 cr4 = TotalCR_FromRun(w[selRow][%UD_Trans],err_cr4,0) 388 cr5 = TotalCR_FromRun(w[selRow][%Blocked],err_cr5,1) //blocked beam is NOT normalized to zero attenuators 388 // cr5 = TotalCR_FromRun(w[selRow][%Blocked],err_cr5,1) //blocked beam is NOT normalized to zero attenuators 389 cr5 = TotalCR_FromRun(w[selRow][%Blocked],err_cr5,0) //blocked beam is NOT normalized to zero attenuators 389 390 390 391 calc[selRow][%cr_UU] = cr1 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationPanels.ipf
r829 r832 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 3 4 // TODO: 5 // - on the decay panel. need to be able to manually enter a date that is to or an offset 6 // number of hours. currently it takes the first file as t=0, which is often not correct 7 // 2 8 3 9 … … 683 689 // 1 for each file, return the count rate and err_CR (normalize to atten or not) 684 690 685 Print " The Blocked CR is not rescaled to zero attenuators"691 Print "************The Blocked CR *is* rescaled to zero attenuators -- " 686 692 cr1 = TotalCR_FromRun(w[selRow][%Trans_He_In],err_cr1,0) 687 693 cr2 = TotalCR_FromRun(w[selRow][%Trans_He_Out],err_cr2,0) 688 cr3 = TotalCR_FromRun(w[selRow][%Blocked],err_cr3,1) //blocked beam is NOT normalized to zero attenuators 694 // cr3 = TotalCR_FromRun(w[selRow][%Blocked],err_cr3,1) //blocked beam is NOT normalized to zero attenuators 695 cr3 = TotalCR_FromRun(w[selRow][%Blocked],err_cr3,0) //blocked beam is NOT normalized to zero attenuators 689 696 690 697 calc[selRow][%CR_Trans_He_In] = cr1 … … 1281 1288 // - files are all at same SDD 1282 1289 // - files are all with same attenuation (just print a warning to cmd) 1290 // - due to ICE FP values, I need to do a fuzzy comparison 1291 // 1283 1292 // 1284 1293 Function ParseDecayRow(w,selRow) … … 1286 1295 Variable selRow 1287 1296 1288 Variable err=0, atten1,atten2,atten3,sdd1,sdd2,sdd3 1297 Variable err=0, atten1,atten2,atten3,sdd1,sdd2,sdd3,tol 1289 1298 String fname="" 1299 tol = 0.01 //SDDs within 1% 1300 1290 1301 // are all file numbers valid? 1291 1302 fname = FindFileFromRunNumber(w[selRow][%Trans_He_In]) … … 1316 1327 endif 1317 1328 1318 if( (sdd1 != sdd2) || (sdd2 != sdd3) || (sdd1 != sdd3) ) 1329 1330 if( (abs(sdd1 - sdd2) > tol) || (abs(sdd2 - sdd3) > tol) || (abs(sdd1 - sdd3) > tol) ) 1319 1331 DoAlert 0,"Files in row "+num2str(selRow)+" are not all at the same detector distance" 1320 1332 err = 1
Note: See TracChangeset
for help on using the changeset viewer.