QwGeant4
tracking_both.xml.in
Go to the documentation of this file.
1 <Request>
2  <Email email="%user%@jlab.org" request="false" job="false"/>
3  <Project name="qweak"/>
4  <Track name="simulation"/>
5  <Name name="%name%_%jobid%"/>
6  <OS name="centos7"/>
7  <Command><![CDATA[
8 set file=`echo %dest%/%user%/rootfiles/%name%/%name%_%jobid%_tracking.root | sed 's|mss:||g'`
9 if ( -f $file ) exit 0
10 
11 date | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
12 ls -al $WORKDIR | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
13 
14 # Change to QwGeant4 directory
15 cd %qwgeant4%
16 mkdir -p rootfiles
17 ln -sf $WORKDIR rootfiles/%name%_%jobid%_workdir
18 build/QweakSimG4 macros/jobs/%name%_%jobid%.mac | grep -v ^Target
19 rm -f rootfiles/%name%_%jobid%_workdir
20 mv $WORKDIR/%name%_%jobid%.root $WORKDIR/%name%_%jobid%_simulation.root
21 
22 date | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
23 ls -al $WORKDIR | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
24 ls -al %qwgeant4% | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
25 
26 # Change to QwAnalysis directory
27 cd %qwanalysis%
28 setenv QWSCRATCH %qwscratch%
29 setenv QWANALYSIS %qwanalysis%
30 source SetupFiles/SET_ME_UP.csh
31 setenv QW_DATA $WORKDIR/data
32 setenv QW_ROOTFILES $WORKDIR/rootfiles
33 mkdir -p $QW_DATA $QW_ROOTFILES
34 ln -sf $WORKDIR/%name%_%jobid%_simulation.root $QW_DATA/QwSim_%jobid%.root
35 bin/qwsimtracking -r %jobid% --R2-octant %R2pkg2% --R3-octant %R3pkg2% %qwsimtrackingflag%
36 mv $QW_ROOTFILES/QwSim_%jobid%.root $WORKDIR/%name%_%jobid%_tracking.root
37 
38 date | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
39 ls -al $WORKDIR | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
40 ls -al %qwanalysis% | tee -a /home/%user%/scratch/job/%name%_%jobid%.stat
41  ]]></Command>
42 
43  <Memory space="1800" unit="MB"/>
44  <TimeLimit unit="minutes" time="4320"/>
45 
46  <Job>
47  <Output src="%name%_%jobid%_simulation.root" dest="%dest%/%user%/rootfiles/%name%/%name%_%jobid%_simulation.root"/>
48  <Output src="%name%_%jobid%_tracking.root" dest="%dest%/%user%/rootfiles/%name%/%name%_%jobid%_tracking.root"/>
49  <Stdout dest="/home/%user%/scratch/job/%name%_%jobid%.out"/>
50  <Stderr dest="/home/%user%/scratch/job/%name%_%jobid%.err"/>
51  </Job>
52 
53 </Request>
54 
55 
56