whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

#351 closed defect (fixed)

WHIZARD gets stuck in a loop when generating new events after reading in old ones

Reported by: Christian Speckner Owned by: kilian
Priority: P1 Milestone: v2.0.4
Component: core Version: 2.0.2
Severity: critical Keywords:
Cc:

Description (last modified by Christian Speckner)

Occasionally, while trying to generate new events after reading in old ones, WHIZARD gets stuck in a loop searching for a valid event. Unfortunately, I have not been able to build a testcase significantly simpler than the actual input file triggering the issue, so I am quoting the full input below. Note that, while the issue seems to arise erratically, it persists once it has surfaced - cancelling the run and retrying does not help. I have looked at the code but have been unable to identify the issue.

model = SM

alias pr = u:U:d:D:c:C:s:S:b:B:g
process drellyan = pr, pr => pr, pr

sqrts = 14 TeV
beams = p, p => lhapdf {$lhapdf_file = "cteq6l.LHpdf"}

mc = 0
ms = 0
mb = 0
mZ = 91.1875 GeV
mW = 80.45 GeV
wW = 0
wZ = 0

real iae = 137.0359895
GF = sqrt (2.) * pi / iae / mW**2 / (1 - mW**2 / mZ**2) / 2

?alpha_s_is_fixed = false
?alpha_s_from_lhapdf = true
scale = (eval Pt [extract index 1 [pr]]) / 2

cuts = all Pt > 100 GeV [pr] and 
   all abs (Eta) < 2.5 [pr]

integrate (drellyan) {iterations = 5:10000, 10:10000}

histogram ptdist (100 GeV, 4 TeV) {n_bins = 40}

analysis = record ptdist (eval Pt [extract index 1 [pr]])
n_events = 10
?unweighted = false
simulate (drellyan) {$event_normalization = "sigma/n"}

Change History (5)

comment:1 Changed 14 years ago by Christian Speckner

Description: modified (diff)
Milestone: v2.0.3

comment:2 Changed 14 years ago by Juergen Reuter

Milestone: v2.0.3v2.0.4

comment:3 Changed 14 years ago by kilian

Status: newassigned

First observation: the loop is not endless, but after a few minutes you get

******************************************************************************
******************************************************************************
*** FATAL ERROR: Failed to generate a valid event after 100000 tries
******************************************************************************
******************************************************************************
WHIZARD run aborted.

which is exactly what happens. Have to check why, of course.

NB: This limit can be reset in limits.f90 as MAX_TRIES_FOR_SINGLE_EVENT.

comment:4 Changed 14 years ago by kilian

Priority: P3P1
Severity: normalcritical

This bug was only the tip of an iceberg which just surfaced: the various transfer routines that create the particle lists for cuts and analysis treat beams and beam remnants inconsistently. Fixing this requires some work, I'll have to do it before 2.0.4.

comment:5 Changed 14 years ago by kilian

Resolution: fixed
Status: assignedclosed

Required a thorough revision of the handling of the subevt object which is used by cuts etc. r2814 should cover all cases.

Note: See TracTickets for help on using tickets.