-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Simplify jet constituent access in MiniAOD #22914
Merged
cmsbuild
merged 8 commits into
cms-sw:master
from
ahinzmann:simplifyPatJetConstituentAccess102
Apr 21, 2018
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6dc5de0
simplify jet constituent access in MiniAOD
ahinzmann 93063f0
check pointer
ahinzmann 02ddf1a
make daughters of pat jets consistent
ahinzmann 0dd1e53
code checks
ahinzmann beb1713
revert changes to origin pat jets
ahinzmann 66d29dd
fix cache daughters
ahinzmann 8721b6e
make daughterPtr virtual
ahinzmann 9b04b8b
fix fwlite
ahinzmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,6 +236,7 @@ | |
</ioread> | ||
|
||
<class name="pat::Jet" ClassVersion="16"> | ||
<field name="daughtersTemp_" transient="true"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add the following around L250: <ioread sourceClass = "pat::Jet" version="[1-]" targetClass="pat::Jet" source="" target="caloTowersTemp_">
<![CDATA[caloTowersTemp_.reset();]]>
</ioread>
<ioread sourceClass = "pat::Jet" version="[1-]" targetClass="pat::Jet" source="" target="pfCandidatesTemp_">
<![CDATA[pfCandidatesTemp_.reset();]]>
</ioread>
<ioread sourceClass = "pat::Jet" version="[1-]" targetClass="pat::Jet" source="" target="daughtersTemp_">
<![CDATA[daughtersTemp_.reset();]]>
</ioread> this appropriately resets the cache pointers when pat::Jets are loaded |
||
<version ClassVersion="16" checksum="4069285947"/> | ||
<version ClassVersion="15" checksum="727883729"/> | ||
<version ClassVersion="14" checksum="1304049301"/> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer
or perhaps with
reco::Jet
instead ofpat::Jet
?there's no guarantee that
isJet()
will return true only apat::Jet
object (and there may be overheads in doing the cast using edm::Ptr, which is unnecessary since you're not writing it to a file)