The command causes the program to begin reading events using the currently active input module. If input is coming from the standard READ_FILE module, this means that the currently defined input file will be opened and read. If no qualifiers have been been specified and the SET RUN command has not been issued, all events on the file will be processed.
Note that /CLEAR is the default so the /NOCLEAR option must be used every time a BEGIN or CONTINUE command is entered even within the same JOB.
BEGIN_ANALYSIS/NEVENT=<number of events>
BEGIN_ANALYSIS/GOOD_EVENTS=<number of events>
BEGIN_ANALYSIS/FIRST_EVENT=<event number>
BEGIN_ANALYSIS/SKIP_EVENTS=<number of events to skip>
CALL <Module Name> <Entry_point>
CALIBRATE[/qualifiers] <Range of run numbers>
CALIBRATE 10
CALIBRATE 1:10
Note: all qualifiers must be attached to the CALIBRATE verb. I.e.,the expression CALIBRATE 1:10/nev=2 is NOT legal!
CLEAR <item to be cleared>
Note: that /CLEAR is the default so the /NOCLEAR option must be used every time a BEGIN or CONTINUE command is entered even within the same JOB.
CONTINUE_ANALYSIS/NEVENT=<number of events>
CONTINUE_ANALYSIS/GOOD_EVENTS=<number of events>
CONTINUE_ANALYSIS/FIRST_EVENT=<event number>
CONTINUE_ANALYSIS/SKIP_EVENTS=<number of events to skip>
COMMENT "Comment Text"
DELETE <Item>
FILTER[/Qualifiers] <Module name> <Action>
FILTER/PATH=2 FRED ON
FILTER FRED/PARAMETER_SET=2 ON
FILTER/SPECIFY FRED VETO -or-
FILTER/SPECIFY FRED SELECT
For HBOOK4 users that wish to limit the number of entries that go into any one file the following sequence of commands is recommended:
ANA>> HISTOGRAM OPEN/FILE=file1.hbook ! open file one ANA>> HISTOGRAM ON ! make directories & book histograms ANA>> BEGIN/N=100 ! fill 100 events worth ANA>> HISTOGRAM WRITE ! write memory to file ANA>> HISTOGRAM CLOSE ! close file1 ANA>> HISTOGRAM DELETE ! delete histograms in memory ANA>> HISTOGRAM OPEN/FILE=file2.hbook ! open file two ANA>> HISTOGRAM ON ! make directories & book histograms ANA>> CONTINUE/N=100 ! fill 100 events worth ANA>> HISTOGRAM WRITE ! write memory to file ANA>> HISTOGRAM CLOSE ! close file2 ANA>> HISTOGRAM DELETE ! delete histograms in memory ...
HISTOGRAM/MODULE=<Module Name> ON
This feature allows the association of histograms and modules to be maintained in written volumes, utilizing the YHIST directory (n-ary tree) structure. Default: If the qualifier is not specified as ON, no assignment of histograms to chapters is performed.
HISTOGRAM[/MODULE=<Module Name>] DELETE[/ID=<hbook ID range>] - [/MODULE=<Module Name>]
HISTOGRAM[/MODULE=<Module Name>] DIRECTORY[/MEMORY] - [/Stream=<stream id>][/MODULE=<Module Name>]
HISTOGRAM[/MODULE=<Module Name>] OFF
HISTOGRAM[/MODULE=<Module Name>] ON[/STREAM=<stream #>]
HISTOGRAM OPEN_PARAMETERS[/STREAM=<stream #>] [/READ_ONLY][/UPDATE] [/TOP_DIRECTORY=<name>] [/FILE_NAME=<file_name>] [/MAX_NREC=<max#>] [/RECLENGTH=<reclen>]
Note: in order to allow user modules access to this information (needed for calls to HBOOKN for example) a routine called ANGTH4 has been written to retrieve this information. The calling sequence is:
STATUS = ANGTH4(STREAM,TOPDIR,FILNAM,OPNOPT)
HISTOGRAM READ[/ID=<hbook ID range>] - [/OFFET=<offset#>][/CYCLE=<cycle#>] - /MODULE=<Module Name> <Filename>
HISTOGRAM PRINT[/ID=<hbook ID range>][/MODULE=<Module Name>]
HISTOGRAM WRITE <Filename>
HISTOGRAM WRITE[/ID=<hbook ID range>][/STREAM=<stream #>] [/MODULE=<Module Name>]
HISTOGRAM/MODULE=<Module Name> ZERO[/ID=<hbook ID range>] - [/MODULE=<Module Name>]
HELP <Command>
HELP/MODULE <Module name>
INPUT <item to be modified>
INPUT MODULE READ_FILE
INPUT YBOS_MODE FAST -or-
INPUT YBOS_MODE NORMAL
Note: The SHOW INPUT command has been modified to show the input mode selected.
INPUT FILE[/Qualifiers] MYFILE.DAT
INPUT FILE[/Qualifiers] "<file1>, <file2>, <file3>..."
Wildcards may be used in specifying input files for either the queue or a single file specification. A "*" or a "%" can be used anywhere where it is also valid in DCL, including tape drives. So if you don't know the names of files on a certain tape you can specify the file using:
INPUT FILE DRIVEn:*
UNIX uses ANSI standard labeled tapes. Therefor there is a maximum of 17 characters allowed for tape file names on UNIX. The VAX uses an extension to the standard so that there is no limit on the length of the tape file name. Another UNIX restriction is that UNIX file names including explicit path names MUST be in lower case. If you have a file named in upper or mixed case UIPACK will not recognise it, so you must rename it.
INPUT FILE "<file1>, <file2>, <file3>"
INPUT FILE/ADD "<file4>, <file5>, <file6>"
INPUT DROP XXXX
INPUT/CANCEL DROP
INPUT RENAME XXXX YYYY
INPUT/CANCEL RENAME
INPUT COPY XXXX YYYY
INPUT/CANCEL COPY
INPUT SELECT[/Qualifiers] EVENTS[/Qualifiers]/FILTER=- (<filter_name>[/Qualifiers],<filter_name2>...)
Care must be taken in specifying the filter names and parameter sets since there is no way for A_C to check that the name you typed in was a valid filter used in making the input file. This means that the person using this feature must know how the input file was produced. One way is to know the standard production filter names and parameter sets, another is to dump the TAGB banks from an event on the file since the names and parameter sets are invariant within a file (the parameter set number is the first integer after the filter name). Once input filtering has been enabled by specifying one or more requirements the presence of a nonexistent filter will cause that requirement to fail for every event. If this is the only requirement specified, none of the input file events will be processed.
Below is an example of some input select commands and what the show display for it looks like:
ANA>> INPUT SELECT EVENTS/FILTER=(GWC_FILT,- TOP_EXPRESS,- CALORIMETRY) ANA>> INPUT SELECT/ADD EVENTS/FILTER=- (METFLT/PARAMETER_SET=4) ANA>> INPUT SELECT/REQUIREMENT=2 EVENTS/FILTER=(ZENFLT,- TRGSEL/PARAMETER_SET=3/BITS="6 95 107:109 118:132") ANA>> INPUT SELECT/REQUIREMENT=4 EVENTS/FILTER=(HATFLT) ANA>> SHOW INPUT Possible Input Modules are: Module Name: Description: READ_FILE Read events from a tape or disk file Currently Active Input Module is: READ_FILE List of files queued for input are: ==> 1. CE1954.ZEN00 Current input file is CE1954.ZEN00 Input is being filtered by: Requirement 1 GWC_FILT Parameter Set: 1 .AND. TOP_EXPRESS Parameter Set: 1 .AND. CALORIMETRY Parameter Set: 1 .AND. METFLT Parameter Set: 4 Requirement 2 ZENFLT Parameter Set: 1 .AND. TRGSEL Parameter Set: 3 with a Non-exclusive check of the following mask: WORD NUMBER MASK (HEX) MASK (DECIMAL) 1 40 64 2 0 0 3 80000000 -2147483648 4 FFC03800 -4179968 5 1F 31 Requirement 4 HATFLT Parameter Set: 1 Out of 0 events read in 0 have satisfied the logical .OR. of the above Input Requirements.Note that the decimal mask is easier to check against ACDUMP output whereas the hex mask makes it easier to check set bits. Legal qualifiers for this command are:
INPUT RESET <Option>
INPUT RESET[/Qualifier] EVENTS[/Qualifier]
OUTPUT[/Qualifier] <Action>
OUTPUT FILE DATA_OUT.YBS
Normally the Output File should be specified directly using the normal File syntax. However, it is possible to specify a file where several fields may exist within the filename. ANALYSIS_CONTROL will automatically replace these Template Fields by their actual values when the File is opened. Examples of these Template Fields are <RUN_NUMBER>, which will be replaced by the actual Run Number, <DEVICE>, which will be replaced by a real Device etc. This is usefull when the output stream needs to be split into different files either based on a size limit or an input_EOF. Syntax:
Many of the qualifiers for the OUTPUT FILE command are used to specify field values. For example the following commands will setup automatic file generation:
OUTPUT FILE/Template=RAW_Data
OUTPUT FILE/Device=Data_Disk/Directory=Online_Data
<Device><Directory>R<Run_Number><Sequence>.RAW
DATA_DISK:[ONLINE_DATA]R12345AA.RAW
Raw_Data, Unix_Raw, Unix_Clg, Unix_Exp, SCC1_Dat, SCC2_Dat SCC3_Dat, SCC_Cons, Stream2, KLum_Dat, LLum_Dat, MLum_Dat NLum_Dat, DST, One_pass, STK_splt, Concat1B, CopyMost are used in the CDF online system however the last 5 are offline templates. The following details some of the still usefull ones:
OUTPUT FILE DATA_OUT.YBS
OUTPUT FORMAT UNIX
OUTPUT MODULE <Module Name>
OUTPUT MV_AT_CLOSE "xyz" "abc"
OUTPUT MV_AT_CLOSE/Concat1B
OUTPUT YBOS_MODE FAST -or-
OUTPUT YBOS_MODE NORMAL
Note: The SHOW OUTPUT command has been modified to show the output mode selected for each output stream.
OUTPUT SELECT <option>
/FILTER=<Filter name>
The command:
OUTPUT SELECT EVENTS/FILTER=<Filter name>
OUTPUT/STREAM=2 SELECT EVENTS/FILTER=ELECTRON/PAR=TIGHT_CUTS
OUTPUT/STREAM=<n> SELECT EVENTS/FILTER=(- <modname1>/PARameter_set=<parset>,- <modname2>/PARameter_set=<parset>,- <modname3>/PARameter_set=<parset>...)
/PATH=<pathid>
OUTPUT/STREAM=<n> SELECT EVENTS/PATH=(1,2,3...)
/OLDPATH=<pathid>
If a PTHB bank exists for <pathid> on input from a previous analysis then it can be used to direct events to a particular output stream with the following command:
OUTPUT/STREAM=<n> SELECT EVENTS/OLDPATH=(1,2...)
See "SET PTHB" for more information on the PTHB bank and how to generate it.
OUTPUT SELECT KEPT_BANKS=<bank_names>
OUTPUT SELECT KEPT_BANKS - CEME- CHAE- WHAE
OUTPUT SELECT KEPT_BANKS ***D
OUTPUT SELECT KEPT_BANKS ****
OUTPUT SELECT DROPPED_BANKS=<bank_names>
OUTPUT SELECT DROPPED_BANKS - CEME- CHAE- WHAE
OUTPUT SELECT DROPPED_BANKS ***D
Note: The user is not permitted to remove the LRID and EVCL banks from the output stream. Requests to drop these banks will be ignored.
OUTPUT SELECT A_BANKSET OFF
OUTPUT SELECT A_BANKSET ON
OUTPUT SELECT INPUT_BANKSET OFF
OUTPUT SELECT INPUT_BANKSET ON
OUTPUT/STREAM=<n> SELECT REC_DROP
OUTPUT/STREAM=<n> SELECT REC_KEPT
OUTPUT RESET <Option>
OUTPUT/STREAM=<n> RESET EVENTS/FILTER
OUTPUT/STREAM=<n> RESET EVENTS/PATH
OUTPUT/STREAM=<n> RESET A_BANKSET (ON or OFF)
OUTPUT/STREAM=<n> RESET INPUT_BANKSET (ON or OFF)
OUTPUT/STREAM=<n> RESET REC_DROP
SET <analysis parameter>[/Qualifier]
SET DEBUG_LEVEL/MODULE=<Module name> <Debug level>
SET LOGICAL <logical_name> <value>
SET MODE [A]SYNCHRONOUS
In synchronous mode, all commands typed at the terminal will be stored until event processing is completed.
SET MODE PROCESSING
STOP
SET MODE VALIDATION[/Qualifier]
SET MODE NOVALIDATION
SET PRINT_LEVEL/MODULE=<Module name> <Print level>
SET RUN_LIST = 10
SET RUN_LIST = -10
SET RUN_LIST = (10:20,30:35)
SET RUN_LIST = (-10:-20)
WARNING: Run_lists are not automatically deleted once a set of events have been processed. If you wish to analyze another file that contains different runs, or if you wish to reanalyze the same file but specify a different set of required runs, you must execute a DELETE RUN_LIST command.
SET RUN=1/EVENT=1:100
SET RUN=2/EVENT=(100,105,110:120)
SET RUN=2/EVENT=(-100,-105,-110:-120)
SET TAGC_UPDATING ON/OFF
SET TPID_UPDATING ON/OFF
SET PTHB_UPDATING ON/OFF
OUTPUT SELECT EVENTS/OLDPATH
On UNIX the @ is not needed so the string is executed as is. The user is then returned to the ANA prompt after it is completed. Also note that since UNIX commands are case sensitive the user MUST inclose the command text in double quotes. SPAWN/COMMAND "ls" will work, however SPAWN/COMMAND ls, will not.
Note on UNIX this is equivalent to SPAWN/COMMAND.
TALK_TO[/Qualifier] <Module Name>[/Qualifier]
TALK_TO/PARAMETER_SET=<n> ALLthen the parameter set for all modules (that can be run with multiple parameter sets) is set to n, and the talk_to entrypoint for every module is called in the default sequence.
TALK_TO <Module>/PARAMETER_SET=<n>Invokes the talk to with parameter set n and is usefull for defining new parameter sets for a module or redefining and old one. Note that by convention you should not modify the default parameter set wich is 1.
TALK_TO/NAME=<New_Name>/PARAMETER_SET=<Parset #> <Module>If the name is specified it will be associated with that parameter set number so that either may be specified for future A_C commands (eg. USE and FILTER).
TAPE ALLOCATE[/Qualif.] <Tape Drive> [<Logical Name>]
TAPE DEALLOCATE <Tape Drive>
TAPE DIRECTORY <Tape Drive>
NOTE: On UNIX, the drive must first be allocated but can not yet be mounted by RBIO. Therefore you first allocate the drive and either:
TAPE DISMOUNT[/Qualifier] <Tape Drive>
TAPE DISMOUNT/NOUNLOAD <Tape Drive>
TAPE MOUNT[/Qualifier] <Tape Drive> <Tape Label>
TAPE MOUNT DRIVE0 *
On UNIX systems, this Qualifier causes a tape label mismatch to be ignored. If the tape is opened for OUTPUT, the tape label specified by the user will be used to overwrite the existing tape label and subsequent files will be written at the beginning of the tape. If the tape is opened for INPUT, the label found on the tape will be subsequently used instead of the one specified on the mount command.
TAPE SETUP[/Qualifiers] <Tape Drive>
TAPE SETUP/CAPACITY=150000.0
TAPE SETUP/FREQUENCY=10.0
TAPE SETUP/LENGTH=108
TAPE SETUP/MAX_SIZE=150000.0
TAPE SETUP/NODE_NAME=B0SCCF::
TAPE SETUP/REPORT_FREQ=10.0
TAPE SETUP/SAFETY_FACTOR=10.0
TAPE SETUP/THRESHOLD=80.0
TAPE SETUP/WARN_FREQ=10.0
TAPE SETUP/WARN_THRESHOLD=80.0
TAPE STATUS[/Qualifiers]
USE_MODULES[/Qualifier] <Module 1> <Module 2>
Note: This command assumes that you are redefining a path (even if path = 1) so any previous FILTER commands for the new path will be ignored.
USE/PATH=1 MYANA1 MYANA2
USE/PATH=2 MYANA3 MYANA2
Note: If a filtering routine had caused the analysis for path 1 to stop before MYANA2 has been called, or if the user had specified that MYANA2 should be run with a different parameter set in the second path, then MYANA2 would be called in path 2.
If the user types:
USE_MODULES/PARAMETER_SET=<n> <Module 1> <Module 2>
USE_MODULES <Module 1>/PARAMETER_SET=<n> <Module 2>