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

MiniAOD for InputGenJetsParticleSelector #5731

Conversation

ferencek
Copy link
Contributor

@ferencek ferencek commented Oct 7, 2014

This PR adapts the InputGenJetsParticleSelector so it also works with miniAOD. The main difference between AOD and miniAOD is that in miniAOD a subset of GenParticles is stored in the following two collections:

  • prunedGenParticles
  • packedGenParticles

and InputGenJetsParticleSelector needs to access both collections in order to perform the same selection of GenParticles as in AOD where all GenParticles are stored in one collection, genParticles. Attached are a few comparison plots. Small differences between AOD and miniAOD are expected due to the loss of precision in the GenParticle (un)packing process.

genjetscomparison_1
genjetscomparison_2
genjetscomparison_3
genjetscomparison_4

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2014

A new Pull Request was created by @ferencek (Dinko Ferencek) for CMSSW_7_2_X.

MiniAOD for InputGenJetsParticleSelector

It involves the following packages:

RecoJets/JetProducers

@cmsbuild, @nclopezo, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks.
@yslai, @TaiSakuma, @nhanvtran, @schoef this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@StoyanStoynev
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2014

-1
Tested at: f7e5bb5
When I ran the RelVals I found an error in the following worklfows:
1306.0 step3

runTheMatrix-results/1306.0_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15/step3_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15.log
----- Begin Fatal Exception 08-Oct-2014 11:35:59 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing run: 1 lumi: 1 event: 1
   [1] Running path 'prevalidation_step'
   [2] Calling event method for module TauValGenPRefSelector/'kinematicSelectedTauValDenominatorZEE'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: edm::RefVector,reco::GenParticle,edm::refhelper::FindUsingAdvance,reco::GenParticle> >
Looking for module label: selectStableElectrons
Looking for productInstanceName: 
   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.
----- End Fatal Exception -------------------------------------------------

25.0 step3

runTheMatrix-results/25.0_TTbar+TTbar+DIGI+RECO+HARVEST+ALCATT/step3_TTbar+TTbar+DIGI+RECO+HARVEST+ALCATT.log
----- Begin Fatal Exception 08-Oct-2014 11:42:48 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing run: 1 lumi: 1 event: 1
   [1] Running path 'prevalidation_step'
   [2] Calling event method for module TauValGenPRefSelector/'kinematicSelectedTauValDenominatorZEE'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: edm::RefVector,reco::GenParticle,edm::refhelper::FindUsingAdvance,reco::GenParticle> >
Looking for module label: selectStableElectrons
Looking for productInstanceName: 
   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.
----- End Fatal Exception -------------------------------------------------

9.0 step3

runTheMatrix-results/9.0_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST/step3_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST.log
----- Begin Fatal Exception 08-Oct-2014 11:42:48 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing run: 1 lumi: 1 event: 1
   [1] Running path 'prevalidation_step'
   [2] Calling event method for module TauValGenPRefSelector/'kinematicSelectedTauValDenominatorZEE'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: edm::RefVector,reco::GenParticle,edm::refhelper::FindUsingAdvance,reco::GenParticle> >
Looking for module label: selectStableElectrons
Looking for productInstanceName: 
   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.
----- End Fatal Exception -------------------------------------------------

25202.0 step3

runTheMatrix-results/25202.0_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVEST+MINIAODMC/step3_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVEST+MINIAODMC.log
----- Begin Fatal Exception 08-Oct-2014 11:46:46 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing run: 1 lumi: 1 event: 1
   [1] Running path 'prevalidation_step'
   [2] Calling event method for module TauValGenPRefSelector/'kinematicSelectedTauValDenominatorZEE'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: edm::RefVector,reco::GenParticle,edm::refhelper::FindUsingAdvance,reco::GenParticle> >
Looking for module label: selectStableElectrons
Looking for productInstanceName: 
   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.
----- End Fatal Exception -------------------------------------------------

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5731/1120/summary.html

@ferencek
Copy link
Contributor Author

ferencek commented Oct 8, 2014

The updated selector code is now fully Candidate-based and no longer uses the GenParticle class. @jpavel, can the tau validation workflow be adapted to the updated selector code?

@ferencek
Copy link
Contributor Author

ferencek commented Oct 8, 2014

@jpavel, please check that the updated tau validation code is OK. @cmsbuild, please re-run the tests. Thanks.

@StoyanStoynev
Copy link
Contributor

+1
For 89ad36d .
Based on jenkins and tests I performed - no diffs for RECO. I tested the previous tag 0487f7f (only difference is added comment) on top of CMSSW_7_2_X_2014-10-04-1400, short matrix as well as wf 202, 25202 (ttbar) and 38 (QCD).

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine). @nclopezo can you please take care of it?

davidlange6 added a commit that referenced this pull request Oct 15, 2014
…Selector_from-CMSSW_7_2_0_pre7

MiniAOD for InputGenJetsParticleSelector
@davidlange6 davidlange6 merged commit 9430230 into cms-sw:CMSSW_7_2_X Oct 15, 2014
@ferencek ferencek deleted the MiniAODForInputGenJetsParticleSelector_from-CMSSW_7_2_0_pre7 branch October 15, 2014 16:14
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.

None yet

7 participants