Skip to content

Commit a996138

Browse files
committed
Adding TF counter
1 parent a1e4219 commit a996138

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Modules/ITS/include/ITS/ITSClusterTask.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ class ITSClusterTask : public TaskInterface
7777

7878
std::vector<TObject*> mPublishedObjects;
7979

80+
// Task
81+
TH1D* hTFCounter = nullptr;
82+
8083
// Inner barrel
8184
TH1D* hClusterTopologySummaryIB[NLayer][48][9] = { { { nullptr } } };
8285
TH1D* hGroupedClusterSizeSummaryIB[NLayer][48][9] = { { { nullptr } } };

Modules/ITS/src/ITSClusterTask.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ ITSClusterTask::ITSClusterTask() : TaskInterface() {}
4040

4141
ITSClusterTask::~ITSClusterTask()
4242
{
43+
delete hTFCounter;
4344
delete hEmptyLaneFractionGlobal;
4445
delete hClusterVsBunchCrossing;
4546

@@ -370,6 +371,8 @@ void ITSClusterTask::monitorData(o2::framework::ProcessingContext& ctx)
370371
}
371372
}
372373

374+
hTFCounter->Fill(0);
375+
373376
end = std::chrono::high_resolution_clock::now();
374377
difference = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
375378
ILOG(Debug, Devel) << "Time in QC Cluster Task: " << difference << ENDM;
@@ -404,6 +407,7 @@ void ITSClusterTask::endOfActivity(const Activity& /*activity*/)
404407
void ITSClusterTask::reset()
405408
{
406409
ILOG(Debug, Devel) << "Resetting the histograms" << ENDM;
410+
hTFCounter->Reset();
407411
hClusterVsBunchCrossing->Reset();
408412
hEmptyLaneFractionGlobal->Reset("ICES");
409413
mGeneralOccupancy->Reset();
@@ -451,6 +455,11 @@ void ITSClusterTask::reset()
451455

452456
void ITSClusterTask::createAllHistos()
453457
{
458+
hTFCounter = new TH1D("TFcounter", "TFcounter", 1, 0, 1);
459+
hTFCounter->SetTitle("TF counter");
460+
addObject(hTFCounter);
461+
formatAxes(hTFCounter, "", "TF", 1, 1.10);
462+
454463
hClusterVsBunchCrossing = new TH2D("BunchCrossingIDvsClusters", "BunchCrossingIDvsClusters", nBCbins, 0, 4095, 150, 0, 3000);
455464
hClusterVsBunchCrossing->SetTitle("#clusters vs BC id for clusters with npix > 2");
456465
addObject(hClusterVsBunchCrossing);

0 commit comments

Comments
 (0)