[
Index ] [ Bottom ]

daqctl v1 applications


The KLOE event generator.

Program name : evg

Author : Enrico Pasqualucci

evg is an event generator for KLOE. This application, written in the standard KLOE online enviroment, is able to randomly generate events (between a minimum and a maximum length) at the begin into a memory accessible via VME and shared by n `level-2' chains or into a fifo. During the run, a data length is generated for each chain at the desired rate to tell the event collectors which is the amount of data to read. A trigger number is generated and written into a shared memory location to allow the dfc to work.

The system is synchronous, in the sense that all the level-2 processors must be able to process events at the required rate; otherwise evg will crash.

Usage:

   evg [options] [-n procname]

Options:

   [-h]
           help : type evg -h to obtain the default options

   [-c]    nchain
             Number of Vme chains (default = EVG_DEF_N_CHAIN)

   [-f]    loc len
             Fifo location and length (in bytes - hex format)

   [-s]    seed
             Random seed (default = EVG_DEF_SEED)

   [-e]    nev
             Number of events in the VIC memory or fifo 
             (default = EVG_DEF_N_MM_EVENTS);

   [-t]    time
             Average time between generations in usec
             (default = EVG_DEF_AVE_HTRIG_TIME)

   [-r]    time
             Time between two write attempts on VIC in usec
             (default = EVG_DEF_RETRY_HTRIG_TIME)

   [-k]    time
             Average time between two triggers
             (default = EVG_DEF_AVE_KLOE_RATE)

   [-d]    average
             Average data length in 32 bit words
             (default = EVG_DEF_AVE_DATALEN)

   [-w]    flag
             Event structure flag (w = word # /e = event #)
             (default = e)

   [-dm]   min
             Minimum data length in 32 bit words
             (default = EVG_DEF_MIN_DATALEN)

VIC options:

   [-va]   add
             VIC address to map (default = EVG_DEF_VIC_ADDRESS)

   [-vs]   space
             VIC space to map (default = EVG_DEF_VIC_SIZE)

   [-vo]   offs
             VIC offset from base (default = EVG_DEF_VIC_OFFSET)

   [-vm]   mode
             VIC address modifier (default = EVG_DEF_VIC_AM)


The KLOE Data Flow Control Daemon

Program name : dfcd

Author : Enrico Pasqualucci

dfcd is the KLOE Data Flow Control Daemon. It is in charge to receive and log traps from the KLOE event building nodes notifying the changes of status ("almost full" or "available") of their internal buffers and to convert them into commands to the Data Flow Control. dfcd is written in the standard KLOE online environment.

Usage:

    dfcd [options] [-n procname]

Options:

    [-p]
           dump snmp packets


The KLOE Data Flow Control

Program name : dfc

Author : Enrico Pasqualucci

dfc is the KLOE Data Flow Control program. At the beginning of the run, it is able to build (using SNMP informations) or to retrieve from another process (i.e. run control) the map of the KLOE network. Using this map a `dfc map' is built, containing all the addresses of the nodes where level-2 sub-events have to be sent, in the right order. The dfc map is written in a VME mirrored memory and shared by all the level-2 CPUs.

A dfc table is generated containing a set of dynamic activation flags, meaning the status of the receivers, and and a validation number, i.e. the last trigger number of validity (initially set to 0 = infinity). When a command is received from the dfcd signalling the change of status of a receiver, a new table is generated with the corresponding activation flag changed and a validity number is generated for the previous dfc table.

Usage:

   dfc [options] [-n procname]

Options:

   [-h]
          help : ty dfc -h to obtaine the default parameters

   [-r] rcname
          run control process name

   [-s]
          trun in DAQ simulation mode

   [-d] 
          debug option : no VME operations performed

   [-m] [mapfile]
          read a file containing the network map
          (file default = DFC_DEF_MAPFILE)

   [-t] tloc
          trigger location offset
          (if -s setted, default = DFC_DEF_TRG_OFFSET)

VME options:

   [-va] add
           VME address to map
           (default = DFC_DEF_VME_ADDRESS)

   [-vm] space
           VME space to map
           (default = DFC_DEF_VME_SIZE)

   [-vo] offs
           VME offset from base
           (default = DFC_DEF_VME_OFFSET)

[
Index ] [ Top ]
Created 07/05/97 16:21 by source2html v0.9