![]() |
|
|||
File indexing completed on 2024-04-06 12:22:51
0001 #!/bin/bash 0002 0003 #################################################### 0004 # # 0005 #Author: Adam Roe, Northeastern University # 0006 #Contact: Adam.Roe@cern.ch, Oana.Boeriu@cern.ch # 0007 #Date: November, 2006 # 0008 # # 0009 #################################################### 0010 0011 #this is for the "automated" processing of calibration runs. 0012 #it will copy a run from castor, process it using the Analyzer, 0013 #run the root macro over it, and put it on the web. 0014 #the only input it needs is the files to run over. 0015 0016 #enter " eval `scramv1 runtime -csh` " from src directory 0017 #source exec.sh ### before processing 0018 0019 #Copies all runs from castor directory 0020 #nsls /castor/cern.ch/cms/emuslice/2006/ > Runs.txt 0021 nsls /castor/cern.ch/user/b/boeriu/calibration_files > Runs.txt 0022 #takes all crosstalk runs 0023 grep -e Crosstalk_ Runs.txt > AllCrosstalkRuns.txt 0024 #filters for only the main file from each run 0025 grep -e ".raw" AllCrosstalkRuns.txt > GoodCrosstalkRuns_.txt 0026 grep -e ".raw" GoodCrosstalkRuns_.txt > GoodCrosstalkRuns.txt 0027 0028 echo " "; 0029 echo "will process runs: "; 0030 cat GoodCrosstalkRuns.txt; 0031 echo " "; 0032 0033 #for each file in GoodCrosstalkRuns, execute the following process 0034 cat GoodCrosstalkRuns.txt | while read line 0035 do 0036 #copy to /tmp/cscclaib directory 0037 #rfcp "/castor/cern.ch/cms/emuslice/2006/$line" "/tmp/csccalib/$line"; 0038 rfcp "/castor/cern.ch/user/b/boeriu/calibration_files/$line" "/tmp/csccalib/$line"; 0039 0040 #create a config file using the perl script 0041 perl ConfigChanges.pl "/tmp/csccalib/$line"; 0042 perl CreateConfigCrosstalk.pl "/tmp/csccalib/$line"; 0043 #execute the the analyzer using the newly create config file. 0044 # .root file will go into /tmp/csccalib 0045 cmsRun CSCxtalk.cfg; 0046 ls -l "/tmp/csccalib/"; 0047 #remove .raw file from from /tmp/csccalib 0048 rm "/tmp/csccalib/$line" 0049 #execute root macro. this will automatically take whatever file is in /tmp/csccalib 0050 #as it's input, so there should only be the new root file, nothing else. 0051 #the root file will put it's image output into /afs/cern.ch/cms/CSC/html/csccalib/images/xxx 0052 #see the macro for more information. 0053 root xTalkMacro.C; 0054 #clean out the /tmp/cscclaib directory. 0055 rm /tmp/csccalib/csc*; 0056 done 0057 0058 #clean out run files from current directory 0059 rm Runs.txt 0060 rm AllCrosstalkRuns.txt 0061 rm GoodCrosstalkRuns_.txt 0062 rm GoodCrosstalkRuns.txt 0063 0064 #go into public and exec the perl script for web display 0065 cd /afs/cern.ch/cms/CSC/html/csccalib 0066 perl CreateTree_Items.pl 0067 cd - 0068
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |