Skip to content

Commit d425381

Browse files
authored
Merge pull request #49319 from smuzaffar/fix-root639-histogram-delete
No need to explicitly delete the pre-existsing histogram for ROOT >= 6.38
2 parents 42aa6ac + c40a569 commit d425381

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)