Skip to content

Commit c40a569

Browse files
committed
No need to explicitly delete the pre-existsing histogram for ROOT 6.38
1 parent 63a2f43 commit c40a569

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Alignment/OfflineValidation/bin/jetHtPlotter.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ std::vector<double> scaleGraphByLuminosity(TGraphErrors *runGraph,
362362
} // Loop over all runs in original histogram
363363

364364
// Delete remaining old content and replace it with new one calculated from luminosities
365+
#if ROOT_VERSION_CODE < ROOT_VERSION(6, 38, 0)
365366
runGraph->GetHistogram()->Delete();
367+
#endif
366368
runGraph->SetHistogram(nullptr);
367369
for (int iRun = 0; iRun < nRuns; iRun++) {
368370
runGraph->SetPoint(iRun, xAxisValues.at(iRun), yAxisValues.at(iRun));

0 commit comments

Comments
 (0)