info about whizard code
hi,
i tried this code because i wanna try to simulate a beam behavior,
i wanna consider multiple angle scattering beetween A and e1 and also i wanna generate a different number of events for every angle:
process eeprovamultifasci = A, e1 => e1,e1,E1
beams = A, e1 => gaussian
beams_momentum = 50 keV, 10 GeV
!plot angle
plot E_Theta_Px_Py
sample_format = lhef
scan real x= (0 degree => 5 degree /+ 1 degree) {
!plot angle
!plot Px_Py
!n_events = 10
scan n_events= (10 => 15 /+ 1) {
beams_theta = 0, x
integrate (eeprovamultifasci)
$sample = sprintf "eeff_%1.3f" (real (x))
analysis= record E_Theta_Px_Py (eval E["E1"], eval Theta["E1"], eval Px["E1"], eval Py["E1"])
write_analysis
simulate (eeprovamultifasci)
}
compile_analysis
i was thinking this code start the simulation for theta=0 and generates 10 events, then it does a run for theta=1 and nevents=11 and so on but the code doesn't work.
did i just write a wrong code or simply whizard can't do the simulation changing both theta and nevents?
Thank again in advance,
Kind regards
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- WHIZARD Edit question
- Assignee:
- Juergen Reuter Edit question
- Solved by:
- Pia Bredt
- Solved:
- Last query:
- Last reply: