next up previous contents index
Next: hist_file Up: The Analysis Package, Now Previous: The Present Analyzer, tunl_online   Contents   Index

Modifying the Analyzer for Your Experiment

The detector map file, histogram file, test file, and output file names are defined in a global parameter file called g_parm_ctp.config. An example g_parm_ctp.config file is as follows:

;
;   DESCRIPTION:
;      Defines general use parameters
;
;
begin parm flow_flags
;
  nevnt_dump = 100000     ; histograms will be dumped each nevent_dump events,
                          ; only used in off-line analysis
  anal_bypass_flag = 0    ; if .true. the on-line analyzer routine is bypassed.
  debug_flag = 0          ; if .true. print debug statements to fortran
                          ; unit 19
                          ; debug_flag = 0, no debugging
                          ; debug_flag = 1, debugging in the 
                          ; event_unpacker is on
                          ; debug_flag = 2, debugging in usrvent is on
;
  scaler_reset_flag = 0   ; if .true. the hardware scalers are reset 
                          ; after every read
  ntuple_flag = 0;        ; if .true. the general use NTUPLE will be 
                          ; booked, filled and dumped to the file 
                          ; g_ntuple_file - the run number and '.ntuple'
                          ; will be appended to the file name
;
  rebook_hist = 0         ; if .true. histograms will be rebooked using CTP
  rebook_test = 0         ; if .true. tests will be rebooked using CTP
  rebook_report = 0       ; if .true. report summary configuration 
                          ; file will be reloaded
  hist_reset = 1          ; if .true. histograms will be cleared 
                          ; in the usrprestart routine
;
  warn_decoder = 0        ; if .true. decoder error messages will be logged
  timeout_decoder = 0     ; if .true. fastbus module timeouts will be logged
;
  ICLOCK = 5              ; index of clock pulser
  clock_freq = 10.        ; frequency of clock pulser
;
end parm flow_flags
;
begin parm io_filenames
;
;All file names MUST be less than 80 characters
;
  report_config_file = 'runsummary_ctp.config'  ; CTP run summary configuration
; ---------------------------------------------------------------
; TUNL USERS ONLY MODIFY THE FOLLOWING SIX  LINES
  hist_file = 'nday'                            ; file to dump HBOOK histograms 
                                                ; the run number and .'hbook' 
                                                ; will be appended to this name
  hist_config_file = 'nday_hist_ctp.config'     ; histogram setup file
  test_config_file = 'nday_test_ctp.config'     ; test setup configuration file
  detmap_config_file = 'nday_detmap.config'     ; detector map file
  det_parm_file = 'det_parm_ctp.config'         ; CTP detector parameters
  ntuple_file = 'nday_ntuple'                   ; file to dump  ntuple 
                                                ; the run number and .'hbook' 
                                                ; will be appended to this name
; -------------------- END USER MODIFICATION AREA ---------------
end parm io_filenames
;

Most commonly, users would only need to modify the names for hist_file, hist_config_file, test_config_file, detmap_config_file, det_parm_file, and ntuple_file.



Subsections

Mohammad Ahmed 2003-07-23