-
Notifications
You must be signed in to change notification settings - Fork 4.4k
PFCandidate no longer inherits from CompositeCandidate #38999
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
base: master
Are you sure you want to change the base?
Conversation
No code in CMSSW made use of the possible compositeness of the class.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38999/31468
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@jpata, @cmsbuild, @clacaputo can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
I did a test where I wrote a 10,000 event file containing only |
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Unit TestsI found errors in the following unit tests: ---> test runtestTqafTopJetCombination had ERRORS ---> test runtestTqafTopEventSelection had ERRORS ---> test runtestTqafTopTools had ERRORS ---> test runtestTqafTopHitFit had ERRORS and more ... RelVals
Expand to see more relval errors ...RelVals-INPUT
Expand to see more relval errors ...AddOn Tests
|
@pcanal So I changed the inheritance for |
So I wrote a simple EDAnalyzer which dumps the contents of a
So when reading back using the new format, energy is always 0 while pT, eta, and phi look fine. |
Which data member does the energy and pT (or eta or phi) correspond to? |
So
the value is supposed to be filled by the IO rule cmssw/DataFormats/Candidate/src/classes_def.xml Lines 9 to 12 in e52f99a
So it appears that when schema evolution is being used, that the necessary IO rules are not always being run. |
So pT, eta and phi come from |
So if I do
using the original format I get
but using the new format I get
|
I'm doing this using CMSSW_12_5_0_pre4 which is using a version of ROOT 6.24.07 |
Fair enough. It seems to have to do with the handling/passing-through to the base class. Let me try to write a standalone reproducer. |
I can reproduce locally. I am looking for a solution. |
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. |
ping (to make bot change milestone) |
Milestone for this pull request has been moved to CMSSW_15_0_X. Please open a backport if it should also go in to CMSSW_14_2_X. |
Milestone for this pull request has been moved to CMSSW_15_1_X. Please open a backport if it should also go in to CMSSW_15_0_X. |
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Unit TestsI found 8 errors in the following unit tests: ---> test runtestPhysicsToolsPatAlgos had ERRORS ---> test testRecoMETMETProducers had ERRORS ---> test runtestTqafTopEventSelection had ERRORS and more ... RelVals
RelVals-INPUT
Expand to see more relval errors ...AddOn Tests
|
PR description:
The storing of PFCandidates takes 1/3rd of the entire time it takes to write AOD. I have started to look at the class to see if there was a way to make it easier for ROOT to store. The first think I tried to was to remove CompositeCandidate (as that looks hard to store) in order to see what would break and therefore would have to be changed if I removed the inheritance. To my surprise no code in CMSSW made use of the possible compositeness of the class.
PR validation:
The Code and all dependent code compiles.