def __init__(self, event_path=None, *completekey, **stdin): """initialize the interface with potentially an event_path""" cmd_logger.info('************************************************************') cmd_logger.info('* *') cmd_logger.info('* W E L C O M E to M A D S P I N *') cmd_logger.info('* *') cmd_logger.info('************************************************************') extended_cmd.Cmd.__init__(self, *completekey, **stdin) self.decay = madspin.decay_misc() self.model = None self.options = {'max_weight': -1, 'curr_dir': os.path.realpath(os.getcwd()), 'Nevents_for_max_weigth': 0, 'max_weight_ps_point': 400, 'BW_cut':-1, 'nb_sigma':0, 'ms_dir':None, 'max_running_process':100} self.events_file = None self.decay_processes = {} self.list_branches = {} self.to_decay={} self.mg5cmd = master_interface.MasterCmd() self.seed = None if event_path: logger.info("Extracting the banner ...") self.do_import(event_path)
def __init__(self, event_path=None, *completekey, **stdin): """initialize the interface with potentially an event_path""" cmd_logger.info( '************************************************************') cmd_logger.info( '* *') cmd_logger.info( '* W E L C O M E to M A D S P I N *') cmd_logger.info( '* *') cmd_logger.info( '************************************************************') extended_cmd.Cmd.__init__(self, *completekey, **stdin) self.decay = madspin.decay_misc() self.model = None self.mode = "madspin" # can be flat/bridge change the way the decay is done. # note amc@nlo does not support bridge. self.options = { 'max_weight': -1, 'curr_dir': os.path.realpath(os.getcwd()), 'Nevents_for_max_weigth': 0, 'max_weight_ps_point': 400, 'BW_cut': -1, 'nb_sigma': 0, 'ms_dir': None, 'max_running_process': 100, 'onlyhelicity': False, 'spinmode': "madspin", 'use_old_dir': False, #should be use only for faster debugging 'run_card': None # define cut for spinmode==none. } self.events_file = None self.decay_processes = {} self.list_branches = {} self.to_decay = {} self.mg5cmd = master_interface.MasterCmd() self.seed = None self.err_branching_ratio = 0 if event_path: logger.info("Extracting the banner ...") self.do_import(event_path)
def __init__(self, event_path=None, *completekey, **stdin): """initialize the interface with potentially an event_path""" cmd_logger.info('************************************************************') cmd_logger.info('* *') cmd_logger.info('* W E L C O M E to M A D S P I N *') cmd_logger.info('* *') cmd_logger.info('************************************************************') extended_cmd.Cmd.__init__(self, *completekey, **stdin) self.decay = madspin.decay_misc() self.model = None self.mode = "madspin" # can be flat/bridge change the way the decay is done. # note amc@nlo does not support bridge. self.options = {'max_weight': -1, 'curr_dir': os.path.realpath(os.getcwd()), 'Nevents_for_max_weigth': 0, 'max_weight_ps_point': 400, 'BW_cut':-1, 'nb_sigma':0, 'ms_dir':None, 'max_running_process':100, 'onlyhelicity': False, 'spinmode': "madspin", 'use_old_dir': False, #should be use only for faster debugging 'run_card': None # define cut for spinmode==none. } self.events_file = None self.decay_processes = {} self.list_branches = {} self.to_decay={} self.mg5cmd = master_interface.MasterCmd() self.seed = None self.err_branching_ratio = 0 if event_path: logger.info("Extracting the banner ...") self.do_import(event_path)
def __init__(self, event_path=None, *completekey, **stdin): """initialize the interface with potentially an event_path""" cmd_logger.info( '************************************************************') cmd_logger.info( '* *') cmd_logger.info( '* W E L C O M E to M A D S P I N *') cmd_logger.info( '* *') cmd_logger.info( '************************************************************') extended_cmd.Cmd.__init__(self, *completekey, **stdin) self.decay = madspin.decay_misc() self.model = None self.options = { 'max_weight': -1, 'curr_dir': os.path.realpath(os.getcwd()), 'Nevents_for_max_weigth': 0, 'max_weight_ps_point': 400, 'BW_cut': -1, 'nb_sigma': 0, 'ms_dir': None, 'max_running_process': 100, 'onlyhelicity': False } self.events_file = None self.decay_processes = {} self.list_branches = {} self.to_decay = {} self.mg5cmd = master_interface.MasterCmd() self.seed = None if event_path: logger.info("Extracting the banner ...") self.do_import(event_path)