Skip to content

Commit 3a7194e

Browse files
committed
adhere to naming convention
1 parent d024c97 commit 3a7194e

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

Modules/MFT/include/MFT/QcMFTClusterTask.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class QcMFTClusterTask /*final*/ : public TaskInterface // todo add back the "fi
9595
int mOnlineQC;
9696

9797
const TString mColors[10] = { "#1F77B4", "#FF7F0E", "#2CA02C", "#D62728", "#8C564B", "#E377C2", "#9467BD", "#BCBD22", "#7F7F7F", "#17BECF" };
98-
TH1F* clonedHistos[10] = { nullptr };
99-
bool firstRun = true;
98+
TH1F* mClonedHistos[10] = { nullptr };
99+
bool mFirstRun = true;
100100

101101
// needed to construct the name and path of some histograms
102102
int mHalf[936] = { 0 };

Modules/MFT/src/QcMFTClusterTask.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -478,30 +478,30 @@ void QcMFTClusterTask::updateCanvas()
478478
mClusterRinAllLayers->cd();
479479

480480
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
481-
clonedHistos[nMFTLayer] = static_cast<TH1F*>(mClusterRinLayer[nMFTLayer]->getNum()->Clone());
482-
clonedHistos[nMFTLayer]->SetDirectory(nullptr);
483-
clonedHistos[nMFTLayer]->SetStats(0);
484-
clonedHistos[nMFTLayer]->SetLineColor(TColor::GetColor(mColors[nMFTLayer]));
481+
mClonedHistos[nMFTLayer] = static_cast<TH1F*>(mClusterRinLayer[nMFTLayer]->getNum()->Clone());
482+
mClonedHistos[nMFTLayer]->SetDirectory(nullptr);
483+
mClonedHistos[nMFTLayer]->SetStats(0);
484+
mClonedHistos[nMFTLayer]->SetLineColor(TColor::GetColor(mColors[nMFTLayer]));
485485
}
486486

487487
double maxY = 0;
488488
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
489-
double localMax = clonedHistos[nMFTLayer]->GetMaximum();
489+
double localMax = mClonedHistos[nMFTLayer]->GetMaximum();
490490
if (localMax > maxY) {
491491
maxY = localMax;
492492
}
493493
}
494494
mFrame->SetMaximum(maxY * 1.1);
495495
mFrame->Draw();
496496
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
497-
clonedHistos[nMFTLayer]->Draw("hist same");
497+
mClonedHistos[nMFTLayer]->Draw("hist same");
498498
}
499-
if (firstRun) {
499+
if (mFirstRun) {
500500
mLegend->Clear();
501501
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
502-
mLegend->AddEntry(clonedHistos[nMFTLayer], Form("D%dF%d", static_cast<int>(std::floor(nMFTLayer / 2.)), nMFTLayer % 2 == 0 ? 0 : 1), "l");
502+
mLegend->AddEntry(mClonedHistos[nMFTLayer], Form("D%dF%d", static_cast<int>(std::floor(nMFTLayer / 2.)), nMFTLayer % 2 == 0 ? 0 : 1), "l");
503503
}
504-
firstRun = false;
504+
mFirstRun = false;
505505
}
506506
mLegend->Draw();
507507
mClusterRinAllLayers->Update();

0 commit comments

Comments
 (0)