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

HLTTauDQM: support for PatTau ref objects #45648

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

slehti
Copy link
Contributor

@slehti slehti commented Aug 6, 2024

PR description:

Added a creation of pat taus and using them as offline reference objects. That way we can have tau discriminators available, and better offline tau reference object selection.

The DQM plots contain now two sets, one with default medium working point tau against jet selection, and another with decayModeFinding only. The latter plots are named with string 'LowPurity'.

As the offline tau selection changes, expecting differences between new and old plots, however, old plots and new low purity plots should be identical.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

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

It involves the following packages:

  • DQMOffline/Trigger (dqm)

@antoniovagnerini, @cmsbuild, @nothingface0, @rvenditti, @syuvivida, @tjavaid can you please review it and eventually sign? Thanks.
@Fedespring, @HuguesBrun, @cericeci, @jhgoh, @missirol, @mmusich, @mtosi, @rociovilar, @trocino this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor

mmusich commented Aug 6, 2024

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

-1

Failed Tests: RelVals RelVals-INPUT
Size: This PR adds an extra 12KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-228323/40804/summary.html
COMMIT: 9cd6573
CMSSW: CMSSW_14_1_X_2024-08-06-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/45648/40804/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 06-Aug-2024 18:48:08 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 160960 lumi: 277 event: 10001082 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 06-Aug-2024 18:49:55 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 06-Aug-2024 18:51:19 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 509 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------

RelVals-INPUT

  • 4.224.22_RunCosmics2011A/step2_RunCosmics2011A.log
  • 134.813134.813_RunCosmics2015C/step2_RunCosmics2015C.log
  • 136.733136.733_RunCosmics2016B/step2_RunCosmics2016B.log
Expand to see more relval errors ...

@cmsbuild
Copy link
Contributor

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

@cmsbuild cmsbuild modified the milestones: CMSSW_14_1_X, CMSSW_14_2_X Aug 27, 2024
@slehti
Copy link
Contributor Author

slehti commented Aug 29, 2024

Tested this PR with 2024G, and it worked. Tried to test with 2011A Cosmics, but it seems the files are only on tape with no user access. How to proceed with this PR?

@cmsbuild cmsbuild modified the milestones: CMSSW_14_1_X, CMSSW_14_2_X Aug 29, 2024
@mmusich
Copy link
Contributor

mmusich commented Aug 29, 2024

How to proceed with this PR?

I would suggest trying one of the workflows that failed, e.g.: runTheMatrix.py - l 7.3 --ibeos

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #45648 was updated. @antoniovagnerini, @cmsbuild, @nothingface0, @rvenditti, @syuvivida, @tjavaid can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Sep 10, 2024

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-228323/41441/summary.html
COMMIT: 279a67e
CMSSW: CMSSW_14_2_X_2024-09-09-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/45648/41441/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 624 lines to the logs
  • Reco comparison results: 164 differences found in the comparisons
  • DQMHistoTests: Total files compared: 44
  • DQMHistoTests: Total histograms compared: 3331158
  • DQMHistoTests: Total failures: 6349
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3324789
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1778.4330000000002 KiB( 43 files compared)
  • DQMHistoSizes: changed ( 1000.0 ): 24.534 KiB HLT/TAU
  • DQMHistoSizes: changed ( 12834.0,... ): 247.036 KiB HLT/TAU
  • DQMHistoSizes: changed ( 139.001 ): 7.742 KiB HLT/TAU
  • DQMHistoSizes: changed ( 4.22,... ): 5.635 KiB HLT/TAU
  • Checked 193 log files, 163 edm output root files, 44 DQM output files
  • TriggerResults: no differences found

),
doPFTaus = cms.untracked.bool(True),
ptMin = cms.untracked.double(15.0),
etaMin = cms.untracked.double(-2.5),
etaMax = cms.untracked.double(2.5),
phiMin = cms.untracked.double(-3.15),
phiMax = cms.untracked.double(3.15),
PFTauProducer = cms.untracked.InputTag("hpsPFTauProducer")
#PFTauProducer = cms.untracked.InputTag("hpsPFTauProducer")

Choose a reason for hiding this comment

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

Is this commented out line really needed, if not please remove

@antoniovagnerini
Copy link

@slehti can you provide any link to the validation plots for this PR ?

@antoniovagnerini
Copy link

gentle ping @slehti to provide the PR validation plots

@slehti
Copy link
Contributor Author

slehti commented Oct 3, 2024

Here are some plots for the L2tau efficiency. However, runTheMatrix.py keeps giving errors, and i'm out of ideas how to make it work.
Figure 1: Offline tau selection with old AOD decayModeFinding vs new AOD decayModeFindingNewDMs
Figure 2: Offline tau selection with AOD decayModeFindingNewDMs vs Pat decayModeFindingNewDMs
Figure 3: Offline tau selection with Pat decayModeFindingNewDMs vs new low purity tau
Figure 4: Offline tau selection with Pat decayModeFindingNewDMs vs new tau
So, old tau plots correspond to new low purity tau plots.
New tau plots vs old tau plots: changes expected, as the tau selection uses also a tau id discriminator, available in Pat taus.
L2TrigTauEtEff_AOD_decayModeFinding_vs_NewDMs
L2TrigTauEtEff_AOD_vs_Pat
L2TrigTauEtEff_Pat_NewDMs_vs_PFTausLowPurity
L2TrigTauEtEff_Pat_NewDMs_vs_PFTaus

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2024

Pull request #45648 was updated. @antoniovagnerini, @cmsbuild, @nothingface0, @rvenditti, @syuvivida, @tjavaid can you please check and sign again.

@antoniovagnerini
Copy link

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2024

-1

Failed Tests: RelVals RelVals-INPUT
Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-228323/41919/summary.html
COMMIT: 6792b7d
CMSSW: CMSSW_14_2_X_2024-10-03-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/45648/41919/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 03-Oct-2024 17:13:29 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 160960 lumi: 277 event: 10001082 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 03-Oct-2024 17:15:27 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 03-Oct-2024 17:16:42 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 509 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module HLTTauRefProducer/'TauRefProducerLowPurity'
   [3] Calling method for module PATTauProducer/'patTaus'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::BaseTau
Looking for module label: hpsPFTauProducer
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------

RelVals-INPUT

  • 4.224.22_RunCosmics2011A/step2_RunCosmics2011A.log
  • 134.813134.813_RunCosmics2015C/step2_RunCosmics2015C.log
  • 136.733136.733_RunCosmics2016B/step2_RunCosmics2016B.log
Expand to see more relval errors ...

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