Created
March 6, 2018 09:24
-
-
Save AndreasAlbert/91506ee6392b63ba9b395d23a7429020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 17364f8b429a77550afac46c244014c9fcea8c68 Mon Sep 17 00:00:00 2001 | |
From: aalbert <albert@physik.rwth-aachen.de> | |
Date: Tue, 6 Mar 2018 10:21:55 +0100 | |
Subject: [PATCH 1/1] Add excluded particle fix. | |
--- | |
PLUGIN/maddm/maddm_interface.py | 5 +++++ | |
1 file changed, 5 insertions(+) | |
diff --git a/PLUGIN/maddm/maddm_interface.py b/PLUGIN/maddm/maddm_interface.py | |
index 3d7bb68..7b3d36e 100644 | |
--- a/PLUGIN/maddm/maddm_interface.py | |
+++ b/PLUGIN/maddm/maddm_interface.py | |
@@ -528,6 +528,11 @@ class MadDM_interface(master_interface.MasterCmd): | |
sm_pdgs = range(1, 7) + range(11, 17) + range(21, 26) #quarks/leptons/bosons | |
sm_part = [self._curr_model.get_particle(pdg) for pdg in sm_pdgs] | |
+ for expart in excluded_particles: | |
+ for entry in sm_part: | |
+ if( entry["name"] == expart ): | |
+ sm_part.remove(entry) | |
+ | |
self.define_multiparticles('fs_particles', sm_part +bsm_final_states) | |
# generate annihilation diagram | |
-- | |
2.7.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment