Current Code Release: December 13, 2002

Store: reco, thumbnail only

Use the Linux2.4 versions. The libraries should include all needed libraries so the software should run on all linux releases (I hope)

mc_runjob should be installed as a ups product: version v04-05-00

The tarballs to obtain are:

Common Files: d0mino.fnal.gov:/d0dist/dist/minitar/tarfiles
xcardfiles-v00-04-05.tar.gz
MagField-v00-01-00.tar.gz
Linux 7.1
lib-p13.05.00-Linux2.4-KCC_4_0.tar.gz
lib-p13.05.00-Linux2.4-KCC_4_0-maxopt.tar.gz
mc-p13.05.00-Linux2.4-KCC_4_0-maxopt.tar.gz
mc-p13.05.00-Linux2.4-KCC_4_0.tar.gz
rcp-p13.05.00-Linux2.4-KCC_4_0.tar.gz
rec-p13.05.00-Linux2.4-KCC_4_0-maxopt.tar.gz
sim-p13.05.00-Linux2.4-KCC_4_0-maxopt.tar.gz
trig-p13.05.00-Linux2.4-KCC_4_0-maxopt.tar.gz

Minimum Bias Model

This will be defined with a request see instructions below. The Overlap model has not changed in mcp13.

The Request ID is: 2719

Each overlap file generated MUST be declared to SAM.

Finally, Once you have generated all of your MB files you need to create a MB data set of them. This is done using a python script with SAM setup. An example script follows:

 import mcreq
defid = mcreq.createMinBiasDataset("filename1,filename2,filename3,....",
        "my_stations_mcp13_dataset",
        "dzero",
        desc="Lancaster Phase mcp13 plate Geometry Minbias Dataset",keywords=None)
print defid

You then just run the script with your filenames.

This then becomes the macro line 
   cfg d0sim define string MinBiDataset my_stations_mcp13_dataset
 
An exmple macro can be found here (note only have to run up until d0gstar stage)

SAM http://d0db.fnal.gov/sam/.

You will need to upgrade your SAM station to the latest version. This is to be compatible with the request system. Details to follow.

Need to install as curent:

sam_user v4_5_0_0
sam_common v4_5_0_0

And make the following change to sam_cp/NULL/v4_0_9/ups/sam_cp.table if your stores stop working (you have to run an old version of sam_common with sam_cp, I know this is a hack it should all be synched in soon)

   Action=setup
        setupenv()
        proddir()
        setupRequired(sam_common v4_3_0_4) # set sam_common version to your current version before upgrading
        setupRequired(sam_cp_config)
        setupRequired(python)
        setupOptional(sam_bbftp)
        #becuase of a bug in upd (ticket 27906) sam_gridftp cases problems here
        setupOptional(sam_gridftp)

Environment Variables

The environment variables need to change now that runjob is a UPS product. There are now less environment variables required.

. /d0/fnal/local/etc/setups.sh
export SRT_LOCAL=$MC-SIOFTWARE-DISTRIBUTION # directory containing mcc-dist
cd ${SRT_LOCAL}
cd mcc-dist
source mcc_dist_setup.sh
cd ..
export BFCURRENT=p13.04.00
setup mc_runjob


The output from setup mc_runjob will list the releases you have available in your mcc-dist area:

***mc_runjob***: setup mc_runjob
***mc_runjob***: Supported Available Releases:
***mc_runjob***:  p11.14.00 p11.12.01 p11.13.00 p12.03.00 p13.01.00 p13.00.00 p13.02.00 p13.03.00 p13.04.00                                
 

How to use the Request System:

  1. You will need an up to date version of SAM to extract the requests
  2. Requests will be delivered via a request number.
  3. To get the request detaiuls for request ID you need to run the command:
    sam get request details --request-id=1158 --dictfmt > Request_1158.py
  4. These details need to be transformed into a macro, I have written a short python script to do this: translate.py which needs two input files: macro.default and Defaults.py .
    1. You need to edit the Defaults.py and change the values to those that are appropriate for your station.
    2. Edit macros.default for any generic commands needed at your station, for example the queue.
  5. To create your input macro run the following:
    python translate.py Request_1158.py > Request_1158.macro
  6. You should now have a macro ready as input for your job.
  7. Changes
    When you have started running the job carry out the command
    sam modify request --request-id=1155 --status=running
  8. When the job is complete run the command
    sam modify request status --request-id=1155 --status=finished

Storing Metadata

Some changes have been made to the location and content of metadata. The metadata is now stored in the same directory as the file is written to. This will allow us to store the file in SAM as part of rujob in the near future.

Each stage of processing only contains the metadata related to that stage of processing. I.e. d0gstar files will only have global, and simulated metadata.

The thumbnail file can now be stored. We want you to store two files at fermi:

An example directory structure looks like:

d0gstar:
d0g-p13.04.00_CAEP-off_Geo-plate_Iain-Bertram_algo_recocert_lancs_2404_02347172401
import_kw_d0gstar_d0g-p13.04.00_CAEP-off_Geo-plate_Iain-Bertram_algo_recocert_lancs_2404_02347172401.py
 
d0reco:
import_kw_d0reco_reco-p13.04.00_Iain-Bertram_algo_recocert_lancs_2404_02347172401.py
import_kw_d0reco_tmb-p13.04.00_Iain-Bertram_algo_recocert_lancs_2404_02347172401.py
reco-p13.04.00_Iain-Bertram_algo_recocert_lancs_2404_02347172401
tmb-p13.04.00_Iain-Bertram_algo_recocert_lancs_2404_02347172401
 
d0sim:
import_kw_d0sim_sim-p13.04.00_Noise-on_NMB-0.0_MB-Fixed_Iain-Bertram_algo_recocert_lancs_2404_02347172401.py
sim-p13.04.00_Noise-on_NMB-0.0_MB-Fixed_Iain-Bertram_algo_recocert_lancs_2404_02347172401
 
generator:
gen-pythia-p13.04.00_Dec-incl_NumEv-1_Prod-qcd_Iain-Bertram_algo_recocert_lancs_2404_02347172401
import_kw_pythia_gen-pythia-p13.04.00_Dec-incl_NumEv-1_Prod-qcd_Iain-Bertram_algo_recocert_lancs_2404_02347172401.py                        

If you have any problems with this please let me know.

 

Iain Bertram
Friday, December 20, 2002