Skip to content

Commit

Permalink
use raw pointers instead of smart pointers to avoid segmentation faul…
Browse files Browse the repository at this point in the history
…t in JDrawer destructor
  • Loading branch information
mmusich committed Feb 8, 2023
1 parent eb133b4 commit afa5f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Alignment/OfflineValidation/bin/jetHtPlotter.cc
Expand Up @@ -46,7 +46,7 @@ void drawSingleHistogram(TH1D *histogram[kMaxFiles],
bool logScale,
int color[kMaxFiles]) {
// Create and setup the histogram drawer
const auto &drawer = std::make_unique<JDrawer>();
JDrawer *drawer = new JDrawer();
drawer->SetLogY(logScale);
drawer->SetTopMargin(0.08);

Expand Down Expand Up @@ -812,7 +812,7 @@ void jetHtPlotter(std::string configurationFileName) {
// Draw the plots
// ===============================================

const auto &drawer = std::make_unique<JDrawer>();
JDrawer *drawer = new JDrawer();
TLegend *legend[nMaxLegendColumns];
int columnOrder[nMaxLegendColumns];
bool noIovFound = true;
Expand Down

0 comments on commit afa5f33

Please sign in to comment.