= Elegent = Elegent (Elastic Event GENeraTor) is a Monte-Carlo generator of (anti-)proton-proton collisions, based on a number of theoretical/phenomenological models. The project is maintained by Jan Kašpar (contact info at the [[https://elegent.hepforge.org/|home page]]). == Physics == * [[HadronicModels|models of hadronic/strong interaction]] * [[CoulombInteraction|description of Coulomb interaction]] * [[CoulombHadronicInterference|models of Coulomb-hadronic interference]] == Elegent package == The package consists of the following components. 1. C++ implementation of the models described above. For more details, please refer to the [[API|API description]]. 1. A program (`ElegentDistributionSampler`) to build a number of distributions of interest (differential and cumulative cross-sections, etc.) at a given collision energy. The output is a ROOT file called *datasheet* (certain datasheets of interest are available for direct [[http://www.hepforge.org/downloads/elegent|download]]). 1. A class (`Generator`) that loads a specified cumulative distribution function from a datasheet and generates random events in the HepMC format. This class can easily embedded in any program. As an example, you can have a look at the `TestElegent` program. * model implementation API of hadronic models: inheriting `Model`; methods `Amp` and `Prf` API of coulomb: == Users' guide == === Download and compilation === Either download an [[http://www.hepforge.org/downloads/elegent|Elegent release]] or checkout the code from Subversion: `svn co svn+ssh://svn.hepforge.org/hepforge/svn/elegent/trunk` Edit the `makefile` such that `ROOTDIR` and `HepMCDIR` point to your ROOT and HepMC installations. Run `make`. === Generation of datasheets === NB: you might want to skip this step as there are ready-made datasheets available for [[http://www.hepforge.org/downloads/elegent|download]]. `bin/ElegentDistributionSampler` * datasheet structure, ROOT file, 2 types of sampling === Testing the event generator === `bin/ElegentTest `