Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DQM monitor element of Th2poly #14

Open
wants to merge 5 commits into
base: index128
Choose a base branch
from
Open

Conversation

ywkao
Copy link

@ywkao ywkao commented Jun 8, 2023

This PR introduces a new type of DQM MonitorElement, TH2Poly, for HGCal DQM in the future. This feature allows the display of polygonal histograms on the CMS DQM GUI. As a demonstration, a wafer map can be displayed like the screenshot here [1].

TH2Poly is a 2D histogram class inherited from TH2. Polygonal bins, defined by TGraph, can be loaded using the AddBin() method. After setting up the polygonal bins, a TH2Poly object can store information through Fill() or SetBinContent().

A workflow for creating polygonal histograms looks like this:
DQM Service -> DQM EDAnalyzer -> CMS DQM GUI

An implementation of TH2Poly in DQM Service and MonitorElement is necessary to display the polygonal histograms. It involves updates on two repositories: dqmgui_prod and cmssw. The idea is implemented in a user branch of cmssw [2]. From the branch, monitor elements of the TH2Poly object can be stored in a DQM root file [3]. We will prepare another pull request to cmssw soon.

A related issue to this PR can be found here, #13

@pfs, @hqucms

[1] https://ykao.web.cern.ch/ykao/raw_data_handling/hgcal_dqm_gui/screenshot_demo_th2poly_wafermap.png
[2] ywkao/cmssw@d9e70fc
[3] A DQM root file: /afs/cern.ch/work/y/ykao/public/example_HGCAL_DQM/DQM_V0001_HGCAL_R000123469.root

@nothingface0
Copy link
Contributor

@ywkao Now that cms-sw/cmssw#41932 looks good, could you update this PR as well?

We will be testing it after the christmas break.

@ywkao
Copy link
Author

ywkao commented Dec 6, 2024

No problems. I will update the PR this month.

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