This quick start guide is meant as a guide for the very first steps to get going with DELPHI software and data access.
The DELPHI stack consists of the following modules:
dstana
. Please take a look at the Skelana framework for detailed information.Please read and accept the DELPHI data access rules. They can as well be viewd at the the DELPHI web pages.
There are two possible ways to access the software stack.
A container image is available which ships with all the modules installed. Please take a look at the DELPHI docker guide.
Binaries are also available from CVMFS, for a variety of different Linux flavors. Instructions can be found in our dedicated CVMFS guide.
DELPHI manuals and notes are available from https://cds.cern.ch/
Here is a selection for getting started:
The sources are available from https://gitlab.cern.ch/delphi. Some modules still requires CERN authentication. The plan is to release the software in the near future.
The DELPHI stack is mostly written in Fortran
, with some bits written in C
. Only gfortran
and GNU gcc
are supported. We use the gfortran
version which comes with the
supported operating system. Recommended compiler and linker flags are set by the environment and should be used when building software linking with the DELPHI libraries.
The collaboration main contact for data preservation is the mailing list DELPHI-data-preservation-board@cern.ch. Support can only be given on a best effort basis. Suggestions and feedback is of course welcome!
Some basic examples of how to run the software stack and perform various tasks can be found in the /cvmfs/delphi.cern.ch/examples
tree.
In the following, we will
Simulation is reconstruction code is supported for all the years 1992 and later. The code differs a bit for each of the years.
There is a dedicated guide available with more details about how to run DELPHI simulations.
For creating a few events with a build-in generator run
$ runsim -VERSION v94c -LABO CERN -NRUN 1000 -EBEAM 45.625 -igen qqps -NEVMAX 10
It will as well pass the events through the detector simulation, and create a short DST file named simana.sdst
which can be used for analysis, scanning etc.
In this case the generator is run externally and the output is written to a file in a specific format. This can then be passed through the detector simulation with
$ runsim -VERSION 94c -LABO CERN -NRUN 1000 -EBEAM 45.625 -gext generated.lund -NEVMAX 10
Again, this will create a short DST file name simana.sdst. Note that for the LEP 2 phase, a sol called extended short DST file will be created, which is typically called simana.xsdst instead.
A dedicated guide is availabe with more details about how to run an analysis job for DELPHI.
The DELPHI analysis framework is called skelana
. The way to write analysis code is by overriding one or more of the following Fortran functions:
USER00
for the initialisation at the start of the runUSER01
for the event selection. It should return 0 to skip the current event and 1 to read it.USER02
is called for each selected event.USER99
is called at the end of the runAn example can be found in the examples folder on the DELPHI container or on CERN gitlab. Take a look e.g. at the dump
folder there.
DELPHI data is organised in data sets which are identified via a nickname. When using opendata, each nickname comes with a corresponding DOI which you can quote.
To analyse data, use the nicknames which you can find at http://delphiwww.cern.ch/offline/data/castor/html. In this case, the PDLINPUT file created by the script above should contain the keyword PDL, followed by the nickname, e.g.
FAT = short94_c2
to read 94 C2 data. It will automatically resolve the data files and loop over all of them.
The DELPHI event server can be used to pick and reprocss individual events from raw data. A dedicated guide is available on the DELPHI event server.
Example:
$ des -m dstana -e 84078:10815
After setting up the DELPHI environment you can start the DELPHI event display with
$ cd
$ rungra
For convenience, copy the files you want to scan to ~/graexe/data
.
Please take a look at the DELGRA guide on how to proceed.
More examples can be found at https://gitlab.cern.ch/delphi/examples.