source: trunk/MagicSoft/Mars/mtemp/mifae/scripts/srcPosRun.sh@ 4450

Last change on this file since 4450 was 4431, checked in by jlopez, 20 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 775 bytes
Line 
1#!/bin/bash
2
3DCFILESPATH=/nfs/magic/CaCodata/2004_03_19
4SOURCE=Mrk421
5BIN=./psffit
6
7DCFILES=$(ls ${DCFILESPATH}/*${SOURCE}*.root)
8#echo DCFILES ${DCFILES}
9
10echo RUN SRCX SRCY
11for DCFILE in ${DCFILES}
12do
13 DCFILE=${DCFILE//${DCFILESPATH}/.}
14 #echo DCFILE ${DCFILE}
15 RUN=${DCFILE:25:5}
16 #echo RUN ${RUN}
17 if [ RUN != '00000' ]; then
18 SRCPOS=$(./${BIN} ${DCFILESPATH}/${DCFILE} | tail -1)
19 #echo SRCPOS ${SRCPOS}
20 SRCX=$(echo ${SRCPOS} | gawk '{print $2}')
21 SIGX=$(echo ${SRCPOS} | gawk '{print $3}')
22 SRCY=$(echo ${SRCPOS} | gawk '{print $4}')
23 SIGY=$(echo ${SRCPOS} | gawk '{print $5}')
24 CHI2=$(echo ${SRCPOS} | gawk '{print $6}')
25 #echo ${RUN} ${SRCX} ${SIGX} ${SRCY} ${SIGY} ${CHI2}
26 echo ${RUN} ${SRCX} ${SRCY}
27 fi
28done
Note: See TracBrowser for help on using the repository browser.