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.20 by ahart, Mon Mar 4 11:41:57 2013 UTC vs.
Revision 1.21 by ahart, Wed Mar 6 17:01:01 2013 UTC

# Line 147 | Line 147 | foreach my $mergedFile (@mergedFiles)
147    }
148   print "=============================================\n";
149   my $output = sprintf "Effective luminosities of samples:\n";
150 < my $printOutput = 1;
150 > my $printOutput = 0;
151   foreach my $arg (keys %weights)
152    {
153      my $shortArg = $arg;
154      $shortArg =~ s/^.*\/([^\/]*)$/$1/;
155 <    $output = sprintf "%s  $shortArg: %.5g/fb\n", $output, ($integratedLuminosity / (1000.0 * $weights{$arg}));
155 >    $output = sprintf "%s  $shortArg: %.5g/fb\n", $output, ($integratedLuminosity / (1000.0 * $weights{$arg})) if $weights{$arg} != 1;
156 >    $printOutput = 1 if $weights{$arg} != 1;
157    }
158   print $output if $printOutput;
159   $output = sprintf "Weights for target luminosity of %g/fb:\n", ($integratedLuminosity / 1000.0);
# Line 161 | Line 162 | foreach my $arg (keys %weights)
162    {
163      my $shortArg = $arg;
164      $shortArg =~ s/^.*\/([^\/]*)$/$1/;
165 <    $output = sprintf "%s  $shortArg: %.5g\n", $output, $weights{$arg};
165 >    $output = sprintf "%s  $shortArg: %.5g\n", $output, $weights{$arg} if $weights{$arg} != 1;
166      $printOutput = 1 if $weights{$arg} != 1;
167    }
168   print $output if $printOutput;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines