whizard is hosted by Hepforge, IPPP Durham

ExampleZlineshape: Z-lineshape.sin

File Z-lineshape.sin, 2.2 KB (added by Juergen Reuter, 7 years ago)
Line 
1# Z-lineshape.sin
2# Simple complete physics example: Z lineshape in the Standard Model
3########################################################################
4#
5# Copyright (C) 1999-2017 by
6#     Wolfgang Kilian <kilian@physik.uni-siegen.de>
7#     Thorsten Ohl <ohl@physik.uni-wuerzburg.de>
8#     Juergen Reuter <juergen.reuter@desy.de>
9#     with contributions from
10#     cf. main AUTHORS file
11#
12# WHIZARD is free software; you can redistribute it and/or modify it
13# under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2, or (at your option)
15# any later version.
16#
17# WHIZARD is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25#
26########################################################################
27
28model = SM
29
30alias lep = e1:E1:e2:E2
31alias prt = lep:A
32
33process bornproc = e1, E1 => e2, E2
34process rc = e1, E1 => e2, E2, A
35compile
36
37cuts = all E >= 100 MeV [prt]
38   and all abs (cos(Theta)) <= 0.99 [prt]
39   and all M2 >= (1 GeV)^2 [prt, prt]
40 
41# Define title etc. as global variables, that will be used by PLOT:
42$description = "A WHIZARD 2.2 Example"
43$x_label = "$\sqrt{s}$/GeV"
44$y_label = "$\sigma(s)$/pb"
45
46# Allocate one plot
47$title = "The Z Lineshape in $e^+e^-\to\mu^+\mu^-$"
48plot lineshape_born { x_min = 88 GeV  x_max = 95 GeV }
49 
50# Allocate another plot
51$title = "The Z Lineshape in $e^+e^-\to\mu^+\mu^-\gamma$"
52plot lineshape_rc { x_min = 88 GeV  x_max = 95 GeV }
53
54scan sqrts = ((88.0 GeV => 90.0 GeV /+ 0.5 GeV),
55              (90.1 GeV => 91.9 GeV /+ 0.1 GeV),
56              (92.0 GeV => 95.0 GeV /+ 0.5 GeV)) {
57  beams = e1, E1
58  integrate (bornproc) { iterations = 2:1000:"gw", 1:2000 }
59  record lineshape_born (sqrts, integral (bornproc) / 1000)
60  integrate (rc)   { iterations = 5:3000:"gw", 2:5000 }
61  record lineshape_rc (sqrts, integral (rc) / 1000)
62}
63
64compile_analysis { $out_file = "Z-lineshape.dat" }