#!/usr/local/bin/bash # environment variables DATE=`date +%m_%d_%y_%H_%M_%S` #setup sam source /usr/local/etc/setups.sh setup sam # Note: SAM_PROJECT is _not_ the same thing as the "project" which defines # the files that will be accessed, and SAM_PROJECT _has_ to be unique!!! rm -f RecoAnalyze.root rm -f RecoAnalyzeSAM.x ln -sf ../../bin/${BFARCH}/RecoAnalyzeSAM_x RecoAnalyzeSAM.x ##export PROJECT=bob.reco.sim.pmc02.pythia.qcd.pt160.mb1.1.03.07 export PROJECT=sophie.test1 ##export PROJECT=bob.data.125232.183666 ## export PROJECT=bob.all_0000124640_001.raw export SAM_PROJECT=$PROJECT_$DATE export MYJOB=RecoAnalyzeSAM.x export MYRCP=runRecoAnalyzeSAM.rcp export SAM_STATION=central-analysis # start project and allocate buffer space sam start project --defname=$PROJECT --snapvers=new --group=dzero # run framework application $MYJOB -project $SAM_PROJECT -station $SAM_STATION -rcp $MYRCP -time # stop project and deallocate buffer space sam stop project