Skip to content

Commit c6e3c2c

Browse files
authored
ITS: Stacked cluster center maps for IB layers (#2624)
* Cluster maps for IB layer by layer * dummy commit
1 parent 74982ed commit c6e3c2c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Modules/ITS/include/ITS/ITSClusterTask.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class ITSClusterTask : public TaskInterface
112112
// General
113113
TH2D* hClusterVsBunchCrossing = nullptr;
114114
std::unique_ptr<TH2DRatio> mGeneralOccupancy = nullptr;
115+
TH2D* hClusterCenterMap[3] = { nullptr }; // only IB
115116

116117
// Fine checks
117118

Modules/ITS/src/ITSClusterTask.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ITSClusterTask::~ITSClusterTask()
5050
continue;
5151

5252
if (iLayer < NLayerIB) {
53+
delete hClusterCenterMap[iLayer];
5354
delete hLongClustersPerChip[iLayer];
5455
delete hMultPerChipWhenLongClusters[iLayer];
5556
}
@@ -92,7 +93,7 @@ void ITSClusterTask::initialize(o2::framework::InitContext& /*ctx*/)
9293

9394
getJsonParameters();
9495

95-
// create binning for fine checks
96+
// Create binning for fine checks
9697
setRphiBinningIB();
9798
setZBinningIB();
9899
setRphiBinningOB();
@@ -246,6 +247,7 @@ void ITSClusterTask::monitorData(o2::framework::ProcessingContext& ctx)
246247
hAverageClusterOccupancySummaryIB[lay]->getNum()->Fill(chip, sta);
247248
hAverageClusterSizeSummaryIB[lay]->getNum()->Fill(chip, sta, (double)npix);
248249
hAverageClusterSizeSummaryIB[lay]->getDen()->Fill(chip, sta, 1.);
250+
hClusterCenterMap[lay]->Fill(cluster.getCol(), cluster.getRow());
249251
if (mDoPublish1DSummary == 1) {
250252
hClusterTopologySummaryIB[lay][sta][chip]->Fill(ClusterID);
251253
}
@@ -446,6 +448,7 @@ void ITSClusterTask::reset()
446448
hClusterTopologyLayerSummary[iLayer]->Reset();
447449

448450
if (iLayer < NLayerIB) {
451+
hClusterCenterMap[iLayer]->Reset();
449452
hLongClustersPerChip[iLayer]->Reset();
450453
hMultPerChipWhenLongClusters[iLayer]->Reset();
451454
hAverageClusterOccupancySummaryIB[iLayer]->Reset();
@@ -511,6 +514,11 @@ void ITSClusterTask::createAllHistos()
511514
continue;
512515

513516
if (iLayer < NLayerIB) {
517+
hClusterCenterMap[iLayer] = new TH2D(Form("ClusterCenterMapL%d", iLayer), Form("Stacked map of cluster centers for all L%d chips;Column;Row", iLayer), 1024, -0.5, 1023.5, 512, -0.5, 511.5);
518+
addObject(hClusterCenterMap[iLayer]);
519+
formatAxes(hClusterCenterMap[iLayer], "Column", "Row", 1, 1.10);
520+
hClusterCenterMap[iLayer]->SetStats(0);
521+
514522
hLongClustersPerChip[iLayer] = new TH2D(Form("Anomalies/Layer%d/LongClusters", iLayer), Form("Layer%d/LongClusters", iLayer), ChipBoundary[iLayer + 1] - ChipBoundary[iLayer], ChipBoundary[iLayer], ChipBoundary[iLayer + 1], 41, 0, 41);
515523
hMultPerChipWhenLongClusters[iLayer] = new TH2D(Form("Anomalies/Layer%d/HitsWhenLongClusters", iLayer), Form("Layer%d/HitsWhenLongClusters", iLayer), ChipBoundary[iLayer + 1] - ChipBoundary[iLayer], ChipBoundary[iLayer], ChipBoundary[iLayer + 1], 250, 0, 40000);
516524
addObject(hLongClustersPerChip[iLayer]);

0 commit comments

Comments
 (0)