Arnaud Lucotte, Auguste BESSON, Yannick ARNOUD
Introduction
and outlook
Creating
a new tape
Copying
the input file on a tape
Preparing
the environment
Python
script configuration
Running
the script
Retriving
the processed data
We will describe how to simulate
the interactions of the particules you have generated into the D0 detector.
We will run mc_runjob on the ccali
computing facility. Here is what you have to do :
Logon ccali
If you need to create a new tape
:
D0 users are assigned the WVxxxx
serie
Check that the file doesn't already
exist : tms q vid WVxxxx
Create a tape wil the graphic control
panel :
xtms
TapeMovement
Create/Issue
1st VID : WVxxxx (first K7 you want to create)
last VID : WVyyyy (same as 1st K7 if you create only one tape)
Labeltype : SL
Model-density : 3490
Execute
It will take at least 1/2 hour
to get your tape ready
You can check the evolution with
the command tms q vid WVxxxx
Copying the input file on a tape
We were unsucessful to run mc_runjob on a disk file. the only easy way is to write the input file on a tape. Then mc_runjob will work fine !
Once the tape is ready, copy your generated DSPACK file :
xtagewrite -V WVxxxx -q fseq dspackFilewhere
WVxxxx is the tape visual identifier you have createdFor instance : xtagewrite -V WV1234 -q 1 fondQcd.dat
fseq is the file sequence : 1 for the first file you write, 2 for the second file, etc....
dspackFile is the file name of your DSPACK file
Please keep track of all the information written
on your tape.
In particular, the file sequence fseq and the
name of the DSPACK file.
If you don't do so, you will not be able to access
your data and write additional data later on.
Go to your prefered working disk and import the necessary tools :
cd my_scratch
tar zxvf $THRONG_DIR/info_data/pmc03/mc_runjob.tar.gz
setup D0RunII pmc03.00.01
setup d0cvs
source setup_mcrunjob.csh (if your shell is csh ou tcsh, otherwhise source setup_mcrunjob.sh)
cd mc_runjob
cd py_scripts
cp ./scripts/Zee-d0gstar-d0sim.macro .
edit ./scripts/Zee-d0gstar-d0sim.macro .
Copying
your ascii file on d0mino
Logon on d0mino and transfer your file.
The executable code will read your ascii file via a link named input
and create a dspack MCevents.dat file.
Create a link to your ascii file :
cd p05dirEdit the rcp file ./d0_mcpp_gen/rcp/MCNewEvent.rcp which control the number of runs / events such that it will match the number of events in your ascii file
ln -sf your_ascii_file input
Run the executable interactively or in batch depending on the number of events you are simulating :
./bin/IRIX6-KCC_3_4/MCsusygen.x -rcp runMCsusygen.rcpEventhough susygen is not used you have to run with the corresponding rcp file for it defines all other control files, as the previous ./d0_mcpp_gen/rcp/MCNewEvent.rcp
MC++ output RPC files are :
- MCevent.dump : output control file
- MCevents.dat : DSPACK format readable by d0gstar and Analyze.