CMON: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
Boiarino (talk | contribs)
No edit summary
Line 5: Line 5:
Calibration constants are stored in offline database. It can be accessed at this [http://clasweb.jlab.org/cgi-bin/caldb/cq.pl link].
Calibration constants are stored in offline database. It can be accessed at this [http://clasweb.jlab.org/cgi-bin/caldb/cq.pl link].


Currently calibration constants must be extracted from offline database and stored in a form of files to be used by CMON. It is done using following procedure:
Currently calibration constants must be extracted from offline database and stored in a form of ''map'' files to be used by CMON. To extract information from database to maps, ''db2clonmap.pl'' script must be used. It can be run with following parameters:
 
$CLAS_TOOLS/caldb/caldb_show_constants_run.pl s=TAG_CALIB ss=tag_t i=ci r=40000 > /home/boiarino/z123
 
To white it back remove two first lines and type (DO NOT DO THAT!!!):
 
$CLAS_TOOLS/caldb/caldb_write_and_link.pl s=TAG_CALIB ss=tag_t i=ci min=40000 max=50000 ci="test1" f=/home/boiarino/z123
 
To extract information from database to maps, ''db2clonmap.pl'' script must be used. It can be run with following parameters:


  db2clonmap.pl runMin=<minimum run> runMax=<maximum run> \
  db2clonmap.pl runMin=<minimum run> runMax=<maximum run> \
Line 35: Line 27:


After it finished, move all *.map files to ''$CLON_PARMS/cmon/Maps''.
After it finished, move all *.map files to ''$CLON_PARMS/cmon/Maps''.
Calibration databases can be dumped in a form of ascii file using following procedure:
$CLAS_TOOLS/caldb/caldb_show_constants_run.pl s=TAG_CALIB ss=tag_t i=ci r=40000 > /home/boiarino/z123
JUST FOR INFORMATION, DO NOT DO THAT: To white it back remove first two lines and type:
$CLAS_TOOLS/caldb/caldb_write_and_link.pl s=TAG_CALIB ss=tag_t i=ci min=40000 max=50000 ci="test1" f=/home/boiarino/z123

Revision as of 09:18, 27 October 2007

CMON is CLAS Online Data Monitoring program. It does real time event reconstruction using old 'sda' program rewritten to C and modified for multithreaded environment.

Calibration Constants

Calibration constants are stored in offline database. It can be accessed at this link.

Currently calibration constants must be extracted from offline database and stored in a form of map files to be used by CMON. To extract information from database to maps, db2clonmap.pl script must be used. It can be run with following parameters:

db2clonmap.pl runMin=<minimum run> runMax=<maximum run> \
      [system=<system name>] \
      [skip_run_control=<non-zero to skip RUN_CONTROL system>] \
      [runIndexTable=<run index table name>] \
      [time=<date/time of validity>] \
      [hostname=<db server hostname>] \
      [quiet=<non-zero to supress printout>] \
      [help=<non-zero for usage message]

For example, to extract tagger calibration parameters goto $CLON_PARMS/cmon/Maps and run

db2clonmap.pl system=TAG_CALIB runMin=1 runMax=1000000

it will create subdirectory Maps_1-1000000, 'TAG_CALIB.map' inside and fill it up.

To extract entire database run following command

db2clonmap.pl runMin=1 runMax=1000000

After it finished, move all *.map files to $CLON_PARMS/cmon/Maps.

Calibration databases can be dumped in a form of ascii file using following procedure:

$CLAS_TOOLS/caldb/caldb_show_constants_run.pl s=TAG_CALIB ss=tag_t i=ci r=40000 > /home/boiarino/z123

JUST FOR INFORMATION, DO NOT DO THAT: To white it back remove first two lines and type:

$CLAS_TOOLS/caldb/caldb_write_and_link.pl s=TAG_CALIB ss=tag_t i=ci min=40000 max=50000 ci="test1" f=/home/boiarino/z123