@@ -40,6 +40,7 @@ ITSClusterTask::ITSClusterTask() : TaskInterface() {}
4040
4141ITSClusterTask::~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*/)
404407void 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
452456void 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