PFCandidate no longer inherits from CompositeCandidate#38999
PFCandidate no longer inherits from CompositeCandidate#38999Dr15Jones wants to merge 1 commit intocms-sw:masterfrom
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_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 ... RelValsRelVals-INPUT
Expand to see more relval errors ...AddOn Tests |
|
Milestone for this pull request has been moved to CMSSW_16_0_X. Please open a backport if it should also go in to CMSSW_15_1_X. |
|
Milestone for this pull request has been moved to CMSSW_16_1_X. Please open a backport if it should also go in to CMSSW_16_0_X. |
|
Milestone for this pull request has been moved to CMSSW_17_0_X. Please open a backport if it should also go in to CMSSW_16_1_X. |
|
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Failed Unit TestsI found 10 errors in the following unit tests: ---> test test-btvNano-run had ERRORS ---> test runtestPhysicsToolsPatAlgos had ERRORS ---> test testRecoMETMETProducers had ERRORS and more ... Failed RelVals
Failed RelVals-INPUT
Expand to see more relval errors ...
Failed AddOn Tests |
|
This PR was moved to #50682 as part of the EVOLUTION_X work |
|
@cmsbuild, please close |
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.