|
|
|
||||||||||||||||||||||||||
# setup a new test release $ newrel -s $BFROOT/work/your_username_initial/your_username -t 14.3.2b my-14.3.2b $ cd my-14.3.2b # setup your path $ srtpath <enter> <enter> # setup the correct condition database $ cond14boot # checkout the workdir package $ addpkg workdir $ cd workdir $ gmake setup # stage the xtc file for the run your interested. $ tcstage 0020029-001 Fetching runs-0020000/babar-0020029-001.xtc from HPSS thru tcstage ... File /nfs/babar/tcfiles/babar-0020029-001.xtc staged from HPSS
You can check the status of the staging queue by:
$ tcstat STATUS ON SERVER tcstage Total clients: 0 HPSS clients: 0 DATE TIME USER NODE CLIENT# STATUS FILEso in this case there is no pending request and you will get the xtc file fairly quickly.
Next, you must create a tcl snippet with your favorite options for each job you want to run. Here is an example myelf.tcl:
# -------- myelf.tcl: begin ----------- set ElfConfigPatchSet Run2 set ElfHistoFileName myElf.hbook set ElfOutputCollection /work/users/rahatlou/vanilla-14.3.2b/myelf-collection sourceFoundFile Elf/ElfProduction.tcl # -------- myelf.tcl: end -----------As you can see the tcl snippet is quite simple, it just sets a few configuration parameters specific to a particular job you would like to run:
The location of the output collection is interpreted in the new event store and corresponds to a physical location. If you are not familiar with this, you should look at the documentation for KanUserAdmin.
You are now ready to run:
$ ElfUserXtcApp -n 1000 -s 178 -f /nfs/farm/babar/tcfiles/babar-0020029-001.xtc myelf.tcl
where the command line options are:
After the successful completion of your job you can check on your collection by using the KanUserAdmin and KanCollUtil utilities.
$ KanUserAdmin list /work/users/rahatlou/vanilla-14.3.2b/myelf-collection /work/users/rahatlou/vanilla-14.3.2b/myelf-collection $ KanCollUtil /work/users/rahatlou/vanilla-14.3.2b/myelf-collection /work/users/rahatlou/vanilla-14.3.2b/myelf-collection (xxxxx events)
See the section about utility programs for more details about inspecting the content of the output collection.
You can now use the output collection /work/users/rahatlou/vanilla-14.3.2b/myelf-collection to run your analysis jobs.
$ grep ";#" $BFDIST/releases/14.3.2b/Elf/ElfProduction.tcl
set ProdTclOnly true ;# Disable the use of env. variables with the FwkCfgVar
FwkCfgVar ElfConfigPatchSet ;# Name of the config patch set to apply.
;# Choices are listed in the README file.
FwkCfgVar ElfPromptCalib ;# Can be set to one of:
;# PromptCalib : To pass 1
;# Default : To pass 2
;# noPromptCalib : Configure for the old rolling
;# calibrations
;# If not set it will default to "Default"
...
The comments fit in 80 columns to make it easy to visualize on a standard terminal. You can also look up Elf/ElfProduction.tcl via the web interface to the CVS repository.
set ElfBkgRawOutputCollection /work/users/rahatlou/vanilla-14.3.2b/myBkgTriggers-collection
set ElfCalibOutputCollection /work/users/rahatlou/vanilla-14.3.2b/myCalibStream-collectionProviding the name of the output calibration collection also turns on the output.