Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:34

0001 #!/bin/bash
0002 
0003 #inputPath=/storage/data1/SiStrip/SiStripDQM/output/cruzet
0004 inputPath=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_TRACKER/DQM/SiStrip/jobs/output
0005 
0006  eval `scramv1 runtime -sh`
0007 
0008 cp dbfile_empty.db dbfile.db
0009 mkdir log
0010 
0011 for file in `ls $inputPath/*.root`
0012 do
0013   run=`echo $file| awk -F"R00" '{print $2}' | awk -F"_" '{print int($1)}'`
0014 
0015   echo $file $run
0016 
0017   cat template_SiStripQualityHotStripIdentifierRoot_cfg.py |sed -e "s@insertRun@$run@g"  -e "s@insertInputDQMfile@$file@"  -e "s@@@" > log/SiStripQualityHotStripIdentifierRoot_${run}_cfg.py
0018 
0019   cmsRun log/SiStripQualityHotStripIdentifierRoot_${run}_cfg.py > log/SiStripQualityHotStripIdentifierRoot_$run.log
0020 
0021 done
0022 
0023 rm -rf TkMaps
0024 mkdir TkMaps
0025 cmsRun SiStripQualityStatistics_offline_cfg.py > out
0026 cat out | awk 'BEGIN{doprint=0}{if(match($0,"New IOV")!=0) doprint=1;if(match($0,"%MSG")!=0) {doprint=0;print "";} if(doprint==1) print $0}' > BadStrips_x_IOV_offline.txt
0027 mv TkMaps/* /storage/data2/SiStrip/quality/TkMaps_offline/
0028 mv BadStrips_x_IOV_offline.txt /storage/data2/SiStrip/quality
0029 cd /storage/data2/SiStrip/quality/TkMaps_offline/
0030 perl ~/public/createWPage.pl
0031 cd -
0032 
0033 rm -rf TkMaps
0034 mkdir TkMaps
0035 cmsRun SiStripQualityStatistics_full_cfg.py > out
0036 cat out | awk 'BEGIN{doprint=0}{if(match($0,"New IOV")!=0) doprint=1;if(match($0,"%MSG")!=0) {doprint=0;print "";} if(doprint==1) print $0}' > BadStrips_x_IOV_all.txt
0037 mv TkMaps/* /storage/data2/SiStrip/quality/TkMaps_all/
0038 mv BadStrips_x_IOV_all.txt /storage/data2/SiStrip/quality
0039 cd /storage/data2/SiStrip/quality/TkMaps_all/
0040 perl ~/public/createWPage.pl
0041 cd -
0042