MIDAS environment variables: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "The MIDAS DAQ system uses a several environment variables to facilitate the startup of the different applications. These are also discussed in the QuickStart section. ===...")
 
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The MIDAS DAQ system uses a several environment variables to facilitate the startup of the different applications. These are also discussed in the [[QuickStart]] section.
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/environment_variables/ Environment variables] for the new documentation about the midas environment variables.
 
=== MIDASSYS ===
 
This environmental variable '''is required.''' It should point to the main path of the installed MIDAS package.
For example
 
  setenv MIDASSYS $HOME/packages/midas
 
The application [[odbedit]] will generate a warning message if <span style="color:steelblue;">MIDASSYS</span> is not defined.
 
---------------
 
=== MIDAS_EXPTAB ===
 
This variable specifies the location of the [[exptab file]] containing the predefined MIDAS experiment.  
 
If <span style="color:steelblue;">MIDAS_EXPTAB</span> is not defined, the default location will be used (i.e. for OS_UNIX: /etc, / and for OS_WINNT: \system32, \system ).
For example
 
  setenv MIDAS_EXPTAB $HOME/online/exptab
 
 
-----------
 
 
=== MIDAS_SERVER_HOST ===
 
This variable predefines the name of the host on which the MIDAS experiment shared memories are residing. It is needed when a connection to a remote experiment is requested. It obviates the need to add the "''-h <hostname>''" argument to the utilities command line (see [[Common Parameters to MIDAS Utilities]]).  This variable is valid for Unix as well as Windows OS. Superceded if [[#MIDAS_DIR]] is defined.
 
------
 
 
 
=== MIDAS_EXPT_NAME ===
 
This variable predefines the default name of the experiment to connect to. It prevents the requested application from asking for the experiment name when multiple experiments are available on the host. Defining <span style="color:steelblue;">MIDAS_EXPT_NAME</span> makes adding the "''-e <exptname>''" argument to the application command unnecessary (see [[Common Parameters to MIDAS Utilities]]). This variable is valid for Unix as well as Windows OS.  Superceded if [[#MIDAS_DIR |MIDAS_DIR]] is defined.
 
-----
 
 
=== MIDAS_DIR ===
 
This variable predefines the LOCAL directory path where the shared memories for the experiment are located. Defining this variable results in a single experiment called "Default". Since a given directory path can only refer to a single experiment, <span style="color:steelblue;">MIDAS_DIR</span>  supersedes the hostname and exptname parameters (see [[Common Parameters to MIDAS Utilities]]) as well as the
[[#MIDAS_SERVER_HOST|MIDAS_SERVER_HOST]] and [[#MIDAS_EXPT_NAME|MIDAS_EXPT_NAME]] environment variables.
 
Note:
If you wish to use the "exptab" file (see [[#MIDAS_EXPTAB|MIDAS_EXPTAB]]) to define multiple experiments on a single host, do ''not'' define
<span style="color:steelblue;">MIDAS_DIR</span>
 
 
 
 
------
 
 
=== ROOTSYS ===
 
This variable must point to the '''ROOT''' package if generating a complete MIDAS/ROOT analyzer application (see [[Build Options]] ). If not using '''ROOT''',
<span style="color:steelblue;">ROOTSYS</span> should be undefined.
 
 
---------
 
 
=== CERNLIB_PACK ===
 
In case of HBOOK/PAW analyzer application, this variable should be pointing to a valid cernpacklib.a library. See HAVE_HBOOK .
 
 
 
--------
 
 
 
 
=== MIDAS_FRONTEND_INDEX ===
 
This variable predefines the index assigned to the equipment using the event builder option. Useful if the frontend applications are started from different hosts. Refer to Principle of the Event Builder and related frontend fragment for more information.
 
 
 
-----------
 
 
 
 
=== MCHART_DIR ===
 
This variable is used for the old mchart utility.

Latest revision as of 22:01, 30 October 2026

The midas documentation has moved. See Environment variables for the new documentation about the midas environment variables.