-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
…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.
MeVPrtlTruth class needs to be updated to include variables: total_mean_distance and allowed_decay_fraction for the sbncode PR#307 |
Thanks @VCLanNguyen! I think I had forgot a commit to sbnobj -- just pushed it. |
@gputnam |
@miquelnebot I've fixed the merge errors. |
trigger build SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83 |
✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard |
✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard |
❌ 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 |
❌ 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 |
❌ 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 |
❌ 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 |
@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? |
I've fixed the build errors -- can we try again? |
@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 |
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.
@gputnam typo
trigger build SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83 |
trigger build LArSoft/lar*@LARSOFT_SUITE_v09_65_01 SBNSoftware/sbnobj#71 SBNSoftware/sbnanaobj#83 |
@miquelnebot the build issue seems to be a dependency error which I don't think is related to this PR. |
@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. |
✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard |
✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- 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 |
🚨 For more details about the warning phase, check the ci_tests SBND phase logs parent CI build details are 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 |
🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs parent CI build details are available through the CI dashboard |
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 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/" |
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.
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/" |
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.
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 |
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.
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; |
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 a physic change? Would it destroy backward compatibility? Do we care if it does?
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 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.
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. |
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); |
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.
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".
feta = 1.2*fpion; | ||
fetap = -0.45*fpion; | ||
grho = 0.102; // [GeV^2] |
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.
Add reference.
A number of changes to enable more HNL production / final states. Depends on SBNSoftware/sbnobj#71 and SBNSoftware/sbnanaobj#83.