Exemplo n.º 1
0
def make_events(args, n_events, iproc, random_ints):
    # NOTE all the different seeds! this sucks but is necessary
    reco = Recombinator(args, seed=args.seed+iproc, sublabel=str(iproc))  #, total_length_from_right=args.total_length_from_right)
    for ievt in range(n_events):
        # print ievt,
        # sys.stdout.flush()
        reco.combine(random_ints[ievt])
Exemplo n.º 2
0
 def make_events(n_events, iproc, random_ints):
     assert n_events > 0
     # NOTE all the different seeds! this sucks but is necessary
     reco = Recombinator(args, seed=args.seed+iproc, sublabel=str(iproc))
     for ievt in range(n_events):
         # print ievt,
         # sys.stdout.flush()
         failed = True
         itry = 0
         while failed:
             if itry > 0:
                 print 'try again: %d' % itry
             failed = not reco.combine(random_ints[ievt] + itry)
             itry += 1