Skip to content

Conversation

@ljuckett
Copy link

PR description:

Adds 2 types of histogram to SiTrackerPhase2 OT Clusters:
PositionOfClusters_2S shows all strips that constitute clusters in 2S modules. Each module number has its own histogram named as PositionOfClusters_2S_. This creates 24 histograms in barrel layers 4-6 and the following amount in the endcaps:

TEDD 1
Ring 11: 52
Ring 12: 60
Ring 13: 64
Ring 14: 72
Ring 15: 76

TEDD 2
Ring 8: 52
Ring 9: 56
Ring 10: 64
Ring 11: 68
Ring 12: 76

image

Positive y bins are on the top sensor of the module, with negative y bins on the bottom. 1 or 2 indicates the half-sensor. It is possible to view the whole 2S module on one plot.

PositionOfClusters_2SLadder shows the total number of clusters in each module in a ladder. Similarly to the module view it produces different number of histograms per layer:
Layer 4: 48 ladders
Layer 5: 60 ladders
Layer 6: 76 ladders

This histogram shows modules before the collision point with a negative value and after the collision point with a positive value. Technically, it displays 2 ladders per plot as the - and + ladders are not the same structure.
image

These histograms are proposed to show data primarily from the cosmic rack.

PR was validated by running the Phase-2 tracker DQM and checking the ROOT result

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 26, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ljuckett for master.

It involves the following packages:

  • DQM/SiTrackerPhase2 (dqm)

@cmsbuild, @ctarricone, @gabrielmscampos, @nothingface0, @rseidita can you please review it and eventually sign? Thanks.
@arossi83, @mmusich, @richa2710, @sroychow this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@ljuckett ljuckett marked this pull request as draft December 11, 2025 11:52
@cmsbuild
Copy link
Contributor

Milestone for this pull request has been moved to CMSSW_16_1_X. Please open a backport if it should also go in to CMSSW_16_0_X.

@cmsbuild cmsbuild modified the milestones: CMSSW_16_0_X, CMSSW_16_1_X Dec 18, 2025
@ljuckett ljuckett marked this pull request as ready for review December 18, 2025 21:06
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #49482 was updated. @cmsbuild, @ctarricone, @gabrielmscampos, @nothingface0, @rseidita can you please check and sign again.

@nothingface0
Copy link
Contributor

@cmsbuild please test

Thanks @ljuckett !

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3e49ec/50360/summary.html
COMMIT: e93f1ab
CMSSW: CMSSW_16_0_X_2025-12-18-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/49482/50360/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 9 differences found in the comparisons
  • Reco comparison had 4 failed jobs
  • DQMHistoTests: Total files compared: 53
  • DQMHistoTests: Total histograms compared: 4280393
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4280361
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 378814.19999999995 KiB( 52 files compared)
  • DQMHistoSizes: changed ( 34434.0,... ): 37884.420 KiB HLT/TrackerPhase2OTCluster
  • DQMHistoSizes: changed ( 34434.0,... ): 17861.057 KiB TrackerPhase2OTCluster/EndCap_Side1
  • DQMHistoSizes: changed ( 34434.0,... ): 17861.057 KiB TrackerPhase2OTCluster/EndCap_Side2
  • DQMHistoSizes: changed ( 34434.0,... ): 2156.307 KiB TrackerPhase2OTCluster/Barrel
  • Checked 227 log files, 198 edm output root files, 53 DQM output files
  • TriggerResults: no differences found

Comment on lines 275 to 291
//Book the right number of histograms per layer
unsigned int nModules = 0;
unsigned int nLadders = 0;

