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

Add in tau-coupled HNL mode to MeVPrtl generator #307

Closed
wants to merge 9 commits into from

Conversation

gputnam
Copy link
Contributor

@gputnam gputnam commented Oct 20, 2022

A number of changes to enable more HNL production / final states. Depends on SBNSoftware/sbnobj#71 and SBNSoftware/sbnanaobj#83.

…o load meson fluxes from text file. Change KaonParent -> MesonParent to clarify that parent particles need not be kaons. Fix bugs in computation of 2l1v HNL decay. Add in more width computations to HNL for all accessible final states for M <~ 1GeV. Add in more options to ray-tracing to only rotate phi but not theta.
@VCLanNguyen
Copy link
Contributor

VCLanNguyen commented Nov 18, 2022

MeVPrtlTruth class needs to be updated to include variables: total_mean_distance and allowed_decay_fraction for the sbncode PR#307

@gputnam
Copy link
Contributor Author

gputnam commented Nov 18, 2022

Thanks @VCLanNguyen! I think I had forgot a commit to sbnobj -- just pushed it.

@miquelnebot
Copy link
Contributor

@gputnam
Could you fix the conflicts? is only a change to cet_build_plugin format but if you could test your new TxtFileGen and tau2HNLflux additions would be great.
Also, please trigger CI when conflicts fixed.
I'll chase reviews
Thanks

@gputnam
Copy link
Contributor Author

gputnam commented Nov 29, 2022

@miquelnebot I've fixed the merge errors.

@miquelnebot
Copy link
Contributor

trigger build SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83

@FNALbuild
Copy link

✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard

@FNALbuild
Copy link

✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard

@FNALbuild
Copy link

❌ CI build for SBND Failed at phase build SBND on slf7 for c7:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

❌ CI build for SBND Failed at phase build SBND on slf7 for e20:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for c7:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e20:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@gputnam
Copy link
Contributor Author

gputnam commented Nov 29, 2022

@miquelnebot the build error is due to a header file that can't be found, which is confusing to me since the header file in question still seems to exist and is not newly included in this PR. Do you know what could be going on?

@gputnam
Copy link
Contributor Author

gputnam commented Dec 1, 2022

I've fixed the build errors -- can we try again?

@gputnam
Copy link
Contributor Author

gputnam commented Jan 5, 2023

@miquelnebot can we get this PR merged?

@miquelnebot
Copy link
Contributor

@miquelnebot can we get this PR merged?

Currently software release being held for the geometry updates.Will do that ASAP

@@ -38,10 +60,10 @@ rethrow_ray_trace_box: {

# weight computation
#ReferenceLabSolidAngle: 1.6e-6 # approx solid angle of ICARUS @NuMI target
#ReferenceKaonEnergy: 15 # GeV
#ReferencePriamryEnergy: 15 # GeV
Copy link
Contributor

Choose a reason for hiding this comment

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

@gputnam typo

@miquelnebot
Copy link
Contributor

trigger build SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83

@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 23, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 23, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 23, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 23, 2023
@miquelnebot
Copy link
Contributor

trigger build LArSoft/lar*@LARSOFT_SUITE_v09_65_01 SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83

@gputnam
Copy link
Contributor Author

gputnam commented Jan 23, 2023

@miquelnebot the build issue seems to be a dependency error which I don't think is related to this PR.

@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@SBNSoftware SBNSoftware deleted a comment from FNALbuild Jan 24, 2023
@miquelnebot
Copy link
Contributor

@gputnam I know, we have a mismatch since the geometry changes before Christmas, which caused a few issues with being able to run the CI. We are about to resolve it and have this - and others- merged.
Thanks for your patience and understanding.

@miquelnebot miquelnebot changed the base branch from develop to release/v09_65_03 January 25, 2023 11:48
@miquelnebot
Copy link
Contributor

@FNALbuild
Copy link

✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard

@FNALbuild
Copy link

✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard

@FNALbuild
Copy link

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e20:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for c7:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

⚠️ CI build for ICARUS Warning at phase ci_tests ICARUS on slf7 for e20:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

⚠️ CI build for ICARUS Warning at phase ci_tests ICARUS on slf7 for c7:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@miquelnebot
Copy link
Contributor

miquelnebot commented Jan 25, 2023

@mroda88 @jicrespo could one of you add the second review, please?
also, for the related PRs

Copy link
Contributor

@mroda88 mroda88 left a comment

Choose a reason for hiding this comment

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

I didn't look all the details, but I haven't see anything obviously wrong. I made some comments. I think it would be best to have a chat about the physics we need to implement though, otherwise it's hard to tell if the code makes sense.

@@ -25,6 +25,28 @@ numi_kaon: {
RandomizeFiles: true
}

numi_tau: {
tool_type: TxtFileGen
SearchPath: "/pnfs/icarus/persistent/users/gputnam/numi_unconventional_fluxes/"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have examples of fluxes in the PR itself? I don't like that the PR points to a personal user space


numi_eta: {
tool_type: TxtFileGen
SearchPath: "/pnfs/icarus/persistent/users/gputnam/numi_unconventional_fluxes/"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here


mixedweight_ray_trace_box_kdar: @local::mixedweight_ray_trace_box
mixedweight_ray_trace_box_kdar.ReferenceKaonEnergy: 0.494
mixedweight_ray_trace_box_kdar.ReferencePriamryEnergy: 0.493677
Copy link
Contributor

Choose a reason for hiding this comment

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

typo here too

@@ -181,7 +250,7 @@ HNLMakeDecay::ThreebodyMomentum HNLMakeDecay::isotropic_threebody_momentum(doubl

// The azimuthal angle of B and C about A is distributed uniformly
double gammaB = (2*GetRandom() - 1.) * M_PI;
double gammaC = -gammaB;
double gammaC = fmod(gammaB + 2*M_PI, 2*M_PI) - M_PI;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a physic change? Would it destroy backward compatibility? Do we care if it does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is a physics change, it's fixing a bug.

As far as backwards compatibility, I don't think I've shown results before with 3-body decays. When I tried to for the results in this PR, I found the bug. The simulation makes unphysical results otherwise.

@miquelnebot
Copy link
Contributor

miquelnebot commented Jan 25, 2023

I didn't look all the details, but I haven't see anything obviously wrong. I made some comments. I think it would be best to have a chat about the physics we need to implement though, otherwise it's hard to tell if the code makes sense.

This was, as always, supposed to be discussed within the WG before approval and any reference posted here. If that's not the case I would refer to aprove it yet.

@miquelnebot miquelnebot deleted the branch release/v09_65_03 January 25, 2023 17:45
@jicrespo
Copy link

The physics was presented in an SBND BSM meeting, slides at https://sbn-docdb.fnal.gov/cgi-bin/sso/ShowDocument?docid=28395

The changes apply to ICARUS-NuMI physics since SBND is not doing any NuMI physics. For SBND, we just need to confirm it does not break our BNB work.

@@ -118,8 +118,8 @@ void evgen::ldm::MeVPrtlTestRayTrace::analyze(const art::Event& evt)
while (1) {
simb::MCFlux kaon = fGenTool->GetNext();

evgen::ldm::KaonParent kaonp(kaon);
bool is_kaon = kaonp.kaon_pdg != 0;
evgen::ldm::MesonParent kaonp(kaon);
Copy link

@jicrespo jicrespo Jan 25, 2023

Choose a reason for hiding this comment

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

The code is fine, but for consistency the objects and variable names and the message would be better changed to the generic "meson" instead of "kaon".

Comment on lines +34 to +36
feta = 1.2*fpion;
fetap = -0.45*fpion;
grho = 0.102; // [GeV^2]

Choose a reason for hiding this comment

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

Add reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants