Skip to content

Commit

Permalink
add comment, fix dipole portal MB example
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkamp1 committed Jun 3, 2024
1 parent e86995f commit d3adae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions projects/injection/public/SIREN/injection/TreeWeighter.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ double ProcessWeighter<ProcessType>::NormalizedPositionProbability(std::tuple<si
double interaction_density = detector_model->GetInteractionDensity(intersections, DetectorPosition(interaction_vertex), targets, total_cross_sections, total_decay_length); //units of m^-1

double prob_density;
// This is equivalent to equation 11 of the SIREN paper
// Reach out to the authors if you disagree and we can send the derivation :)
if(total_interaction_depth < 1e-6) {
prob_density = interaction_density / total_interaction_depth;
} else {
Expand Down
5 changes: 2 additions & 3 deletions resources/Examples/Example2/DipolePortal_MiniBooNE.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

# Number of events to inject
events_to_inject = 10#0000
events_to_inject = 100000

# Expeirment to run
experiment = "MiniBooNE"
Expand Down Expand Up @@ -68,8 +68,7 @@
primary_type, primary_injection_distributions, primary_physical_distributions
)

controller.Initialize("output/MiniBooNE_Dipole_M%2.2e_mu%2.2e_example"
% (model_kwargs["m4"], model_kwargs["mu_tr_mu4"]))
controller.Initialize()

def stop(datum, i):
secondary_type = datum.record.signature.secondary_types[i]
Expand Down

0 comments on commit d3adae2

Please sign in to comment.