whizard is hosted by Hepforge, IPPP Durham

Ticket #153: bug3.sin

File bug3.sin, 805 bytes (added by sschmidt, 15 years ago)

very simple example of shadowing

Line 
1model = SM
2
3library = "bug3"
4
5process eeuu =  e1,E1   ->  u, U
6
7compile ("bug3")
8
9!---------------------------------------------
10
11sqrts = 500 GeV
12beams = e1, E1
13
14integrate (eeuu) {
15  iterations = 1:20000
16}
17
18show (integral (eeuu))
19
20$title = "Some distribution"
21$description = "Polar angle $\theta$ of the outgoing Jet"
22$xlabel = ""
23$ylabel = ""
24$label = "\theta(\mu^-)"
25$physical_unit = "^\circ"
26histogram some_distribution (-1, 1, 0.1)
27
28Phi = 0
29! if the user by chance uses a variable by the name of some already defined observable
30! the content of the variable will be lost
31
32! one would expect only zeros, but the Phi of the event will be used, not the defined one
33! maybe there should be a warning?
34analysis = record some_distribution (eval Theta*Phi [u])
35
36n_events = 1000
37
38simulate (eeuu)
39
40write_analysis