ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/scripts/mergeHists
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/scripts/mergeHists (file contents):
Revision 1.6 by ahart, Mon Sep 10 09:48:56 2012 UTC vs.
Revision 1.7 by ahart, Tue Sep 11 15:06:18 2012 UTC

# Line 114 | Line 114 | foreach my $file (@$files)
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;
# Line 162 | Line 161 | printHelp
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:";
# Line 173 | Line 172 | printHelp
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";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines