MTsort Language - EDOC033

John Cresswell

Janet Sampson

University of Liverpool
Nuclear Physics Department

Note

Command enhancements with this version ...
New Print command
Added spectrum and group data access to left and right hand sides of expressions.

07 Aug 2015

Abstract

This manual describes the sort language. It can currently be used to sort a wide selection of event formats, including Eurogam, Euroball, GammaSphere, IN2P3, Goosy, Oak Ridge, Exogam and GREAT format data. More features and data formats are being added according to users' requirements.


Table of Contents

Introduction
Feedback
Data File Format
General Structure
Notation
File Inclusion
*FORMATS
Single Parameter Format
Group Parameter Format
*TRIGGERS
*DATA
Sortwords
Pre-defined Sortwords
Gates
Bitmask gates
1D gates
2D gates
Elliptical gates
Data arrays
Value arrays
Gate arrays
Gain arrays
Arrays of arrays
*SPECTRA
*AUTOGAIN
Declarations
Commands
*COMMANDS
List of Commands
Parameter Lists
Simple Spectrum update commands
Indexed Spectrum update commands
Incbits command
Createlist command
Copylist command
Extract command
Loopextract command
If...else... command (single sortword environment)}
Validation test operator (VALID)
Comparison operators (EQ,NE,GE,LE,GT,LT)
Filtering operators (PASSES,FAILS)
Masking operator (MASKEDBY)
Gate-testing operator (GATEDBY)
Loopif...loopfail... command (parameter-list environment)}
Validation test operator (VALID)
Comparison operators (EQ,NE,GE,LE,GT,LT)
Filtering operators (PASSES,FAILS)
Masking operator (MASKEDBY)
Gate-testing operator (GATEDBY)
Select command
Goto command
Arithmetic operations
Arithmetic Operators
Maths functions
Command Functions
Gain command
Invalidate command
Groupfilter command
Order command
Print command
Routines
Exec Command
Synchronization
Doloop command
Output command
Endevent command
End command
Pause command
*RUNFILES (offline analysis only)
Appendix A. Constraints
Reserved words
Predefined sortwords
Maximum values
Appendix B. Data file examples
Eurogam phase 2 autogain sort
Auto-gained correlation sort
Quadsort
Quinsort
Pulse Processing