The following instructions require a computer account on the Jlab CUE system and a working analyzer setup on one of the Jlab farm Linux computers: ifarml1, ifarml2 (more?) Briefly, instructions for setting up a Gen01 offline replay on the work disk at Jlab:
|
The input consists of the raw data file, which is either on tape, on a cache disk, or still on the buffer disk in the counting house (ONLINE replay). The output is written to the screen (mostly status and error messages) and to file, as ASCII report files, PAW histogram file, and one or more Ntuple files.
Additionally, numerous setup files define various system parameters and processing options. Many of these quantities specify the environment under which the data were taken and change over the course of the experiment, even from run to run. A database system automatically selects individual parameter values, or sets of values, based on the sequential ID number of the run being analyzed. Even entire files of parameter values can be selected based on the run number. The main database definition is contained in the file DBASE/gen01.database.
The histograms created in the output are defined in the files contained in the HIST/ directory, the main file is HIST/gen.hist. Similarly, the reports generated are based upon the definitions in the Templates/ directory. The PARAM/ and DAT/ directories contain the bulk of parameter specifications, often with multiple versions that are selected by the database rules. The MAP/ directory contains the electronis maps, which define which detector element the individual electronic signals belong to. The files in Tests/ define various cuts which are applied in the filling of the histograms and also in the report creation. The source code which makes up the replay engine (together with the Csoft libraries) is in the SRC/ directory.
The resulting output files are placed in the directories output/, paw/, ntup/, hv/ and cosmics/. The resulting Ntuples and histograms can be further analyzed using the PAW KUMAC scripts in the kumac/ directory.
The file REPLAY.PARM and the shell scripts replayup_ define these locations and other fundamental runtime variables.
Since the location of all these files is easily changed, the actual assignments may differ from what is discussed here! |
In the following, it will be assumed that the convenience links mentioned above have been established, via the command exec dosetupreplay. This will create the links for the analyzer engine executable replay.exe, the filter syncfilter and the graphical progress monitor runstats to the platform-specific version. In any case, the platform-specific versions of the commands can always be used -- with the correct of platform identifier! |
source replayup |
Now we still need to get the raw data to analyze. These are stored on tape in the computing center's
tape silo. To be able to access them, we need to stage the data file in. Using the command jcache
we request the data file be made available to us. This requires us to supply the stub file in
identify the file to retrieve. The stub files are located in /mss/hallc/e93026/raw and the staged
data file will be available (via a link) in /cache/mss/hallc/e93026/raw
Both files follow the naming convention (for Gen01) e93026_
The replay can then be started using the command
to, for example, analyze run 45678.
Unless an error occurs, the replay will continue until the end of the run.
Two optional switches can be used to specify the first event in the run which
is to be actually analyzed or to end the replay after a certain count of events has
been analyzed (NOT event number): gstart=
and gstop= , respectively.
In general, any parameter that can be defined in a setup file can also be defined on the
command line, thereby overriding any file definition.
engine.exe grun=45678