whizard is hosted by Hepforge, IPPP Durham

Ticket #419: ticket419.sin

File ticket419.sin, 1.2 KB (added by sschmidt, 14 years ago)

sample input file

Line 
1model = SM
2alias quark = u:d:s:c
3alias antiq = U:D:S:C
4process qqee = quark:antiq, quark:antiq => e1, E1
5process qqeeg = quark:antiq, quark:antiq => e1, E1, g
6process qgeeq = quark:antiq, g => e1, E1, quark:antiq
7process gqeeq = g, quark:antiq => e1, E1, quark:antiq
8
9ms = 0
10mc = 0
11
12compile
13
14sqrts = 1960 GeV
15beams = p, pbar => lhapdf
16
17$title = "Pt of Z"
18$description = "Pt"
19$label = "E"
20$physical_unit = "GeV"
21$xlabel = ""
22$ylabel = ""
23histogram Pt_distribution_1 (0, 250, 1)
24histogram Pt_distribution_2 (0, 250, 1)
25
26cuts = all M > 80 GeV [combine[e1,E1]]
27       and all M < 100 GeV [combine[e1,E1]]
28       and all Pt > 10 GeV [g:quark:antiq]
29       and all Eta < 5 [g:quark:antiq]
30
31seed = 1
32
33integrate(qqee, qqeeg, qgeeq, gqeeq) { iterations = 2:20000 }
34
35n_events = 40
36
37?rebuild_events=true
38$sample = "ticket419"
39sample_format = lhef
40?write_raw = false
41
42!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43!!!!!! for true the correct histogram is filled
44! analysis = if 2>1 then
45!!!!!! for false expression both histograms stay empty
46analysis = if 1>2 then
47                record Pt_distribution_1 (1)
48        else
49                record Pt_distribution_2 (1)
50        endif
51
52simulate(qqee, qqeeg, qgeeq, gqeeq)
53
54compile_analysis { $out_file = "ticket419.dat" }
55
56exec("grep entries ticket419.dat")
57