コード例 #1
0
ファイル: change_tf.py プロジェクト: KanZhang23/Tmass
 def charge_particle_content(self):
     """ find the ingoing and outgoing particles for this Subprocess
         store this information in self.particles=[list of PID]
         return the dictionary
     """
     self.particles = Cards.read_leshouches_file(self.dir+'/leshouche.inc')
     return self.particles
コード例 #2
0
    def import_ext_part(self, dir_file):
        """ read leshouches.inc information """

        pid_list = Cards.read_leshouches_file(dir_file + '/' + 'leshouche.inc')

        #create the particle object and put them in the content of the diag
        #add the mass corresponding to the card
        for i in range(1, len(pid_list) + 1):  #MG start at one
            a = external_part(i, pid_list[i - 1])
            self.add_content(i, a)
コード例 #3
0
    def import_ext_part(self,dir_file):
        """ read leshouches.inc information """


        pid_list = Cards.read_leshouches_file(dir_file+'/'+'leshouche.inc')

        #create the particle object and put them in the content of the diag
        #add the mass corresponding to the card
        for i in range(1,len(pid_list)+1):#MG start at one
            a=external_part(i,pid_list[i-1]) 
            self.add_content(i,a)