~maddevelopers/mg5amcnlo/3.4.0

« back to all changes in this revision

Viewing changes to madgraph/core/base_objects.py

  • Committer: olivier-mattelaer
  • Date: 2022-05-06 14:33:10 UTC
  • mfrom: (78.444.109 2.9.4)
  • mto: This revision was merged to the branch mainline in revision 1007.
  • Revision ID: olivier-mattelaer-20220506143310-8539p7zspd20oipd
pass to 2.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1600
1600
        """Change the electroweak mode. The only valid mode now is external.
1601
1601
        Where in top of the default MW and sw2 are external parameters."""
1602
1602
 
 
1603
        if isinstance(mode, str) and "_" in mode:
 
1604
            mode = set([s.lower() for s in mode.split('_')])
 
1605
 
1603
1606
        assert mode in ["external",set(['mz','mw','alpha'])]
1604
1607
        
1605
1608
        try:
1833
1836
            for coup in list_coup:                
1834
1837
                coup.expr = pat.sub(replace, coup.expr)
1835
1838
                
 
1839
    def get_all_spin(self):
 
1840
        return {p.get('spin') for p in self['particles']}
 
1841
 
1836
1842
    def add_param(self, new_param, depend_param):
1837
1843
        """add the parameter in the list of parameter in a correct position"""
1838
1844