Setup for Batch Job With Varying Experimental CLAS12 Quantities

From New IAC Wiki
Revision as of 15:54, 25 August 2016 by Vanwdani (talk | contribs)
Jump to navigation Jump to search

Using CLAS12 isotropic distribution LUND files for LH2 and NH3 targets and varying incident electron energy.

LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut.LUND

Spliting the LUND file into 38 parts of 3000 events, or 9000 lines

split -d -l 9000 -a 2 LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut.LUND LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_

Naming these files LUND files

prename 's/(LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_\d{2})/$1.LUND/' LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_*

Placing each of these files into its own directory, within a directory named LH2_0Sol_p100Tor_11GeV_Phi10deg_ShieldOut

find . -name "*.LUND" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \;

=GCard Building A program,File:Gcard builder.C is written to install a LUND specific gcard in each directory.

Commands Building

Similarly, File:Commands builder.C is written to install a specific commands file into each directory for testing.

Batch Conditions

The batch job will need to

cd /home/lds/src/CLAS/GEMC/experiments/eg12/MolrBckGrd/DV/Isotropic_study/LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut
cd /LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_00
~/src/CLAS/GEMC/source/gemc -USE_GUI=0 -INPUT_GEN_FILE="LUND,LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_00.LUND" -N=3000 eg12.gcard>/dev/null
                                                                                                                       -
                                                                                                                       -
                                                                                                                       -
cd /LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_37
~/src/CLAS/GEMC/source/gemc -USE_GUI=0 -INPUT_GEN_FILE="LUND,LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut_37.LUND" -N=3000 eg12.gcard>/dev/null
cd ..
~/src/CLAS/evioRootDV/bin/evio2root LH2_0Sol_n100Tor_11GeV_Phi10deg_ShieldOut.root 114000