Skip to content

Conversation

@ljuckett
Copy link

@ljuckett ljuckett commented May 5, 2025

Adds workspace under Monte Carlo for Phase-2 MC Validation.

File Changes:
dqmgui/workspaces-relval.py - Added MC Tk Phase-2 workspace at slot 31 to be under exisitng Tk MC workspace. Incremented other workspace slot numbers to accommodate.
dqmgui/layouts/p2tkmc_relval-layouts.py - Created Layouts for MC Tk Phase-2.
dqmgui/server-conf-relval.py - Added p2tkmc_relval-layouts.py to LAYOUTS.

Layouts are numbered:

  • 0xx: IT Clusters
  • 1xx: IT RecHit
  • 2xx: IT TrackingRecHit
  • 3xx: OT Clusters
  • 4xx: OT L1Tracks
  • 5xx: OT RecHit

New workspace in GUI:
RelVal New Workspace GUI

Quick Collection:
RelVal P2 QuickCollection

Included folders (NOTE: this is from a ROOT file generated using phase-2 code that is not in an official CMSSW release yet):
RelVal Validation Folders in GUI

@ljuckett
Copy link
Author

Changes:
Added more layouts for TEDD rings - These are in folders in Layouts/Phase2Tk/TEDD[1/2][+/-]
Added OT TrackingRecHit layouts
Changed a few layout names to be clearer
Number system change:
0XX - IT Clusters
1XX - IT RecHit
2XX - IT TrackingRecHit
3XX - OT Clusters
4XX - OT RecHit
5XX - OT TrackingRecHit
6XX - OT L1Track

@ljuckett ljuckett marked this pull request as ready for review May 27, 2025 09:31
@ljuckett
Copy link
Author

Possibly important to note: "Add workspace" may be slightly misleading. The workspace existed but was unused. I have corrected the folder names and added layouts & quick collection to the already existing workspace.

@tomalin
Copy link

tomalin commented Jun 4, 2025

This looks very nice, but I do have one significant comment.
The QuickCollection needs to have sufficiently few histograms that someone can understand in a few minutes if the dataset is OK or not. This PR seems to add about 200 histograms, which is really too many to allow this. (In addition, the histograms will be so small, that it will not be possible to really examine them without painful zooming in and sliding around).
The QuickCollections used at Phase 1 don't look terribly well designed to me, but most of them only have about 50 histograms, (e.g. see https://tinyurl.com/25ttq6ck and https://tinyurl.com/25a2mzfk ) which seems to me a better target to aim for. I prefer that we start with too few, and add to them if required later, than start with too many. (In addition, recall that Tracker will ultimately also need histograms for hte offline track reco etc., which may also need to go into the same QuickCollection).

@ljuckett
Copy link
Author

ljuckett commented Jun 6, 2025

This looks very nice, but I do have one significant comment. The QuickCollection needs to have sufficiently few histograms that someone can understand in a few minutes if the dataset is OK or not. This PR seems to add about 200 histograms, which is really too many to allow this. (In addition, the histograms will be so small, that it will not be possible to really examine them without painful zooming in and sliding around).

I agree there's a lot going on in QC but at the moment we don't have histograms being made that can summarise it better. The QC only has basic Delta X & Y for each barrel layer/ IT endcap ring and nothing for TEDDs (they are on the layout page). If something affects only one layer or only one of clusters/RecHit/TrackingRecHit, QC has the bare minimum information available to detect it...

With the ability to overlay the previous release's plots that Alessandro mentioned and the "play" button on the UI that cycles through the layouts in full screen, I think the validation process would only take 5-10 minutes each time. No zooming or scrolling needed.

Perhaps when we make the TEDD summary plots discussed in the mattermost channel we could also do barrel summary, EPix summary, etc. and make those the QC display. If those summaries become To Dos for months, this current QC will still work.

@tomalin
Copy link

tomalin commented Jun 6, 2025

This looks very nice, but I do have one significant comment. The QuickCollection needs to have sufficiently few histograms that someone can understand in a few minutes if the dataset is OK or not. This PR seems to add about 200 histograms, which is really too many to allow this. (In addition, the histograms will be so small, that it will not be possible to really examine them without painful zooming in and sliding around).

I agree there's a lot going on in QC but at the moment we don't have histograms being made that can summarise it better. The QC only has basic Delta X & Y for each barrel layer/ IT endcap ring and nothing for TEDDs (they are on the layout page). If something affects only one layer or only one of clusters/RecHit/TrackingRecHit, QC has the bare minimum information available to detect it...

With the ability to overlay the previous release's plots that Alessandro mentioned and the "play" button on the UI that cycles through the layouts in full screen, I think the validation process would only take 5-10 minutes each time. No zooming or scrolling needed.

Perhaps when we make the TEDD summary plots discussed in the mattermost channel we could also do barrel summary, EPix summary, etc. and make those the QC display. If those summaries become To Dos for months, this current QC will still work.

The P1 MC validation QuickCollection plots (e.g. https://tinyurl.com/25ttq6ck ) do not have separate histograms for each layer. They just have separate histograms for different large scale structures of the tracker, such as pixel barrel, strip barrel, pixel endcap etc. I assume the logic is that (1) It's quite hard to imagine a bug in the MC that would cause just one individual layer to go wrong; (2) If one layer does go wrong, it will be sufficient to give a visible discrepancy in the plot of these larger scale structures.
If the QuickCollection is already histogramming individual layers, then one wonders how much more detailed the detailed plots will be. (N.B. Whereas for DATA, it is possible that an individual tracker module goes wrong, and we want to detect that, this is most unlikely in MC, so the level of granularity required for MC validation is lower).

'description': "Ring 10 Delta Y Strip"}]
)

phase2tkmclayout(dqmitems, "TEDD1-/Ring11/514 - OT TrackingRecHit Endcap MINUS TEDD1 Ring11 Strip Delta X and Y",
Copy link

Choose a reason for hiding this comment

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

Is this new code really adding about 2000 lines of python to the repo, with one line for every single histogram we need to add? Is there no clever way to have loops or add folders of histograms?

Copy link
Author

Choose a reason for hiding this comment

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

I have created the equivalent code using loops. It is much shorter although a bit harder to add to (you can still do it the traditional way, as shown by the L1Track layouts).

Let me know what you think.

# ----- END LOOP ------
# L1 TRACK
phase2tkmclayout(dqmitems, "600 - OT L1Track Eta Efficiency and Resolution",
[{'path':"TrackerPhase2OTL1TrackV/Nominal_L1TF/FinalEfficiency/EtaEfficiency",
Copy link

Choose a reason for hiding this comment

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

Could this be shortened by defining a string equal to "TrackerPhase2OTL1TrackV/Nominal_L1TF/FinalEfficiency"?

Copy link
Author

Choose a reason for hiding this comment

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

I have added a loop for the L1T histograms as well

@ljuckett ljuckett marked this pull request as draft October 1, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants