~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/core/base_objects.py

merge with 2.0.0beta4 revision 216

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
        else:
733
733
            return False
734
734
        
 
735
    def is_UVloop(self):
 
736
        """ Returns if the interaction is of UVmass type."""
 
737
 
 
738
        # Precaution only useful because some tests have a predefined model
 
739
        # bypassing the default_setup and for which type was not defined.
 
740
        if 'type' in self.keys():
 
741
            return (len(self['type'])>=6 and self['type'][:6]=='UVloop')
 
742
        else:
 
743
            return False
 
744
        
 
745
    def is_UVtree(self):
 
746
        """ Returns if the interaction is of UVmass type."""
 
747
 
 
748
        # Precaution only useful because some tests have a predefined model
 
749
        # bypassing the default_setup and for which type was not defined.
 
750
        if 'type' in self.keys():
 
751
            return (len(self['type'])>=6 and self['type'][:6]=='UVtree')
 
752
        else:
 
753
            return False
 
754
        
735
755
    def is_UVCT(self):
736
756
        """ Returns if the interaction is of the UVCT type which means that 
737
757
        it has been selected as a possible UV counterterm interaction for this
896
916
 
897
917
    def get_UVmass(self):
898
918
        """ return all interactions in the list of type UVmass """
899
 
        return InteractionList([int for int in self if int.is_UVmass()])    
 
919
        return InteractionList([int for int in self if int.is_UVmass()])
 
920
 
 
921
    def get_UVtree(self):
 
922
        """ return all interactions in the list of type UVtree """
 
923
        return InteractionList([int for int in self if int.is_UVtree()])
 
924
    
 
925
    def get_UVloop(self):
 
926
        """ return all interactions in the list of type UVloop """
 
927
        return InteractionList([int for int in self if int.is_UVloop()])
900
928
 
901
929
#===============================================================================
902
930
# Model