![]() |
Home · Overview · Users Guide · Reference Guide |
Sartre provides a minimal set of constants but tools to easily access much more. More...
#include "Constants.h"
Name | Value | |
---|---|---|
const double | electronMass | 0.510998902E-3 GeV |
const double | electronMass2 | electronMass x electronMass |
const double | protonMass | 0.9382700 GeV |
const double | protonMass2 | protonMass x protonMass |
const double | alpha_em | 1/137.036 |
const double | hbarc | 0.197327 GeV fm |
const double | hbarc2 | hbarc x hbarc |
The above constants are used throughout Sartre. They have global scope. More information can be easily accessed through the following tools:
// In your Sartre application ... Sartre mysartre; mysartre.init("myRuncard.txt"); EventGeneratorSettings *settings = mySartre.runSettings(); // here it comes: TParticlePDG *part = lookupPDG(443); // J/psi cout << "J/psi is my favorite particle:" << cout; cout << "mass = " << part->Mass() << " GeV" << endl; // etc
There is a rich set of information reaching from spin, mass, decay channels etc available. See TParticlePDG documentation for more.
// In your Sartre application ... Sartre mysartre; mysartre.init("e_Au_Runcard.txt"); Nucleus *myNucl = mySartre.nucleus(); // Information about nucleus used cout << "Au is my favorite nucleus:" << cout; cout << "atomic mass = " << myNucl->atomicMass() << " GeV" << endl; // You can of course always access information from other available nuclei: Nucleus big(208); // Pb cout << "Pb is larger than Au:" << endl; cout << "Pb radius = " << big.radius() << " fm" << endl; cout << "Au radius = " << myNucl->radius() << " fm" << endl;
Last Update: January 8, 2013 |