EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
blob
master
base
cbmbase
cbmdata
dbase
eic
ayk
3d.cxx
3d.h
ayk.h
aykLinkDef.h
CoordSystem.cxx
CoordSystem.h
import.cxx
import.h
Keyword.cxx
Keyword.h
KfMatrix.cxx
KfMatrix.h
Mgrid.cxx
Mgrid.h
MgridDirection.cxx
MgridDirection.h
MgridHeader.h
MgridInterpolation.cxx
MgridInterpolation.h
Splitter.cxx
Splitter.h
ThreeDeePolynomial.cxx
ThreeDeePolynomial.h
ThreeDeePolySpace.cxx
ThreeDeePolySpace.h
base
cad
calorimetry
detectors
event
field
htc
htree
infrastructure
jana
proto
tracking
eventdisplay
examples
fairtools
field
gconfig
geane
genfit
GenfitTools
geobase
geometry
input
littrack
parbase
passive
pCDR-2018
pid
pnddata
PndTools
rich
trackbase
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ayk.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ayk.h
1
/* -------------------------------------------------------------------------- */
2
/* ayk.h */
3
/* */
4
/* Just a few defines; all the rest is now moved to other header files. */
5
/* */
6
/* A.Kisselev, PNPI, St.Petersburg, Russia. */
7
/* e-mail: kisselev@hermes.desy.de */
8
/* -------------------------------------------------------------------------- */
9
10
#ifndef _AYK_H
11
#define _AYK_H
12
13
// Used everywhere;
14
#define _X_ 0
15
#define _Y_ 1
16
#define _Z_ 2
17
18
// PI should be handy;
19
#ifndef PI
20
//#include <math.h>
21
#include <cmath>
22
#define PI M_PI
23
#endif
24
25
// Yes, a macro;
26
#ifndef SQR
27
#define SQR(x) ((x)*(x))
28
#endif
29
30
// Few trivial but useful defines;
31
#define mm2cm(val) ((val)/10.)
32
#define m2cm(val) ((val)*100.)
33
#define inch2cm(val) ((val)*2.54)
34
#define m2mm(val) ((val)*1000.)
35
#define cm2mm(val) ((val)*10.)
36
#define cm2m(val) ((val)/100.)
37
#define gev2mev(val) ((val)*1000.)
38
#define mev2gev(val) ((val)/1000.)
39
#define deg2rad(val) ((val)*PI/180.)
40
#define deg2mrad(val) ((val)*PI/.18)
41
#define rad2deg(val) ((val)*180./PI)
42
#define mrad2deg(val) ((val)*.18/PI)
43
#define tesla2kgs(val) ((val)*10.)
44
45
#endif
EicRoot
blob
master
eic
ayk
ayk.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration