Fork me on GitHub

Changeset 235 in svn for trunk/Utilities


Ignore:
Timestamp:
Feb 3, 2009, 2:17:50 PM (16 years ago)
Author:
Xavier Rouby
Message:

changing ugly #define statements to a nice enum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Hector/include/H_Parameters.h

    r3 r235  
    2929   /// proton charge [e]
    3030const double QP=1.;
    31    /// pi
    32 #ifndef __PI__
    33 #define __PI__
    34 const double PI=acos(-1.);
    35 #endif
    3631   /// conversion factor for \f$\mu\f$rad <-> rad
    3732const double URAD=1000000.;
     
    6863
    6964// local defines, used in H_BeamParticle & H_OpticalElements
    70 #define LENGTH_VEC 5
    71 #define INDEX_X 0
    72 #define INDEX_TX 1
    73 #define INDEX_Y 2
    74 #define INDEX_TY 3
    75 #define INDEX_S 4
     65enum {INDEX_X=0, INDEX_TX, INDEX_Y, INDEX_TY, INDEX_S, LENGTH_VEC};
    7666// (x,theta_x,y,theta_y,s)
    77 //
    7867
    7968/// include Pythia libraries ? (not included on some ROOT installations)
Note: See TracChangeset for help on using the changeset viewer.