Skip to content

Commit 93e369d

Browse files
committed
remove THStack
1 parent a0c4cac commit 93e369d

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

Modules/MFT/include/MFT/QcMFTClusterTask.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <TH2F.h>
2727
#include <TCanvas.h>
2828
#include <TString.h>
29-
#include <THStack.h>
3029
#include <DataFormatsITSMFT/TopologyDictionary.h>
3130
#include "ReconstructionDataFormats/BaseCluster.h"
3231
#include "MFTBase/GeometryTGeo.h"
@@ -84,7 +83,6 @@ class QcMFTClusterTask /*final*/ : public TaskInterface // todo add back the "fi
8483
std::vector<std::unique_ptr<TH2FRatio>> mClusterXYinLayer;
8584
std::vector<std::unique_ptr<TH1FRatio>> mClusterRinLayer;
8685
std::unique_ptr<TCanvas> mClusterRinAllLayers = nullptr;
87-
std::unique_ptr<THStack> mClusterRinAllLayersStack = nullptr;
8886

8987
std::unique_ptr<TH1FRatio> mClustersROFSize = nullptr;
9088
std::unique_ptr<TH1FRatio> mClustersBC = nullptr;

Modules/MFT/src/QcMFTClusterTask.cxx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,6 @@ void QcMFTClusterTask::initialize(o2::framework::InitContext& /*ctx*/)
259259
// canvas for for cluster R in all layers
260260
mClusterRinAllLayers = std::make_unique<TCanvas>("mClusterRinAllLayers", "Cluster Radial Position in All MFT Layers");
261261
getObjectsManager()->startPublishing(mClusterRinAllLayers.get());
262-
mClusterRinAllLayersStack = std::make_unique<THStack>("mClusterRinAllLayersStack", "Cluster Radial Position in All MFT Layers; r (cm); # entries");
263-
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
264-
mClusterRinLayer[nMFTLayer]->getNum()->SetLineColor(TColor::GetColor(mColors[nMFTLayer]));
265-
mClusterRinLayer[nMFTLayer]->getNum()->SetTitle(Form("D%dF%d", static_cast<int>(std::floor(nMFTLayer / 2.)), nMFTLayer % 2 == 0 ? 0 : 1));
266-
mClusterRinAllLayersStack->Add(mClusterRinLayer[nMFTLayer]->getNum());
267-
}
268262
}
269263
}
270264

@@ -473,11 +467,9 @@ void QcMFTClusterTask::getChipMapData()
473467

474468
void QcMFTClusterTask::updateCanvas()
475469
{
476-
mClusterRinAllLayers->cd();
477470
mClusterRinAllLayers->Clear();
478-
mClusterRinAllLayersStack->Draw("nostack hist");
471+
mClusterRinAllLayers->cd();
479472
mClusterRinAllLayers->Update();
480-
gPad->BuildLegend(0.83, 0.50, 0.90, 0.90, "", "l");
481473
}
482474

483475
} // namespace o2::quality_control_modules::mft

0 commit comments

Comments
 (0)