EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ayk.h File Reference
#include <cmath>
+ Include dependency graph for ayk.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _X_   0
 
#define _Y_   1
 
#define _Z_   2
 
#define PI   M_PI
 
#define SQR(x)   ((x)*(x))
 
#define mm2cm(val)   ((val)/10.)
 
#define m2cm(val)   ((val)*100.)
 
#define inch2cm(val)   ((val)*2.54)
 
#define m2mm(val)   ((val)*1000.)
 
#define cm2mm(val)   ((val)*10.)
 
#define cm2m(val)   ((val)/100.)
 
#define gev2mev(val)   ((val)*1000.)
 
#define mev2gev(val)   ((val)/1000.)
 
#define deg2rad(val)   ((val)*PI/180.)
 
#define deg2mrad(val)   ((val)*PI/.18)
 
#define rad2deg(val)   ((val)*180./PI)
 
#define mrad2deg(val)   ((val)*.18/PI)
 
#define tesla2kgs(val)   ((val)*10.)
 

Macro Definition Documentation

#define _X_   0

Definition at line 14 of file ayk.h.

View newest version in sPHENIX GitHub at line 14 of file ayk.h

#define _Y_   1

Definition at line 15 of file ayk.h.

View newest version in sPHENIX GitHub at line 15 of file ayk.h

#define _Z_   2

Definition at line 16 of file ayk.h.

View newest version in sPHENIX GitHub at line 16 of file ayk.h

#define cm2m (   val)    ((val)/100.)

Definition at line 36 of file ayk.h.

View newest version in sPHENIX GitHub at line 36 of file ayk.h

#define cm2mm (   val)    ((val)*10.)

Definition at line 35 of file ayk.h.

View newest version in sPHENIX GitHub at line 35 of file ayk.h

Referenced by EicHtcTask::Exec().

#define deg2mrad (   val)    ((val)*PI/.18)

Definition at line 40 of file ayk.h.

View newest version in sPHENIX GitHub at line 40 of file ayk.h

#define deg2rad (   val)    ((val)*PI/180.)

Definition at line 39 of file ayk.h.

View newest version in sPHENIX GitHub at line 39 of file ayk.h

Referenced by Mgrid::convertOutputField(), FwdHoughTree::MappingCall(), Mgrid::recalculatePosition(), FairGeoRotation::setEulerAngles(), and transform_coord_type().

#define gev2mev (   val)    ((val)*1000.)

Definition at line 37 of file ayk.h.

View newest version in sPHENIX GitHub at line 37 of file ayk.h

#define inch2cm (   val)    ((val)*2.54)

Definition at line 33 of file ayk.h.

View newest version in sPHENIX GitHub at line 33 of file ayk.h

#define m2cm (   val)    ((val)*100.)

Definition at line 32 of file ayk.h.

View newest version in sPHENIX GitHub at line 32 of file ayk.h

Referenced by m2cm_fun().

#define m2mm (   val)    ((val)*1000.)

Definition at line 34 of file ayk.h.

View newest version in sPHENIX GitHub at line 34 of file ayk.h

#define mev2gev (   val)    ((val)/1000.)

Definition at line 38 of file ayk.h.

View newest version in sPHENIX GitHub at line 38 of file ayk.h

#define mm2cm (   val)    ((val)/10.)

Definition at line 31 of file ayk.h.

View newest version in sPHENIX GitHub at line 31 of file ayk.h

#define mrad2deg (   val)    ((val)*.18/PI)

Definition at line 42 of file ayk.h.

View newest version in sPHENIX GitHub at line 42 of file ayk.h

#define PI   M_PI

Definition at line 22 of file ayk.h.

View newest version in sPHENIX GitHub at line 22 of file ayk.h

#define rad2deg (   val)    ((val)*180./PI)

Definition at line 41 of file ayk.h.

View newest version in sPHENIX GitHub at line 41 of file ayk.h

Referenced by cross_l_l(), and transform_coord_type().

#define tesla2kgs (   val)    ((val)*10.)

Definition at line 43 of file ayk.h.

View newest version in sPHENIX GitHub at line 43 of file ayk.h

Referenced by tesla2kgs_fun().