These instructions describe how to run a monitor, PTmon, under Condor at Caltech.
Preparing the monitor
Remove all code that is spurious for off-line running. This includes such code as DMTViewer, and trend- and trigger-writing code. Take the corresponding parameters out of the configuration file, and also the '-while' parameter that checks the operating state condition. This will not be necessary for science mode data, and leaving it in would necessitate including copies of LockLoss.conf, StateVector.conf, and ModeCleanerLock.conf in each segment directory and transferring them with the data to the cluster nodes.
Shell script on grid server
Add something like the following to .bash_profile:
export DMTHOME=/opt/dmt
source $DMTHOME/rev_2.9/bin/setupb
Directories on grid server
Create a directory for the monitor code, and compile the monitor.
Create a set of directories for all the segments to be processed. Use a script to write to each of them a file containing the addresses of the frames for that segment, a copy of the monitor's configuration file, any other files that are normally required by the monitor, and an executable script file such as L1run.pl:
#!/usr/bin/perl
$inList = "\"segFrames\"";
$configFile = "PTmon_LLOtest.conf";
$C = "-conf";
$I = "-inlist";
$Monitor = "/dso-test/zotov/PTmon/PTmon";
system "$Monitor $C $configFile $I $inList";
From your home directory, launch a script such as test.sub:
universe = vanilla
# executable = /dso-test/zotov/PTmon
-conf PTmon_LLOtest.conf
# -inlist "segFrames"
transfer_input_files=PTmon_LLOtest.conf,segFrames,
Han41_100_300.dat
executable = L1run.pl
getenv = True
should_transfer_files =
YES
when_to_transfer_output
= ON_EXIT_OR_EVICT
output = test.out
error = test.error
Log
= test.log
Initialdir
= /dso-test/zotov/L1segs/seg8
Queue
Initialdir
= /dso-test/zotov/L1segs/seg9
Queue
notification = Complete
notify_user = nzotov@ligo-la.caltech.edu
The output will be written to files placed in each segment directory.