elegent is hosted by Hepforge, IPPP Durham
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.

Changes between Version 5 and Version 6 of API


Ignore:
Timestamp:
Oct 4, 2013, 2:21:51 PM (11 years ago)
Author:
jkaspar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • API

    v5 v6  
    1717== Coulomb and Coulomb-interference ==
    1818
     19The code related to the Coulomb amplitude and the Coulomb-hadronic interference is grouped in the `CoulombInterference` class.
     20
     21The 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
     23The 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).
    1924
    2025
    2126== Generator class ==
    2227
     28The `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}}}
     32where `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
     34After creation of a `Generator` instance, its `Init` method shall be called to load and prepare all necessary data.
     35
     36Finally, 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}}}