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

Comparing UserCode/HiggsAnalysis/EarlyDataStudy/scripts/editFirstTable.sh (file contents):
Revision 1.2 by mangano, Thu May 6 17:55:14 2010 UTC vs.
Revision 1.3 by mangano, Fri May 7 13:24:44 2010 UTC

# Line 12 | Line 12
12  
13   ############# preliminary part ################
14   choice=$1
15 < echo "choice: " $choice
15 > #echo "choice: " $choice
16  
17   pageName=FirstPage.php
18   tableHeaderName=tableHeader.shtm
# Line 34 | Line 34 | case $choice in
34          cat > $tableHeaderName <<EOF
35   <table class='selectedEventsSummary'>
36   <tr>
37 <   <th> day of data taking </th>  <th> run interval  </th>  <th> analyzed runs </th> <th> #events analyzed </th> <th> output on castor</th> <th> DBS entry</th> <th> #events output</th> <th>event type breaking</th>
37 >   <th> day of data taking </th>  <th> run interval  </th>  <th> analyzed runs </th> <th> input datasets </th> <th> #events analyzed </th> <th> skim configuration</th> <th> output on castor</th> <th> DBS entry</th> <th> #events output</th> <th>event type breaking</th>
38   </tr>
39  
40   <!--
# Line 48 | Line 48 | EOF
48   EOF
49  
50  
51 <        revision=$(cat $HEDSPATH/python/CVS/Entries |grep early |awk -F/ '{print $3}')
51 >        #fileRevision=$(cat $HEDSPATH/python/CVS/Entries |grep earlyDataInterestingEvents_cff|awk -F/ '{print $3}')
52  
53          cat > $pageName <<EOF
54   <html>
# Line 72 | Line 72 | EOF
72   <ul>
73     <li> All skimmed file are copied in the castor folder: <b> $HEDS_CASTORFOLDER/skimV$HEDS_SKIMVERSION </b></li>
74     <li> All logs from CRAB jobs are compressed in tgz files and copied in the same castor folder.
75 <   <li> The events of the files listed in the table have been selected using the skim configuration version $HEDS_SKIMVERSION in:  <a href="http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/HiggsAnalysis/EarlyDataStudy/python/earlyDataInterestingEvents_cff.py?hideattic=1&revision=$revision&view=markup">link</a>   </li>
75 >   <!-- <li> The events of the files listed in the table have been selected using the skim configuration revision $fileRevision in:  <a href="http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/HiggsAnalysis/EarlyDataStudy/python/earlyDataInterestingEvents_cff.py?revision=$fileRevision&view=markup"> link </a> </li> -->
76   </ul>
77   </big>
78   </body>
# Line 87 | Line 87 | EOF
87      add)
88          echo "option $choice. Add entry to table"
89          cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$tableBodyName   > tmp.html
90 <        simpleSummaryFile=$HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.log
90 >        simpleSummaryFile=$HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.listSkimmedEvents/$HEDS_LABEL.log
91          nInputEvts=`cat $simpleSummaryFile |grep "Skim_" | awk '{print $2}'|head -n 1`
92          mergedFileCastor="rfio:$HEDS_CASTORFOLDER/skimV$HEDS_SKIMVERSION/merged_$HEDS_LABEL.root"
93          
# Line 96 | Line 96 | EOF
96          listSkimmedEventsPath=$HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.listSkimmedEvents
97          skimmedEventPath=$HEDS_LABEL.listSkimmedEvents
98          
99 <        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.runinterval`
99 >        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.listSkimmedEvents/$HEDS_LABEL.runinterval`
100          
101  
102          linkToDBS="https://cmsweb.cern.ch/dbs_discovery/aSearch?caseSensitive=on&userMode=user&sortOrder=desc&sortName=&grid=0&method=dbsapi&dbsInst=cms_dbs_ph_analysis_02&userInput=find+dataset+where+dataset+like+*$HEDS_USERID*HiggsSimpleSkimV$HEDS_SKIMVERSION*$HEDS_LABEL*+and+dataset.status+like+VALID*"
103  
104 <
104 >        fileRevision=$(cat $HEDSPATH/python/CVS/Entries |grep earlyDataInterestingEvents_cff|awk -F/ '{print $3}')
105 >        linkToSkimRevision="<a href=\"http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/HiggsAnalysis/EarlyDataStudy/python/earlyDataInterestingEvents_cff.py?revision=$fileRevision&view=markup\"> rev $fileRevision </a>"
106          cat >> extension.html <<EOF
107   <tr>
108 <   <td> $HEDS_LABEL </td>  <td> $runList  </td>  <td><a href="$HEDS_LABEL.runselection"> link </a></td> <td> $nInputEvts </td> <td> merged_$HEDS_LABEL.root</td>
108 >   <td> $HEDS_LABEL </td>  <td> $runList  </td>  <td><a href="$HEDS_LABEL.listSkimmedEvents/$HEDS_LABEL.runselection"> link </a></td> <td> na </td> <td> $nInputEvts </td> <td> $linkToSkimRevision </td> <td> merged_$HEDS_LABEL.root</td>
109     <td><a href="$linkToDBS"> DBS entry </a> </td> <td> $nOutputEvents</td> <td><a href="$skimmedEventPath/summary.html"> link </a></td>
110   </tr>
111   EOF
# Line 129 | Line 130 | EOF
130      addSpecial)
131          echo "option $choice. Add special entry to table"
132          cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$tableBodyName   > tmp.html
133 <        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.runinterval`      
133 >        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.listSkimmedEvents/$HEDS_LABEL.runinterval`      
134  
135          cat >> extension.html <<EOF
136   <tr>
# Line 157 | Line 158 | EOF
158      addComment)
159          echo "option $choice. Add Comment entry to table"
160          cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$tableBodyName   > tmp.html  
161 <        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.runinterval`      
161 >        runList=`cat $HEDS_WWWAREA_TMP/logs.SkimV$HEDS_SKIMVERSION/$HEDS_LABEL.listSkimmedEvents/$HEDS_LABEL.runinterval`      
162  
163          cat >> extension.html <<EOF
164   <tr>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines