Page MenuHomeHEPForge

refConstants.html
No OneTemporary

refConstants.html

<!--
//==============================================================================
// refConstants.html
//
// Copyright (C) 2010-2013 Tobias Toll and Thomas Ullrich
//
// This file is part of Sartre version: 1.1
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation.
// This program is distributed in the hope that it will be useful,
// but without any warranty; without even the implied warranty of
// merchantability or fitness for a particular purpose. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Author: Thomas Ullrich
// Last update:
// $Date: 2013-05-29 21:25:21 +0100 (Wed, 29 May 2013) $
// $Author: thomas.ullrich@bnl.gov $
//==============================================================================
-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<title>Sartre - Physics Constants</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <link href="sartre.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="120" align="left" valign="top"><img src="images/sartreLogo.png" alt="" border="0" align="right" /></td>
<td width="10">&nbsp;&nbsp;</td>
<td align="left" valign="middle" class="postheader"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot;
<a href="overview.html"><font color="#004faf">Overview</font></a>&nbsp;&middot;
<a href="usersGuide.html"><font color="#004faf">Users Guide</font></a>&nbsp;&middot;
<a href="referenceGuide.html"><font color="#004faf">Reference Guide</font> </a></td></tr>
</table>
<h1 class="title">Physics Constants in Sar<em>t</em>re</h1>
<p>Sartre provides a minimal set of constants but tools to easily access
much more. <a href="#details">More...</a></p>
<pre><span class="preprocessor"> #include</span> "Constants.h"</pre>
<hr>
<h2>Physics Constants </h2>
<table width="700" border="0" cellpadding="5">
<tr>
<th width="100" scope="col">&nbsp;</th>
<th width="200" align="left" valign="top" scope="col">Name</th>
<th align="left" valign="top" scope="col">Value</th>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>electronMass</td>
<td align="left" valign="top">0.510998902E-3 GeV</td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>electronMass2</td>
<td align="left" valign="top">electronMass x electronMass</td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>protonMass</td>
<td align="left" valign="top">0.9382700 GeV</td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>protonMass2</td>
<td align="left" valign="top">protonMass x protonMass</td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>alpha_em</td>
<td align="left" valign="top">1/137.036 </td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>hbarc</td>
<td align="left" valign="top">0.197327 GeV fm</td>
</tr>
<tr>
<td align="right" valign="top">const double</td>
<td>hbarc2</td>
<td align="left" valign="top">hbarc x hbarc</td>
</tr>
</table>
<p>&nbsp;</p>
<hr>
<h2><a name="details" id="details"></a>Detailed Description</h2>
<p>The above constants are used throughout Sartre. They have global scope.
More information can be easily accessed through the following tools:</p>
<ul>
<li>The EventGeneratorSettings class (a singleton) provide through its
base class access to a lookup table of particle properties provided
by ROOT. Here's an example:</li>
<pre class="code">
// In your Sartre application ...
Sartre mysartre;
mysartre.init(&quot;myRuncard.txt&quot;);
EventGeneratorSettings *settings = mySartre.runSettings();
// here it comes:
TParticlePDG *part = lookupPDG(443); // J/psi
cout &lt;&lt; &quot;J/psi is my favorite particle:&quot; &lt;&lt; cout;
cout &lt;&lt; &quot;mass = &quot; &lt;&lt; part-&gt;Mass() &lt;&lt; &quot; GeV&quot; &lt;&lt; endl;
// etc</pre>
<p>There is a rich set of information reaching from spin, mass, decay
channels etc available. See <a href="http://root.cern.ch/root/html/TParticlePDG.html">TParticlePDG</a> documentation
for more.
</p>
<li>Information on nuclei can be obtained through the <a href="refNucleus.html">Nucleus</a> class. One
Example:</li>
<pre class="code">
// In your Sartre application ...
Sartre mysartre;
mysartre.init(&quot;e_Au_Runcard.txt&quot;);
Nucleus *myNucl = mySartre.nucleus();
// Information about nucleus used
cout &lt;&lt; &quot;Au is my favorite nucleus:&quot; &lt;&lt; cout;
cout &lt;&lt; &quot;atomic mass = &quot; &lt;&lt; myNucl-&gt;atomicMass() &lt;&lt; &quot; GeV&quot; &lt;&lt; endl;
// You can of course always access information from other available nuclei:
Nucleus big(208); // Pb
cout &lt;&lt; &quot;Pb is larger than Au:&quot; &lt;&lt; endl;
cout &lt;&lt; &quot;Pb radius = &quot; &lt;&lt; big.radius() &lt;&lt; &quot; fm&quot; &lt;&lt; endl;
cout &lt;&lt; &quot;Au radius = &quot; &lt;&lt; myNucl-&gt;radius() &lt;&lt; &quot; fm&quot; &lt;&lt; endl; </pre>
</ul>
<address><div align="center">
<table border="0" cellspacing="0" width="100%"><tbody><tr class="address">
<td align="left" width="40%">&nbsp;</td>
<td align="center" width="20%">&nbsp;</td>
<td align="right" width="40%"><div align="right"><br>Last Update:
<!-- #BeginDate format:Am1 -->January 8, 2013<!-- #EndDate -->
</div></td>
</tr></tbody></table></div></address>
</body></html>

File Metadata

Mime Type
text/html
Expires
Sat, Dec 21, 12:18 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3998330
Default Alt Text
refConstants.html (7 KB)

Event Timeline