TrackerGeometry::DetIdContainer theDetIds = tkGeom_->detIds();
for (auto detid : theDetIds) {
if (tkGeom_->getDetectorType(detid) == TrackerGeometry::ModuleType::Ph2SS &&
tTopo_->getOTLayerNumber(det_id) == tTopo_->getOTLayerNumber(detid)) {
if ((tTopo_->getOTLayerNumber(detid) < 100) ||
(tTopo_->getOTLayerNumber(detid) > 100 && tTopo_->tidRing(det_id) == tTopo_->tidRing(detid))) {
nModules = (tTopo_->module(detid) > nModules) ? tTopo_->module(detid) : nModules;
nLadders = ((tTopo_->getOTLayerNumber(detid) < 100) && (tTopo_->tobRod(detid) > nLadders))
? tTopo_->tobRod(detid)
: nLadders;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still find the current construct hard to digest (and also relies on this hardcoded 100 that come from here

} else if (id.subdetId() == SiStripSubdetector::TID) {
layer = 100 * tidSide(id) + tidWheel(id);

just to distinguish barrel / endcaps.
Would something lilke

Suggested change
//Book the right number of histograms per layer
unsigned int nModules = 0;
unsigned int nLadders = 0;
TrackerGeometry::DetIdContainer theDetIds = tkGeom_->detIds();
for (auto detid : theDetIds) {
if (tkGeom_->getDetectorType(detid) == TrackerGeometry::ModuleType::Ph2SS &&
tTopo_->getOTLayerNumber(det_id) == tTopo_->getOTLayerNumber(detid)) {
if ((tTopo_->getOTLayerNumber(detid) < 100) ||
(tTopo_->getOTLayerNumber(detid) > 100 && tTopo_->tidRing(det_id) == tTopo_->tidRing(detid))) {
nModules = (tTopo_->module(detid) > nModules) ? tTopo_->module(detid) : nModules;
nLadders = ((tTopo_->getOTLayerNumber(detid) < 100) && (tTopo_->tobRod(detid) > nLadders))
? tTopo_->tobRod(detid)
: nLadders;
}
}
}
unsigned int nModules = 0;
unsigned int nLadders = 0;
const auto refLayer = tTopo_->getOTLayerNumber(det_id);
const bool refIsBarrel = (det_id.subdetId() == SiStripSubdetector::TOB);
const int refRing = refIsBarrel ? -1 : tTopo_->tidRing(det_id);
for (const auto detid : tkGeom_->detIds()) {
if (tkGeom_->getDetectorType(detid) != TrackerGeometry::ModuleType::Ph2SS)
continue;
if (tTopo_->getOTLayerNumber(detid) != refLayer)
continue;
const bool isBarrel = (detid.subdetId() == SiStripSubdetector::TOB);
// Barrel: accept all
// Endcap: require same ring
if (!isBarrel && tTopo_->tidRing(detid) != refRing)
continue;
nModules = std::max(nModules, static_cast<unsigned int>(tTopo_->module(detid)));
if (isBarrel) {
nLadders = std::max(nLadders, static_cast<unsigned int>(tTopo_->tobRod(detid)));
}
}

work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good shout. I've implemented the changes

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #49482 was updated. @cmsbuild, @ctarricone, @gabrielmscampos, @nothingface0, @rseidita can you please check and sign again.

@nothingface0
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3e49ec/50374/summary.html
COMMIT: 735e8c8
CMSSW: CMSSW_16_1_X_2025-12-19-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/49482/50374/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
250202.181 step 3
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • You potentially added 15 lines to the logs
  • Reco comparison results: 7 differences found in the comparisons
  • Reco comparison had 4 failed jobs
  • DQMHistoTests: Total files compared: 53
  • DQMHistoTests: Total histograms compared: 4280393
  • DQMHistoTests: Total failures: 84
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4280289
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 378814.19999999995 KiB( 52 files compared)
  • DQMHistoSizes: changed ( 34434.0,... ): 37884.420 KiB HLT/TrackerPhase2OTCluster
  • DQMHistoSizes: changed ( 34434.0,... ): 17861.057 KiB TrackerPhase2OTCluster/EndCap_Side1
  • DQMHistoSizes: changed ( 34434.0,... ): 17861.057 KiB TrackerPhase2OTCluster/EndCap_Side2
  • DQMHistoSizes: changed ( 34434.0,... ): 2156.307 KiB TrackerPhase2OTCluster/Barrel
  • Checked 227 log files, 198 edm output root files, 53 DQM output files
  • TriggerResults: no differences found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants