~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/core/drawing.py

  • Committer: olivier Mattelaer
  • Date: 2015-03-05 00:14:16 UTC
  • mfrom: (258.1.9 2.3)
  • mto: (258.8.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: olivier.mattelaer@uclouvain.be-20150305001416-y9mzeykfzwnl9t0j
partial merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
2075
2075
        Compare to usual load we glue the cutted propagator of the Loop.
2076
2076
        """ 
2077
2077
 
2078
 
        if self.diagram['tag']:
 
2078
        if self.diagram['tag'] and not self.fdstructures is None:
2079
2079
            for pdg, list_struct_id, vertex_id in self.diagram['tag']:
2080
2080
                for structure_id in list_struct_id:
2081
2081
                    for vertex in self.fdstructures[structure_id]['vertices']:
2267
2267
            return False 
2268
2268
        
2269
2269
        # See the depth of each side 
2270
 
        for pdg, list_struct_id, vertex_id in self.diagram['tag']:
2271
 
            for structure_id in list_struct_id:
2272
 
                leg = self.fdstructures[structure_id].get('binding_leg')
2273
 
                if leg.get('number') < 3:
2274
 
                    continue # connecting to initial particles
2275
 
                #compute the number of vertex in the structure
2276
 
                nb_vertex = len(self.fdstructures[structure_id].get('vertices'))
2277
 
                if not binding_side.has_key(leg.get('number')):
2278
 
                    continue
2279
 
                    
2280
 
                if  binding_side[leg.get('number')]:
2281
 
                    side_weight += nb_vertex **2
2282
 
                else:
2283
 
                    side_weight -= nb_vertex **2
 
2270
        if not self.fdstructures is None:
 
2271
            for pdg, list_struct_id, vertex_id in self.diagram['tag']:
 
2272
                for structure_id in list_struct_id:
 
2273
                    leg = self.fdstructures[structure_id].get('binding_leg')
 
2274
                    if leg.get('number') < 3:
 
2275
                        continue # connecting to initial particles
 
2276
                    #compute the number of vertex in the structure
 
2277
                    nb_vertex = len(self.fdstructures[structure_id].get('vertices'))
 
2278
                    if not binding_side.has_key(leg.get('number')):
 
2279
                        continue
 
2280
                        
 
2281
                    if  binding_side[leg.get('number')]:
 
2282
                        side_weight += nb_vertex **2
 
2283
                    else:
 
2284
                        side_weight -= nb_vertex **2
2284
2285
        
2285
2286
        if side_weight == 0:
2286
2287
            return left_side > right_side