Skip to content

Conversation

@jprendi
Copy link
Contributor

@jprendi jprendi commented Jun 24, 2025

PR description:

Following the discussion at CMSHLT-3571 and last weeks HLT Scouting meeting , we are introducing a new HLT Scouting DQM online client to include the new DQMOnlineScoutingstream. We are adding the client and adapting BuildFile.xml to include unit testing for the new client as well.

PR validation:

This PR has been prepared starting from CMSSW_15_1_X_2025-06-23-2300 :

cmsrel CMSSW_15_1_X_2025-06-23-2300 
cd CMSSW_15_1_X_2025-06-23-2300/src
cmsenv
git cms-init
git cms-addpkg DQM/Integration DQM/HLTEvF

Running git cms-checkdeps -a -A shows that there are no further dependencies. For validation, I ran:

scram b
scram b code-checks
scram b code-format
scram b

What is left to do is to validate the online DQM client by running it on a DQMOnlineScouting file from the new stream !

This is not backport but it will be backported to 15.0.X for 2025 data taking operations.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 24, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

process.dqmcommon = cms.Sequence(process.dqmEnv
* process.dqmSaver)#*process.dqmSaverPB)

process.p = cms.Path(process.dqmcommon * process.scoutingCollectionMonitor)
Copy link
Contributor

Choose a reason for hiding this comment

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

@silviodonato @elfontan shall we run more than this module in the DQM sequence?
E.g. also HLTriggerOffline/Scouting/python/ScoutingMuonTriggerAnalyzer_cfi.py seems to be possible to run directly on the DQMOnlineScouting stream. Any other module?
Thanks in advance.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mmusich I tried to add the other scouting DQM modules to @jprendi's code and running on scouting data.

  • EGM DQM doesn't work because it relies on slimmedElectrons
  • JME DQM can works if you provide a L1GtTriggerMenu record (note this is the Run-1 GT !). It is used in this part of code. I hope that is accidentally still working properly because likely the L1 technical trigger haven't changed trigger number since Run-1.
    In addition these two JetMETDQMDCSFilter sends a lot of warnings because both scalersRawToDigi and onlineMetaDataDigis are missing (see lines).
    Anyway, I managed to get not-empty plots
  • MUO DQM works without complains.

Summary:

process.GlobalTag.toGet.append(
 cms.PSet(
 record = cms.string("L1GtTriggerMenuRcd"),
 tag = cms.string('L1GtTriggerMenu_CRAFT09_hlt'),
 )
)

process.load("DQMOffline/HLTScouting/HLTScoutingDqmOffline_cff")

process.hltScoutingDqmOffline = cms.Sequence(process.hltScoutingMuonDqmOffline+process.hltScoutingCollectionMonitor +process.hltScoutingJetDqmOffline+process.hltScoutingCollectionMonitor) 

process.p = cms.Path(process.dqmcommon * process.scoutingCollectionMonitor * process.hltScoutingDqmOffline)

works.

From the scouting point of view, it is better to include both JME e MUO.

Begin processing the 301st record. Run 393448, Event 3730472772, LumiSection 1606 on stream 0 at 25-Jun-2025 16:50:01.397 CEST
%MSG-e JetMETDQMDCSFilter:  JetAnalyzer:jetDQMAnalyzerAk4ScoutingCleaned  25-Jun-2025 16:50:01 CEST Run: 393448 Event: 3730472772
Error! can't get the product, neither DCSRecord, nor scalersRawToDigi: accept in any case!
%MSG
%MSG-e JetMETDQMDCSFilter:  JetAnalyzer:jetDQMAnalyzerAk4ScoutingCleaned  25-Jun-2025 16:50:01 CEST Run: 393448 Event: 3730472772
Error! can't get the product, neither DCSRecord, nor scalersRawToDigi: accept in any case!
%MSG
%MSG-e JetMETDQMDCSFilter:  JetAnalyzer:jetDQMAnalyzerAk4ScoutingUncleaned  25-Jun-2025 16:50:01 CEST Run: 393448 Event: 3730472772
Error! can't get the product, neither DCSRecord, nor scalersRawToDigi: accept in any case!
%MSG
%MSG-e JetMETDQMDCSFilter:  JetAnalyzer:jetDQMAnalyzerAk4ScoutingUncleaned  25-Jun-2025 16:50:01 CEST Run: 393448 Event: 3730472772
Error! can't get the product, neither DCSRecord, nor scalersRawToDigi: accept in any case!
%MSG

@cms-sw/dqm-l2 is it a problem if the online DQM gives the 4 warnings above per each event?

(Meanwhile I will prepare a possible commit to Jessica's PR to include the other online DQM modules)

Copy link
Contributor

@mmusich mmusich Jun 25, 2025

Choose a reason for hiding this comment

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

@silviodonato

In addition these two JetMETDQMDCSFilter sends a lot of warnings because both scalersRawToDigi and onlineMetaDataDigis are missing (see lines).

I think we can get rid of that quite easily by saving the hltOnlineMetaDataDigis in the DQM stream.
We're still in time to change the event content if you open a ticket about it!

Copy link
Contributor

Choose a reason for hiding this comment

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

@mmusich @jprendi you can find the commit to add the MUO e JME DQM in
silviodonato@c492bb0

I managed to run it with

cmsRun scouting_dqm_sourceclient-live_cfg.py unitTest=True dataset=/ScoutingPFRun3/Run2025C-v1/HLTSCOUT runNumber=392175 minLumi=500 maxLumi=500

@mmusich do you think it is ok to append the missing L1GtTriggerMenuRcd in this way?

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, I will make a JIRA to include the hltOnlineMetaDataDigis.
We will need also need to add hltOnlineMetaDataDigis as a fallback of onlineMetaDataDigis

Copy link
Contributor

@mmusich mmusich Jun 25, 2025

Choose a reason for hiding this comment

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

@silviodonato

do you think it is ok to append the missing L1GtTriggerMenuRcd in this way?

clearly it's a nasty patch.
I discovered that there are elsewhere pieces of DQM that rely on the Legacy GT, see for example #46715.
I think we should strive to fix that in the longer term (everywhere in cmssw).
Feel free to open an issue about this instance.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #48398 was updated.

@mmusich
Copy link
Contributor

mmusich commented Jun 26, 2025

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aa531d/46929/summary.html
COMMIT: fe0c1a5
CMSSW: CMSSW_15_1_X_2025-06-25-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48398/46929/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 1 errors in the following unit tests:

---> test TestDQMOnlineClient-scouting_dqm_sourceclient had ERRORS

Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 4065619
  • DQMHistoTests: Total failures: 5
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4065594
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@silviodonato
Copy link
Contributor

The problem is that it is tested in an Express file, while we need the scouting objects

@mmusich
Copy link
Contributor

mmusich commented Jun 26, 2025

The problem is that it is tested in an Express file, while we need the scouting objects

We noticed, we are working to create a streamer file to use for the tests.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #48398 was updated. @Martin-Grunewald, @antoniovagnerini, @cmsbuild, @ctarricone, @mmusich, @rseidita can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Jun 27, 2025

please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 72KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aa531d/46973/summary.html
COMMIT: 80753ad
CMSSW: CMSSW_15_1_X_2025-06-27-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48398/46973/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aa531d/46973/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aa531d/46973/git-merge-result

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 4065619
  • DQMHistoTests: Total failures: 19
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4065580
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@mmusich
Copy link
Contributor

mmusich commented Jun 28, 2025

+hlt

  • new unit test TestDQMOnlineClient-scouting_dqm_sourceclient passes without warnings, see the log.

@mmusich
Copy link
Contributor

mmusich commented Jun 30, 2025

@cms-sw/dqm-l2 we will need this client for the upcoming pp data-taking after the small systems run. Can you have a look to this and the cms-data PR cms-data/DQM-Integration#11 ?

@antoniovagnerini
Copy link

+dqm

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @antoniovilela, @rappoccio, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)
Notice This PR was tested with additional Pull Request(s), please also merge them if necessary: cms-data/DQM-Integration#11

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 1, 2025

REMINDER @rappoccio, @sextonkennedy, @mandrenguyen, @antoniovilela: This PR was tested with cms-data/DQM-Integration#11, please check if they should be merged together

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 0247d13 into cms-sw:master Jul 1, 2025
11 checks passed
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.

6 participants