cd /storage/data3/pubWork/prod/DatasetBuild source setup.csh
cd attachArea ${DATASETBUILD_BASE}/bin/BuildDataset.sh <DatasetName> <HitOwnerName>
cd attachArea ${DATASETBUILD_BASE}/bin/BuildDataset.sh <DatasetName> <DigiOwnerName>
cd attachArea ${DATASETBUILD_BASE}/bin/BuildDataset.sh <DatasetName> <DstOwnerName>
cd ${DATASETBUILD_BASE}/${USER}/commonOutDir/METADATA_ROOT
${DATASETBUILD_BASE}/bin/genTar.sh <OwnerName> <DatasetName>
cd /storage/data4/METADATA
${DATASETBUILD_BASE}/bin/untar.sh \ ${commonOutDir}/METADATA_ROOT/META.<OwnerName>.<DatasetName>.<yyyymmdd>.tar
${DATASETBUILD_BASE}/bin/FixMetaPFNS.sh <OwnerName> <DatasetName> \ ${DATASETBUILD_BASE}/${USER}/commonOutDir/METADATA_ROOT /storage/data4/METADATA
${DATASETBUILD_BASE}/bin/FixMetaPFNS.sh <OwnerName> <DatasetName> \ ${DATASETBUILD_BASE}/${USER}/commonOutDir/METADATA_ROOT $PWD
cd /afs/fnal.gov/files/expwww/uscms/html/SoftwareComputing/UserComputing
${DATASETBUILD_BASE}/bin/getOrcarcFrag.sh /storage/data4/METADATA
${DATASETBUILD_BASE}/bin/getOrcarcFrag.sh /storage/data4/METADATA <OwnerName> <DatasetName>
cd ${DATASETBUILD_BASE}/${USER}/work/attachFixArea ${DATASETBUILD_BASE}/bin/runFix.sh <OwnerName> <DatasetName> <CobraVersion>Note that the for the moment use 8_1_0 for the CobraVersion for this step.
cd ${DATASETBUILD_BASE}/${USER}/work/listValArea ${DATASETBUILD_BASE}/bin/runPrefix.sh <OwnerName> <DatasetName> <CobraVersion>
setup fbsng setup kerberos fbs submit ${DATASETBUILD_BASE}/jdf/runPrefix.jdf <OwnerName> <DatasetName> \ <CobraVersion>
cp RunsAndEvents_<OwnerName>_<DatasetName>.html \ /storage/data4/METADATA/<OwnerName>/<DatasetName>
cd ${DATASETBUILD_BASE}/${USER}/work/headValArea ${DATASETBUILD_BASE}/bin/runBatchCobra.sh <OwnerName> <DatasetName> <CobraVersion>
setup fbsng setup kerberos fbs submit ${DATASETBUILD_BASE}/jdf/runBatchCobra.jdf <OwnerName> <DatasetName> \ <CobraVersion>
cp BatchCOBRA_<OwnerName>_<DatasetName>.html \ /storage/data4/METADATA/<OwnerName>/<DatasetName>
cd ${DATASETBUILD_BASE}/${USER}/work/detachArea ${DATASETBUILD_BASE}/bin/runDetach.sh <OwnerName> <DatasetName> \ <RunOwnerName> <RunNumber> <CobraVersion>Note that the for the moment use 8_1_0 for the CobraVersion for this step. If there are multiple runs to detach from a run owner, then a loop can be setup in a bash script as follows to help automate the process as shown in the example below:
#!/bin/bash callit() { owner=${1} dataset=${2} runOwner=${3} runs=${4} for run in ${runs} do ${DATASETBUILD_BASE}/bin/runDetach.sh ${owner} ${dataset} ${runOwner} ${run} 8_1_0 done } owner="jm_2x1033PU761_TkMu_2_g133_OSC" dataset="jm03b_gj_2040" runOwner="jm_2x1033PU761_TkMu_2_g133_OSC" runs="125300004 125300005 125300007" callit ${owner} ${dataset} ${runOwner} "${runs}" exit
cd /storage/data4/METADATA
${DATASETBUILD_BASE}/bin/genTar.sh <OwnerName> <DatasetName>
${DATASETBUILD_BASE}/bin/cpMETA2pnfs.sh META.<OwnerName>.<DatasetName>.<yyyymmdd>.tar
rm META.<OwnerName>.<DatasetName>.<yyyymmdd>.tar