ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Jeng/scripts/make_html.csh
(Generate patch)

Comparing UserCode/Jeng/scripts/make_html.csh (file contents):
Revision 1.1 by jengbou, Fri Oct 30 17:45:51 2009 UTC vs.
Revision 1.2 by jengbou, Fri Oct 30 22:08:56 2009 UTC

# Line 7 | Line 7 | else
7      
8      set samples = ("TTbar_madgraph" "TTbar_mcatnlo" "TTbar_pythia" "WJets_madgraph" "ZJets_madgraph" "WcJets_madgraph" "AstarJets_madgraph")
9      set datasets = ("/TTbarJets-madgraph/Summer09-MC_31X_V3_7TeV_preproduction-v1/GEN-SIM-RECO/" "/TTbar-mcatnlo/Summer09-MC_31X_V3_7TeV_preproduction-v2/GEN-SIM-RECO" "/TTbar/Summer09-MC_31X_V3_7TeV-v1/GEN-SIM-RECO" "/WJets-madgraph/Summer09-MC_31X_V3_7TeV_preproduction-v1/GEN-SIM-RECO" "/ZJets-madgraph/Summer09-MC_31X_V3_7TeV_preproduction-v1/GEN-SIM-RECO" "/WcJets-madgraph/Summer09-MC_31X_V3_7TeV_preproduction-v1/GEN-SIM-RECO" "/AstarJets-madgraph/Summer09-MC_31X_V3_7TeV_preproduction-v1/GEN-SIM-RECO")
10 <    set weights = (0.0413 0.0674 0.006 0.1817 0.1012 0.0026 0.0277)
10 >    set weights = (0.0169 0.0321 0.006 0.1817 0.1012 0.0026 0.0277)
11  
12      set pngdir = "/Users/jengbou/Desktop/TopWork/Analysis/Validation/7TeV/"
13      set publishdir = "/afs/fnal.gov/files/home/room3/jengbou/public_html/MCValidation/Summer09_7TeV/"
# Line 22 | Line 22 | else
22          cat template.html | sed \
23          -e s@SAMPLE@$sample@g \
24          -e s@DATASET@$datasets[$idx]@g \
25 <        > ! $sample/index.html
25 >        > ! tmp.txt
26 >
27 >        cat tmp.txt Summary_cut_flow_$sample.txt > ! $sample/index.html
28  
27        rm -f $publishdir/$sample/*.png
29          mkdir -p $publishdir/$sample
30 +        rm -f $publishdir/$sample/*.png
31          cp $pngdir/$sample/*.png $publishdir/$sample
32          cp $sample/*.root $publishdir/$sample
33          cp $sample/index.html $publishdir/$sample
34 +
35          @ idx++
36      end
37 +    rm -f tmp.txt
38  
39   endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines