Quick Start

previous.gif Components - Top - Internal features next.gif

This section is under revision to better reflect the latest installation and basic operation of the Midas package.

... This section will... describes step-by-step the installation procedure of the Midas package on several platform as well as the procedure to run a demo sample experiment. In a second stage, the frontend or the analyzer can be moved to another computer to test the remote connection capability.

The Midas Package source and some binaries can be found at : PSI or at TRIUMF . An online SVN web site is also available for the latest developments.

Even though Midas is available for multiple platforms, the following description are for Linux installation and Windows installation.


Linux installation

ROOT Installation

Midas Installation

ROME installation

ROODY installation

Midas Experiment Setup from scratch

Installation considerations

Experiment definition:

Demo examples: The midas file structure contains examples of code which can be (should be) used as template. In the midas/examples/experiment you will find a full set for frontend and analysis code. The building of this example is performed with the Makefile of this directory.

  #-------------------------------------------------------------------
  # The following lines define direcories. Adjust if necessary
  #                 
  DRV_DIR   = $(MIDASSYS)/drivers/bus
  INC_DIR   = $(MIDASSYS)/include
  LIB_DIR   = $(MIDASSYS)/linux/lib

For testing the system, you can start the frontend as follow:

  > frontend
  Event buffer size      :     100000
  Buffer allocation      : 2 x 100000
  System max event size  :     524288
  User max event size    :     10000
  User max frag. size    :     5242880
  # of events per buffer :     10
  
  Connect to experiment ...Available experiments on local computer:
  0 : test         
  1 : decay
  Select number:0                    <---- predefined experiment from exptab file

  Sample Frontend connected to <local>. Press "!" to exit                 17:27:47
  ================================================================================
  Run status:   Stopped    Run number 0
  ================================================================================
  Equipment     Status     Events     Events/sec Rate[kB/s] ODB->FE    FE->ODB
  --------------------------------------------------------------------------------
  Trigger       OK         0          0.0        0.0        0          0
  Scaler        OK         0          0.0        0.0        0          0
In a different terminal window
  >odbedit
  Available experiments on local computer:
  0 : test
  1 : decay
  Select number: 0
  [local:test:S]/>start now
  Starting run #1
  17:28:58 [ODBEdit] Run #1 started
  [local:test:R]/>
The run has been started as seen in the frontend terminal window. See the frontend.c for data generation code.
  Sample Frontend connected to <local>. Press "!" to exit                 17:29:07
  ================================================================================
  Run status:   Running    Run number 1
  ================================================================================
  Equipment     Status     Events     Events/sec Rate[kB/s] ODB->FE    FE->ODB
  --------------------------------------------------------------------------------
  Trigger       OK         865        99.3       5.4        0          9
  Scaler        OK         1          0.0        0.0        0          1


Windows installation

previous.gif Components - Top - Internal features next.gif


Midas DOC Version 2.0.2 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk