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

correct the time propagation and add options in CloseByParticleGunProducer #42487

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

AuroraPerego
Copy link
Contributor

PR description:

Before this PR the time was propagated back to the vertex in a straight line at the speed of light.
These changes propagate the time back at the speed of the particle and following a curved path if the particle is charged.
In addition to that, two options have been added:

  • the first one is a fixed offset with respect to 0
  • the second one is a dt between the particles, configurable in a range.
    By default both the offset and the dt are set to 0.
    The fillDescriptions method has been added as well.

All of this is used in studies regarding timing in HGCAL.

PR validation:

Tested on CloseBy photons and pions.

@waredjeb @felicepantaleo @rovere

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42487/36493

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

A new Pull Request was created by @AuroraPerego (Aurora Perego) for master.

It involves the following packages:

  • IOMC/ParticleGuns (generators)

@SiewYan, @mkirsano, @Saptaparna, @cmsbuild, @alberto-sanchez, @menglu21, @GurpreetSinghChahal can you please review it and eventually sign? Thanks.
@fabiocos, @grzanka this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@felicepantaleo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cc8299/34141/summary.html
COMMIT: 1d8b2b9
CMSSW: CMSSW_13_3_X_2023-08-07-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/42487/34141/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 23 lines from the logs
  • Reco comparison results: 887 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3150947
  • DQMHistoTests: Total failures: 6776
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3144149
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@felicepantaleo
Copy link
Contributor

@SiewYan @mkirsano @Saptaparna @alberto-sanchez @menglu21 @GurpreetSinghChahal a kind reminder in case you forgot to sign this. We need it for a sample production.

@felicepantaleo
Copy link
Contributor

@AuroraPerego I apologize if this is simple PR is not getting even looked at for the last 2 months.

@cms-sw/orp-l2 is there any way we can proceed with this?

double pathLength = 0.;
const double speed = p.pz() / p.e() * c_light / cm;
if (PData->charge()) {
const double radius = sqrt(p.px() * p.px() + p.py() * p.py()) * 87.78f; // cm
Copy link
Contributor

Choose a reason for hiding this comment

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

To be extremely picky:

  • The math is wrong for loopers, right? Maybe they are not relevant in general, but it would be wise to say something or put some protection or do the math right for all cases.
  • Would it make sense to ask the value of the magnetic field and act accordingly? With the code as is, all generations with anything but 3.8T will be wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a check for loopers and now the magnetic field is taken from the Event Setup

Added error when energy is less than 1 GeV, time may not be accurate in
this case (e.g. loopers)
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42487/37061

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

Pull request #42487 was updated. @cmsbuild, @menglu21, @SiewYan, @GurpreetSinghChahal, @bbilin, @alberto-sanchez, @mkirsano can you please check and sign again.

@felicepantaleo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cc8299/34986/summary.html
COMMIT: 34c93e0
CMSSW: CMSSW_13_3_X_2023-09-29-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42487/34986/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 2 lines from the logs
  • Reco comparison results: 915 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358320
  • DQMHistoTests: Total failures: 390
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3357908
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: found differences in 1 / 48 workflows

@menglu21
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+1

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.

6 participants