2 #----------------------------------------------------------------------
4 # Name: make_xml_35tdata.sh
6 # Purpose: Make xml files for 35tdata.
10 # make_xml_35tdata.sh [-h|--help] --run <run> [-r <release>] [-u|--user <user>] [--local <dir|tar>] [--nev <n>]
14 # -h|--help - Print help.
15 # --run - Specify the run number.
16 # -r <release> - Use the specified larsoft/dunetpc release.
17 # -u|--user <user> - Use users/<user> as working and output directories
18 # (default is to use dunepro).
19 # --local <dir|tar> - Specify larsoft local directory or tarball (xml
20 # tag <local>...</local>).
21 # --nev <n> - Specify number of events for all samples.
22 # Otherwise use hardwired defaults.
24 #----------------------------------------------------------------------
35 while [ $# -gt 0 ]; do
41 echo "Usage: make_xml_mcc.sh [-h|--help] --run <run> [-r <release>] [-u|--user <user>] [--local <dir|tar>] [--nev <n>] "
83 # Total number of events.
100 # Delete existing xml files.
108 slicefcl=RunSplitterDefault.fcl
111 echo samweb delete-definition rawdata35t_run_${run}
112 samweb delete-definition rawdata35t_run_${run}
113 echo samweb -e lbne create-definition rawdata35t_run_${run} "run_number=${run} and data_tier=raw and lbne_data.detector_type like %35t%"
114 samweb -e lbne create-definition rawdata35t_run_${run} "run_number=${run} and data_tier=raw and lbne_data.detector_type like %35t%"
115 samweb list-definition-files rawdata35t_run_${run}
117 <?xml version="1.0"?>
119 <!-- Production Project -->
122 <!ENTITY release "$rel">
123 <!ENTITY file_type "test-data">
124 <!ENTITY run_type "physics">
125 <!ENTITY name "$newprj">
126 <!ENTITY tag "35tdata">
129 <project name="&name;">
134 <!-- Project size -->
135 <numevents>$nev</numevents>
137 <!-- Operating System -->
140 <!-- Batch resources -->
141 <resource>DEDICATED,OPPORTUNISTIC</resource>
143 <!-- Larsoft information -->
146 <qual>${qual}:prof</qual>
149 if [ x$local != x ]; then
150 echo " <local>${local}</local>" >> $newxml
155 <!-- Project stages -->
159 <inputdef>rawdata35t_run_${run}</inputdef>
160 <outdir>/pnfs/dune/scratch/${userdir}/&release;/slice/&name;</outdir>
161 <workdir>/dune/app/users/${userbase}/work/&release;/slice/&name;</workdir>
163 <datatier>sliced</datatier>
164 <defname>&name;_&tag;_slice</defname>
168 <filetype>&file_type;</filetype>
171 <runtype>&run_type;</runtype>