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/" |
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 |