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

GenHFHadronMatcher using the official JetFlavour tool for hadron-jet association #6012

Conversation

bartosik-hep
Copy link
Contributor

In the GenHFHadronMacther tool the custom implementation of ghost hadron injection replaced by the new official JetFlavour identification tool.
Improved chain scanning performance.
Fixed issues with low origin identification efficiency in Pythia8.

…ial new JetFlavour identification tool. Fixed issues with low origin identification efficiency in Pythia8.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @bartosik-desy (Nazar Bartosik) for CMSSW_7_3_X.

GenHFHadronMatcher using the official JetFlavour tool for hadron-jet association

It involves the following packages:

PhysicsTools/JetMCAlgos

@cmsbuild, @vadler, @nclopezo, @monttj can you please review it and eventually sign? Thanks.
@ferencek, @acaudron, @pvmulder, @imarches 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.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor



edm::Handle<reco::GenParticleCollection> genParticles;
evt.getByLabel(genParticles_, genParticles);
Copy link

Choose a reason for hiding this comment

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

getByToken

@vadler
Copy link

vadler commented Oct 28, 2014

-1
Tested on top of CMSSW_7_3_X_2014-10-27-1400.
I changed the input in PhysicsTools/JetMCAlgos/test/genHFHadronMatcher.py to '/store/relval/CMSSW_7_2_0_pre7/RelValTTbar_13/GEN-SIM-RECO/PU50ns_PRE_LS172_V12-v1/00000/1267B7ED-2F4E-E411-A0B9-0025905964A6.root' to make it run (at CERN), which works fine w/o this PR, but crashes now with

----- Begin Fatal Exception 28-Oct-2014 12:13:00 CET-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Validating configuration of module: class=GenHFHadronMatcher label='matchGenBHadron'
Exception Message:
Illegal parameters found in configuration.  The parameters are named:
 'genParticles'
 'jetFlavourInfos'
You could be trying to use parameter names that are not
allowed for this plugin or they could be misspelled.
----- End Fatal Exception -------------------------------------------------

@vadler
Copy link

vadler commented Oct 30, 2014

@bartosik-desy : The test runs fine now also for me.
Adjusting the number of events, I observe differences in the output file. Are these expected (to that amount)?

@bartosik-hep
Copy link
Contributor Author

@vadler I'm not sure what differences you are referring to. In principle changing the number of processed events will change the number of analysed hadrons. Since there can be some rare cases where hadrons originate from there can be some changes in branches including genBHadFlavour or genBHadIndex. But at high statistics those changes are negligible.

@vadler
Copy link

vadler commented Oct 30, 2014

@bartosik-desy : I simply compared arbitrary variables in genHFHadronMatcher_out.root, running on 100 events in both cases (where you increased it to 1000 with this PR). S. some examples below
genbhadindex
genchadjetindex

@bartosik-hep
Copy link
Contributor Author

@vadler These differences are small and expected due to change of the tool that is doing the hadron-jet matching and change of the default configuration to analyse only hadrons that are associated to jets, which improves performance and is enough for most of the analyses.

@vadler
Copy link

vadler commented Oct 30, 2014

@bartosik-desy : Thanx for the confirmation.

@vadler
Copy link

vadler commented Oct 30, 2014

+1
Tested on top of CMSSW_7_3_X_2014-10-29-1400.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged.

cmsbuild added a commit that referenced this pull request Oct 30, 2014
…HadronOrigin

GenHFHadronMatcher using the official JetFlavour tool for hadron-jet association
@cmsbuild cmsbuild merged commit 71f1750 into cms-sw:CMSSW_7_3_X Oct 30, 2014
@bartosik-hep bartosik-hep deleted the CMSSW_7_3_X_AT_genHFHadronOrigin branch October 30, 2014 23:21
bartosik-hep pushed a commit to cms-analysis-tools/cmssw that referenced this pull request Nov 9, 2014
…_genHFHadronOrigin

GenHFHadronMatcher using the official JetFlavour tool for hadron-jet association
cmsbuild added a commit that referenced this pull request Nov 18, 2014
…cher

Merge pull request #6012 from cms-analysis-tools/CMSSW_7_3_X_AT_genHFHad...
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

3 participants