#!/bin/csh # # This script is valid for "nodes" 33,34,35 and 60-79 # Dead map propagation is as *after* Oct. 12, 2002 set nargs = $#argv if ( $nargs == 0 ) then echo " Provide the machine number XX (va0XX)." echo " Usage: source phoncs_preco3.sh 2 " exit endif # Will read PISA inputs labeled node: 1-32 set machine = $argv[1] ####################### INSTALLATION ####################### # need my lib for the moment source ~/.login source ~/b3_enterria/phenix_setup.csh source ~/b2_enterria/path2.csh setenv WORKDIR /scratch/phnxemc/enterria setenv PISADIR /common/b3/phoncs/enterria/pisa_files setenv DSTDIR /common/b2/phoncs/enterria/simul_dsts setenv RELDIR /common/b2/phoncs/enterria/rawrels setenv AFSDDE /afs/rhic/phenix/users/enterria setenv LIBDIR /common/b2/phoncs/enterria/install if !( -e ${WORKDIR}/preco_on ) mkdir --verbose ${WORKDIR}/preco_on if !( -e ${WORKDIR}/batch_logs ) mkdir --verbose ${WORKDIR}/batch_logs cd ${WORKDIR}/preco_on source /afs/rhic/phenix/software/simulation/run2b/taskBLinkerNoB.csh rm -f *.input rm -f muon* rm -f hji135* rm -f pos* rm -f PISA* cp -f ${AFSDDE}/myPISAtoDST.C myPISAtoDST.C # cp -f ${PISADIR}/../myPISAtoDST.C myPISAtoDST.C ####################### 4. RECO ####################### setenv OO_FD_BOOT ${PHENIX_FD_BOOT} set force_acc = 1 #set runnum = 28163 # for dead-map propagation as of *before* Oct. 12, 2002 set runnum = 29982 # for dead-map propagation as of *after* Oct. 12, 2002 set counter = -1 while (${counter}<8) @ counter += 1 set inPISAfile = ${PISADIR}/pi0_PISA_node${machine}_${counter}.root ln -sf ${inPISAfile} PISAinput.root #### 0-6000 events set firstEvent = 0 set maxEvents = 6000 set outDSTfile = ${DSTDIR}/DST_pisa_node${machine}_${counter}_a.root set outRELfile = ${RELDIR}/rawrel_pisa_node${machine}_${counter}_a.root echo "Producing ${outDSTfile} from 1st half of ${inPISAfile}." echo "ROOT messages output being written in ${WORKDIR}/batch_logs/node${machine}_${counter}.loga2" echo 'firstEvent: ' ${firstEvent} ' maxEvents: ' ${maxEvents} if (-f ${outDSTfile}) then echo ${outDSTfile} ' exists already. Skipping it ...' end else root -b < ${WORKDIR}/batch_logs/node${machine}_${counter}.logb2 timecontrol = new TStopwatch(); timecontrol.Start(); .x myPISAtoDST.C(${firstEvent},${maxEvents},2,"PISAinput.root","${outDSTfile}","${outRELfile}",${force_acc},${runnum}); timecontrol.Stop(); timecontrol.Print(); EOF endif #### 6000-12000 events set firstEvent = 6000 set maxEvents = 12000 set outDSTfile = ${DSTDIR}/DST_pisa_node${machine}_${counter}_b.root set outRELfile = ${RELDIR}/rawrel_pisa_node${machine}_${counter}_b.root echo "Producing ${outDSTfile} from 2nd half of ${inPISAfile}." echo "ROOT messages output being written in ${WORKDIR}/batch_logs/node${machine}_${counter}.logb2" if (-f ${outDSTfile}) then echo ${outDSTfile} ' exists already. Skipping it ...' end else root -b < ${WORKDIR}/batch_logs/node${machine}_${counter}.logb2 timecontrol = new TStopwatch(); timecontrol.Start(); .x myPISAtoDST.C(${firstEvent},${maxEvents},2,"PISAinput.root","${outDSTfile}","${outRELfile}",${force_acc},${runnum}); timecontrol.Stop(); timecontrol.Print(); EOF endif end oocleanup -local exit