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

Feature/truth sign dist mu mom #130

Merged
merged 27 commits into from
Aug 26, 2024
Merged

Feature/truth sign dist mu mom #130

merged 27 commits into from
Aug 26, 2024

Conversation

mdolce8
Copy link
Member

@mdolce8 mdolce8 commented Aug 20, 2024

This is the PR for the work on the muon signed distance. Has two scripts:

  1. signed_distance_mu_momentum_slices.py . Create Truth muon (and anti-muon) Signed Distance plots in slices of muon KE. The script creates two versions of the plots:
  • the KE of the muon at it's "birth"
  • the KE of the muon as it enters TMS.
    From discussions at Friday meetings, both seem useful, so that's why the script makes both.
  1. signed_distance_enu_momentum_slices.py . Does the same thing, but makes plots of the Signed Distance in slices of the True Neutrino Energy. I have only run this script over a limited number of TMSReco events, so the stats in the plots I have are sparse (also was suggested at the last TMS Studies meeting).

I also made a new directory for these scripts, Truth . I thought they should go there since they use truth info and don't confuse people by putting them in the Reco dir.

mdolce8 added 27 commits August 6, 2024 10:56
…rectory -- it should be the data area, not app.
…ke hists wider, fix legend, and clarify the name option
…f the code a bit. And also puts the sign distance calculation into a function too...
…ore -- all in MeV. And also add a vertical line for easier viewing.
…small number of events, so we may have integrals of 0, so need to account for this.
… the muon KE entering TMS. To do this we: create function to calculate KE from momentum, create a second pair of lists of TH1s for plots of the KE entering TMS. This cause some restructuring to cut down on code -- just make a bigger loop and use zip() to access the pairs of hists -- done for all the visuals and plotting. Clarify the names of some functions, move legend outside of loop, only need one (all are the same), save plots with what det was used to calc the KE. let's also clarify the other list of hists is inside LAr, so add it to the name of the object, and to its titles.
…e code to make plots for Enu slices -- might be better to make new script. Also had issue accessing the index for the neutrino 4-vector, attempt to add plots of the Enu slices as well
…ge -- over 5 GeV. skip over them. and address some typos
… lets have a dir for Truth, and also change the outdir so its clear and matches filename
@mdolce8 mdolce8 requested review from LiamOS and jdkio August 20, 2024 20:09
@mdolce8 mdolce8 added the enhancement New feature or request label Aug 20, 2024
Copy link
Member

@LiamOS LiamOS left a comment

Choose a reason for hiding this comment

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

Haven't run these myself, but seems sensible. Also it's python and unconnected to any of the main code, so it can't break anything.

Approving.

@mdolce8 mdolce8 merged commit 5ab577f into main Aug 26, 2024
1 check passed
@mdolce8 mdolce8 mentioned this pull request Aug 26, 2024
@mdolce8 mdolce8 deleted the feature/truth_sign_dist_mu_mom branch August 28, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants