Skip to content

Commit 711db3a

Browse files
authored
Fixed_FractionEmptyLanesPlot (#1907)
1 parent be1658f commit 711db3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/ITS/src/ITSClusterTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void ITSClusterTask::monitorData(o2::framework::ProcessingContext& ctx)
246246
}
247247

248248
mNRofs += clusRofArr.size(); // USED to calculate occupancy for the whole run
249-
249+
std::fill(&mNLaneEmpty[0], &mNLaneEmpty[0] + 4, 0);
250250
if (mNRofs > 0) {
251251
for (int iLayer = 0; iLayer < NLayer; iLayer++) {
252252

@@ -354,7 +354,6 @@ void ITSClusterTask::reset()
354354
hClusterVsBunchCrossing->Reset();
355355
hEmptyLaneFractionGlobal->Reset();
356356
mGeneralOccupancy->Reset();
357-
358357
for (int iLayer = 0; iLayer < NLayer; iLayer++) {
359358
if (!mEnableLayers[iLayer])
360359
continue;
@@ -404,6 +403,7 @@ void ITSClusterTask::createAllHistos()
404403

405404
hEmptyLaneFractionGlobal = new TH1D("EmptyLaneFractionGlobal", "Empty Lane Fraction Global", 4, 0, 4);
406405
hEmptyLaneFractionGlobal->SetTitle("Empty Lane /All Lane ");
406+
hEmptyLaneFractionGlobal->SetBit(TH1::kIsAverage);
407407
addObject(hEmptyLaneFractionGlobal);
408408
formatAxes(hEmptyLaneFractionGlobal, "", "Fraction of empty lane", 1, 1.10);
409409
for (int i = 0; i < NFlags; i++) {

0 commit comments

Comments
 (0)