| 1 | Define the model: |
| 2 | |
| 3 | {{{ |
| 4 | model = SM |
| 5 | }}} |
| 6 | |
| 7 | This is the CC10 charged current process important |
| 8 | for LEP physics. No flavor summation for jets here. |
| 9 | |
| 10 | {{{ |
| 11 | process cc10 = e1, E1 => e2, N2, u, D |
| 12 | }}} |
| 13 | |
| 14 | Compilation (optional): |
| 15 | |
| 16 | {{{ |
| 17 | compile |
| 18 | }}} |
| 19 | |
| 20 | We set the muon mass to zero. |
| 21 | |
| 22 | {{{ |
| 23 | mmu = 0 |
| 24 | }}} |
| 25 | |
| 26 | The final LEP energy: |
| 27 | |
| 28 | {{{ |
| 29 | sqrts = 209 GeV |
| 30 | }}} |
| 31 | |
| 32 | Integrate the process: |
| 33 | |
| 34 | {{{ |
| 35 | integrate (cc10) { iterations = 12:20000 } |
| 36 | }}} |
| 37 | |
| 38 | We set a luminosity of 10 inverse femtobarn |
| 39 | |
| 40 | {{{ |
| 41 | luminosity = 10 |
| 42 | }}} |
| 43 | |
| 44 | Define title etc. as global variables, that will be used by PLOT |
| 45 | |
| 46 | {{{ |
| 47 | $description = |
| 48 | "A WHIZARD 2.0 Example. |
| 49 | Charged current CC10 process from LEP 2." |
| 50 | $ylabel = "$N_{\textrm{events}}$" |
| 51 | }}} |
| 52 | |
| 53 | Allocate plots and set up the analysis: |
| 54 | |
| 55 | {{{ |
| 56 | $title = "Di-jet invariant mass $M_{jj}$ in $e^+e^- \to \mu^- \bar\nu_\mu u \bar d$" |
| 57 | $xlabel = "$M_{jj}$/GeV" |
| 58 | histogram m_jets (70 GeV, 90 GeV, 0.5 GeV) |
| 59 | |
| 60 | $title = "Muon energy $E_\mu$ in $e^+e^- \to \mu^- \bar\nu_\mu u \bar d$" |
| 61 | $xlabel = "E_\mu$/GeV" |
| 62 | histogram e_muon (0 GeV, 209 GeV, 4) |
| 63 | |
| 64 | analysis = record m_jets (eval M [u,D]); |
| 65 | record e_muon (eval E [e2]) |
| 66 | }}} |
| 67 | |
| 68 | Simulate and write out the analysis: |
| 69 | |
| 70 | {{{ |
| 71 | simulate (cc10) |
| 72 | |
| 73 | $analysis_filename = "cc10" |
| 74 | write_analysis |
| 75 | }}} |