Skip to content

Commit a240bb5

Browse files
committed
sort output only when dumping
1 parent 1e4931a commit a240bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cjetreconstruction/src/cjetreconstruction-finder.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,10 @@ int main(int argc, char *argv[]) {
219219
assert(retv ==
220220
jetreconstruction_StatusCode::JETRECONSTRUCTION_STATUSCODE_OK);
221221
}
222-
sorted_by_pt(final_jets);
223222

224223
if (dump_option->is_set() && trial == 0) {
224+
// sort by pt so files can be compared
225+
sorted_by_pt(final_jets);
225226
fprintf(dump_fh, "Jets in processed event %zu\n", ievt + 1);
226227

227228
// print out the details for each jet

0 commit comments

Comments
 (0)