Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:47

0001 #!/bin/bash
0002 
0003 #export PATH=/afs/cern.ch/cms/common:${PATH}
0004 if [[ "$#" == "0" ]]; then
0005     echo "usage: 'moduleOccupancyPlots.sh RootFileDirectory Dataset RunNumber ModuleListFile UserCertFile UserKeyFile'";
0006     exit 1;
0007 fi
0008 
0009 nnn=`echo $3 | awk '{print substr($0,0,4)}'` 
0010 curl -k --cert $5 --key $6 -X GET 'https://cmsweb.cern.ch/dqm/offline/data/browse/ROOT/OfflineData/'$1'/'$2'/000'${nnn}'xx/' > index.html
0011     dqmFileNames=`cat index.html | grep $3 | egrep "_DQM.root|_DQMIO.root" | egrep "Prompt|Express" | sed 's/.*>\(.*\)<\/a.*/\1/' `
0012     dqmFileName=`expr "$dqmFileNames" : '\(DQM[A-Za-z0-9_/.\-]*root\)'`
0013     echo ' dqmFileNames = '$dqmFileNames
0014     echo ' dqmFileName = ['$dqmFileName']'
0015     curl -k --cert $5 --key $6 -X GET https://cmsweb.cern.ch/dqm/offline/data/browse/ROOT/OfflineData/$1/$2/000${nnn}xx/${dqmFileName} > /tmp/${dqmFileName}
0016 
0017 moduleOccupancyPlots /tmp/${dqmFileName} $4 4 "$2_" "_run_$3"
0018 rm index.html