| 1 | {{{ |
| 2 | model = SM |
| 3 | }}} |
| 4 | Set up the process |
| 5 | {{{ |
| 6 | alias parton = u:U:d:D:g |
| 7 | alias jet = parton |
| 8 | }}} |
| 9 | We could have added strange and charm jets: |
| 10 | {{{ |
| 11 | # alias jet = parton:s:S:c:C |
| 12 | }}} |
| 13 | {{{ |
| 14 | alias lepton = e1:e2 |
| 15 | alias neutrino = n1:N1:n2:N2 |
| 16 | }}} |
| 17 | {{{ |
| 18 | process enj = parton, parton => lepton, neutrino, jet |
| 19 | compile |
| 20 | }}} |
| 21 | LHC design energy |
| 22 | {{{ |
| 23 | sqrts = 14 TeV |
| 24 | beams = p, p => lhapdf { $lhapdf_file = "cteq5l.LHgrid" } |
| 25 | }}} |
| 26 | Define reasonable cuts and integrate the cross section(s) in order to initialize the phase space grids for similation |
| 27 | {{{ |
| 28 | cuts = all Pt >= 10 GeV [jet:lepton] |
| 29 | integrate (enj) { iterations = 5:20000 } |
| 30 | }}} |
| 31 | Define title etc. as global variables, that will be used by PLOT |
| 32 | {{{ |
| 33 | $description = |
| 34 | "A WHIZARD 2.0 Example." |
| 35 | $ylabel = "$N_{\textrm{events}}$" |
| 36 | }}} |
| 37 | Allocate plots |
| 38 | {{{ |
| 39 | $title = "$W$ Endpoint (``Jacobian Peak'') in $pp\to \ell\bar\nu j$" |
| 40 | $xlabel = "$p_T^\ell$/GeV" |
| 41 | histogram pt_lepton (0 GeV, 80 GeV, 2 GeV) |
| 42 | }}} |
| 43 | {{{ |
| 44 | $title = "Jet-$p_T$ in $pp\to \ell\bar\nu j$" |
| 45 | $xlabel = "$p_T^j$/GeV" |
| 46 | histogram pt_jet (0 GeV, 80 GeV, 2 GeV) |
| 47 | }}} |
| 48 | {{{ |
| 49 | $title = "Lepton Energy in $pp\to \ell\bar\nu j$" |
| 50 | $xlabel = "$E^\ell$/GeV" |
| 51 | histogram e_lepton (0 GeV, 160 GeV, 4 GeV) |
| 52 | }}} |
| 53 | {{{ |
| 54 | $title = "Jet Energy in $pp\to \ell\bar\nu j$" |
| 55 | $xlabel = "$E^j$/GeV" |
| 56 | histogram e_jet (0 GeV, 80 GeV, 2 GeV) |
| 57 | }}} |
| 58 | Record transverse momenta and energies |
| 59 | {{{ |
| 60 | analysis = record pt_lepton (eval Pt [extract index 1 [sort by Pt [lepton]]]) |
| 61 | and record pt_jet (eval Pt [extract index 1 [sort by Pt [jet]]]) |
| 62 | and record e_lepton (eval E [extract index 1 [sort by Pt [lepton]]]) |
| 63 | and record e_jet (eval E [extract index 1 [sort by Pt [jet]]]) |
| 64 | }}} |
| 65 | {{{ |
| 66 | simulate (enj) { n_events = 1000 } |
| 67 | }}} |
| 68 | {{{ |
| 69 | $analysis_filename = "W-endpoint" |
| 70 | write_analysis |
| 71 | }}} |