Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8308518
refConstants.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
7 KB
Subscribers
None
refConstants.html
View Options
<!--
//==============================================================================
// 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"
>
</
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"postheader"
><
a
href
=
"index.html"
><
font
color
=
"#004faf"
>
Home
</
font
></
a
>
·
<
a
href
=
"overview.html"
><
font
color
=
"#004faf"
>
Overview
</
font
></
a
>
·
<
a
href
=
"usersGuide.html"
><
font
color
=
"#004faf"
>
Users Guide
</
font
></
a
>
·
<
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"
>
</
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
>
</
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(
"
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
</
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(
"
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;
</
pre
>
</
ul
>
<
address
><
div
align
=
"center"
>
<
table
border
=
"0"
cellspacing
=
"0"
width
=
"100%"
><
tbody
><
tr
class
=
"address"
>
<
td
align
=
"left"
width
=
"40%"
>
</
td
>
<
td
align
=
"center"
width
=
"20%"
>
</
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
Details
Attached
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)
Attached To
rSARTRESVN sartresvn
Event Timeline
Log In to Comment