ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/scripts/configureDQMPlotter.sh
(Generate patch)

Comparing UserCode/DTDPGAnalysis/scripts/configureDQMPlotter.sh (file contents):
Revision 1.1 by battilan, Wed Dec 15 11:50:34 2010 UTC vs.
Revision 1.2 by marycruz, Thu Jul 4 16:41:23 2013 UTC

# Line 7 | Line 7
7   #    and the correct DQM root files to read
8   ###
9   if [ $# -lt 2 ];then
10 <  echo "Run Number or CASTOR dir not provided!"
10 >  echo "Run Number or eos dir not provided!"
11    echo "Usage :"
12 <  echo "  $0 <Run Number> <CASTOR dir with DQM root files for that Run>"
12 >  echo "  $0 <Run Number> <eos dir with DQM root files for that Run>"
13    echo ""
14    echo "  <Run Number> is the Run number you what to produce plots for "
15 <  echo "  <CASTOR dir> is the CASTOR dir where the DQM root files have been copied "
15 >  echo "  <eos dir> is the eos caf dir where the DQM root files have been copied "
16    echo "               as configured with storage_path + lfn in crab_runDQM*.cfg "
17    echo "               For example:   "
18 <  echo "                 /castor/cern.ch/user/a/afanfani/DQMCRAFT/DQMDTRun<Run Number>"
18 >  echo "                 /eos/cms/store/caf/marycruz/PromptOffline/DQMDTRun<Run Number>"
19    echo ""
20    exit 1
21   fi
# Line 33 | Line 33 | fi
33  
34   ## A)
35   echo "- Looking for DQM root files in ${OutputDir} "
36 < InputFiles=`rfdir ${OutputDir} | awk '{print $9}' | grep root`
36 > ####InputFiles=`rfdir ${OutputDir} | awk '{print $9}' | grep root`
37 > ###InputFiles=`/afs/cern.ch/project/eos/installation/0.1.0-22d/bin/eos.select ls ${OutputDir} | awk '{print $1}' | grep root`
38 > InputFiles=`/afs/cern.ch/project/eos/installation/pro/bin/eos.select ls ${OutputDir} | awk '{print $1}' | grep root`
39   #echo $InputFiles
40   first=0
41   for file in $InputFiles; do
42 <  remotefile="rfio:$OutputDir/$file"
42 >  ##remotefile="rfio:$OutputDir/$file"
43 >  remotefile="root://eoscms/$OutputDir/$file"
44    if [ $first -le 0 ];then
45     INPUT="'$remotefile'"
46    else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines