114 |
|
} |
115 |
|
my $weights = join (",", @weights); |
116 |
|
system ("mergeTFileServiceHistograms -i $rootFiles -o $opt{'prefix'}.root -w $weights"); |
117 |
– |
system ("cutFlowTable $opt{'prefix'}.root $cutFlow >& $opt{'prefix'}.tex"); |
117 |
|
my $goodEvents = countEvents ("$opt{'prefix'}.root", $cutFlow); |
118 |
|
print "$nGoodJobs jobs ran successfully over $nTotalEvents ($goodEvents weighted) events.\n" if $counting; |
119 |
|
print "$nBadJobs jobs failed to run.\n" if $counting; |
161 |
|
$exeName =~ s/^.*\/([^\/]*)$/$1/; |
162 |
|
|
163 |
|
print "Usage: $exeName [OPTION]... -p PREFIX DIRECTORIES_AND_FILES\n"; |
164 |
< |
print "Merges ROOT files containing histograms and produces a cutflow table in the\n"; |
165 |
< |
print "form of a LaTeX document. If there are Condor logs in the specified\n"; |
166 |
< |
print "directories, checks for nonzero return values. If the directories where created\n"; |
167 |
< |
print "by \"osusub\", uses the cross section from the database to weight all histograms.\n"; |
164 |
> |
print "Merges ROOT files containing histograms. If there are Condor logs in the\n"; |
165 |
> |
print "specified directories, checks for nonzero return values. If the directories\n"; |
166 |
> |
print "where created by \"osusub\", uses the cross section from the database to weight\n"; |
167 |
> |
print "all histograms.\n"; |
168 |
|
print "\n"; |
169 |
|
print "Mandatory arguments to long options are mandatory for short options too.\n"; |
170 |
|
printf "%-29s%s\n", " -c, --cutflow HISTOGRAM", "name of histogram to use for the cutflow (default:"; |
172 |
|
printf "%-29s%s\n", " -h, --help", "print this help message"; |
173 |
|
printf "%-29s%s\n", " -l, --luminosity", "integrated luminosity to which the histograms are"; |
174 |
|
printf "%-29s%s\n", " ", "weighted (default: 10000/pb)"; |
175 |
< |
printf "%-29s%s\n", " -p, --prefix PREFIX", "output files are named PREFIX.root and PREFIX.tex"; |
175 |
> |
printf "%-29s%s\n", " -p, --prefix PREFIX", "output is named PREFIX.root"; |
176 |
|
printf "%-29s%s\n", " -w, --weight WEIGHT", "scale the output by WEIGHT, overriding the"; |
177 |
|
printf "%-29s%s\n", " ", "automatic weighting using the cross section from"; |
178 |
|
printf "%-29s%s\n", " ", "the database"; |