YBDIFF UTILITY User's guide Author: F. Donno 29 May 1996 Introduction ------------ This is a short write-up reporting an example about the usage of the ybdiff utility, part of the p_u (Physics_Utilities) package, to compare YBOS files created on different platforms and in different formats (native big-endian UNIX format, native little-endian DEC-UNIX format). Note: This utility does not work for data files coming from the 10**6 production. It is also possible to compare the results of different physics algorithm. The version of ybdiff that is now available in the production version of the p_u package can only be used with files produced with the test version of the offline (UNIX data format). In the modules linked in the ybdiff program, there is also one (KBDUMP) that allows users to dump a specific event. Help is available online at the prompt. % setup offline test % setup p_u % ybdiff ... ANA>> talk both ------------------------------------------------------------------------------- Read Two Files at Once 1 [MAIN_FILE] Change filename for Input file in /BCS/ 2 [SECONDARY_FILE] Change filename for Input file in /ANINPU/ 3 [SHOW_STATUS] Show Current Input Status 4 [HELP] Get Information about the this menu 5 [QUIT] Return to the Ana>> Prompt BOTH>> 1 Filename: []: "/nfs/axpals/kloe03/prod/r00010bb.sh1" ------------------------------------------------------------------------------- Read Two Files at Once 1 [MAIN_FILE] Change filename for Input file in /BCS/ 2 [SECONDARY_FILE] Change filename for Input file in /ANINPU/ 3 [SHOW_STATUS] Show Current Input Status 4 [HELP] Get Information about the this menu 5 [QUIT] Return to the Ana>> Prompt BOTH>> 2 Filename: [/nfs/axpals/kloe03/prod/r00010bb.sh1]: "/nfs/axpals/kloe03/prod/unix/r00010bb.sh1" ------------------------------------------------------------------------------- Read Two Files at Once 1 [MAIN_FILE] Change filename for Input file in /BCS/ 2 [SECONDARY_FILE] Change filename for Input file in /ANINPU/ 3 [SHOW_STATUS] Show Current Input Status 4 [HELP] Get Information about the this menu 5 [QUIT] Return to the Ana>> Prompt BOTH>> 5 ANA>> talk compare ------------------------------------------------------------------------------- COMPARE_EVENTS Main Menu 1 [SELECT_BANKS] Select Banks for Comparison (and Dumps) 2 [PRECISION] Specify Precision for Comparisons 3 [OUTPUT] Specify File for Output 4 [RETURN] Return to Analysis_Control prompt 5 [HELP] Help COMPARE_EVENTS> 3 Would you like histograms ? [No]: Yes Do you want histograms per bank type? (default is per bank) [No]: How many words per bank would you like to see? (0 = all) [0]: 10 ------------------------------------------------------------------------------- COMPARE_EVENTS Main Menu 1 [SELECT_BANKS] Select Banks for Comparison (and Dumps) 2 [PRECISION] Specify Precision for Comparisons 3 [OUTPUT] Specify File for Output 4 [RETURN] Return to Analysis_Control prompt 5 [HELP] Help COMPARE_EVENTS> 1 ------------------------------------------------------------------------------- COMPARE_EVENTS BankSelect Menu 1 [ALL] Select ALL meaningful banks 2 [EXCEPT] Select ALL meaningful banks except... 3 [SET] Select SET of banks for comparison 4 [ADD] ADD banks to comparison SET 5 [DEL] DELete banks from comparison SET 6 [RETURN] RETURN to main menu BankSelect> 3 Bank Names: [ ]: KINE ------------------------------------------------------------------------------- COMPARE_EVENTS Main Menu 1 [SELECT_BANKS] Select Banks for Comparison (and Dumps) 2 [PRECISION] Specify Precision for Comparisons 3 [OUTPUT] Specify File for Output 4 [RETURN] Return to Analysis_Control prompt 5 [HELP] Help COMPARE_EVENTS> 4 ANA>> show module Analysis Modules Are: Mod ID: Module Name: Description: 2 COMPARE_EVENTS Compare event output banks 3 KBDUMP Dump events banks 6 ERROR Display/Change E_L parameters ANA>> use compare_events ANA>> hist open/file=2_files.dat/recl=4095/max=65000 ANA>> hist on ANA>> begin/proc/rep=1/n=30 ..... Event 113 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 116, Events processed: 24 Event 116 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 117, Events processed: 25 Event 117 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 128, Events processed: 26 Event 128 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 129, Events processed: 27 Event 129 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 144, Events processed: 28 Event 144 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 146, Events processed: 29 Event 146 *** Start bank comparisons *** Run 1 Run No. 1, Trigger No. 149, Events processed: 30 Event 149 *** Start bank comparisons *** Run 1 ANA>> hist write ANA>> exit 1 (1) KINE#002#001 2 (1) KINE#002#002 3 (1) KINE#002#003 4 (1) KINE#002#004 5 (1) KINE#003#005 6 (1) KINE#003#006 7 (1) KINE#003#007 8 (1) KINE#003#008 9 (1) KINE#003#009 10 (1) KINE#003#010 ============================================================================ %CDFEL SUMMARY: ============================================================================ No Errors Logged. ============================================================================ %CDFEL RUN SUMMARY ( 1): ============================================================================ No Errors Logged. Error report threshold = WARNING Error abort threshold = SEVERE When using paw, remember to always change directory to the module histograms directory, in this case COMPARE_EVENTS. To see the histograms produced with paw: % paw PAW > hist/file 1 2_files.dat 4095 PAW > cd compare_events PAW > hist/list ...