close
Warning:
Can't synchronize with repository "(default)" (/hepforge/svn/elegent does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Oct 4, 2013, 2:21:51 PM (11 years ago)
- Author:
-
jkaspar
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
17 | 17 | == Coulomb and Coulomb-interference == |
18 | 18 | |
| 19 | The code related to the Coulomb amplitude and the Coulomb-hadronic interference is grouped in the `CoulombInterference` class. |
| 20 | |
| 21 | The choice of the [[FormFactors|form factor parametrisation]] is made by `ffType` data member (possibilities are given by the `FFType` enum). The methods `FF_e(t)`, `FF_m(t)` and `FF_sq(t)` return the electric, magnetic and square of the effective form factor. |
| 22 | |
| 23 | The amplitude due to Coulomb, hadronic or both interactions can be obtained from the `Amp(t)` method. The type of the amplitude is chosen via the `mode` data member (choices given by the `CIMode` enum). |
19 | 24 | |
20 | 25 | |
21 | 26 | == Generator class == |
22 | 27 | |
| 28 | The `Generator` class implements a Monte-Carlo generator of elastic nucleon-nucleon scattering events according to a given cumulative distribution function (can be built by `ElegentTDistributionSampler` program). The constructor takes these parameters: |
| 29 | {{{ |
| 30 | Generator(file, path, t_min, t_max, verbosity) |
| 31 | }}} |
| 32 | where `file` refers to a ROOT file with the cumulative distribution function. `path` gives the path of the distribution within the file. `t_min` and `t_max` can be used to constrain the t-range of the generated events. `verbosity` sets the verbosity level. |
| 33 | |
| 34 | After creation of a `Generator` instance, its `Init` method shall be called to load and prepare all necessary data. |
| 35 | |
| 36 | Finally, a random event in HepMC format can be generated as follows: |
| 37 | {{{ |
| 38 | GenEvent* gEv = new GenEvent(); |
| 39 | gEv->set_event_number(...); |
| 40 | generator.Generate(gEv); |
| 41 | }}} |