-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add time to HGCAL CaloParticles #46678
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46678/42605 |
A new Pull Request was created by @AuroraPerego for master. It involves the following packages:
@Moanwar, @civanch, @cmsbuild, @jfernan2, @kpedro88, @mandrenguyen, @mdhildreth, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
allow @AuroraPerego test rights |
@@ -223,6 +229,7 @@ CaloTruthAccumulator::CaloTruthAccumulator(const edm::ParameterSet &config, | |||
: messageCategory_("CaloTruthAccumulator"), | |||
maximumPreviousBunchCrossing_(config.getParameter<unsigned int>("maximumPreviousBunchCrossing")), | |||
maximumSubsequentBunchCrossing_(config.getParameter<unsigned int>("maximumSubsequentBunchCrossing")), | |||
bunchSpacing_(config.getParameter<unsigned int>("bunchspace")), |
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.
Hi, just a small comment—I don't see the usage of bunchSpacing. Maybe I'm missing something? Thanks
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.
Yes sorry, it was a leftover from previous changes. I've removed it.
@@ -293,7 +287,7 @@ void SimTrackstersProducer::produce(edm::Event& evt, const edm::EventSetup& es) | |||
// Create a Trackster from the object entering HGCal | |||
if (cp.g4Tracks()[0].crossedBoundary()) { | |||
regr_energy = cp.g4Tracks()[0].getMomentumAtBoundary().energy(); | |||
float time = cp.g4Tracks()[0].getPositionAtBoundary().t(); | |||
float time = cp.g4Tracks()[0].getPositionAtBoundary().t() * 1e9; |
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.
Is this 1e9 a conversion to ns? If so, perhaps set it as a constant?
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.
It's from seconds to ns, I've changed it to use the constant s
from CLHEP.
22bd3ae
to
2118d8b
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46678/42615 |
Pull request #46678 was updated. @Moanwar, @civanch, @cmsbuild, @jfernan2, @kpedro88, @mandrenguyen, @mdhildreth, @srimanob, @subirsarkar can you please check and sign again. |
2118d8b
to
20c4dab
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46678/42616 |
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. |
+Upgrade |
This pull request is fully signed and it will be integrated in one of the next master IBs (test failures were overridden). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
just for the record, it looks like this PR makes the phase2 HLT timing test crash e.g. log:
|
This PR changes the class layout of both |
Apparently, we are not now ( |
I tested it fixes the phase2 HLT timing and opened #46851 |
@AuroraPerego thanks for pinging me. buildrules are searching for |
cms-sw/cmsdist#9543 should properly catch mismatching class versions |
fix `CaloParticle` class version after #46678
PR description:
Following the
MtdTruthAccumulator.cc
logic, theSimVertex
time has also been added to the HGCALCaloParticle
s.This is needed because the information coming from the
SimVertexCollection
of theCaloParticle
s from pileup is lost if not saved in theCaloTruthAccumulator.cc
.The name of the method used to assign the time has been changed to the more appropriate
setSimTime
.The correction of the time for oot pileup has been removed since the
SimVertex
time takes that already into account.PR validation:
Tested on wfs 29888.203 (classical mixing) and 29888.99 (premix) enabling the
CaloParticle
s from pileup (they are disabled by default).Example to test it:
FYI @waredjeb @felicepantaleo @rovere