next up previous contents index
Next: Test/Cut Definitions Up: CTP Definition Files Previous: CTP Definition Files   Contents   Index

Parameter Definitions

The parameter component of CTP supplies a means by which the parameters, constants, control flags, string variables, etc., of a data acquisition or analysis system may be initialized with readable ASCII files. It is similar to the NAMELIST package available with many Fortran compilers. The following is a sample of a definition file that sets several parameters used in an analyzer.
begin parm constants
  proton = 938.272   ; <- Comment character
  neutron = 939.57
  pion = 139.57
  pizero = 134.97
  ; The following fills an array
  offsets = 0.34, 5.7, 0.1, -.4
            0.0, .1356, -1.3, 8.6
  ; array fills may take multiple lines
  thmin = -50
  thmax = 50
  phimin = -40
  phimax = 40
  ; Lines from begin to end are called a block
  hbook_filename = 'hist.dat' ; String
  report_filename = 'endrun.txt' ; String
end parm constants

In order for the variables of these names to be set in the analyzer, these variables must be registered by the analyzer before this block of parameters is ``booked''.



Mohammad Ahmed 2003-07-23