Fork me on GitHub

Changeset 236 in svn for trunk/Utilities/Hector/include


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

moving from 'PI' to 'pi'

File:
1 edited

Legend:

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

    r3 r236  
    5757        /// Fills the beam with particles in given position/angle/energy        intervals (flat distribution)
    5858                //void particleGun(const unsigned int Number_of_particles, const float E_min, const float E_max, const float fs_min, const float fs_max, const float fx_min, const float fx_max, const float fy_min, const float fy_max, const float tx_min, const float tx_max, const float ty_min, const float ty_max, const float p_mass, const double p_charge);
    59                 void particleGun(const unsigned int Number_of_particles, const float E_min=BE, const float E_max=BE, const float fs_min=0, const float fs_max=0, const float fx_min=0, const float fx_max=0, const float fy_min=0, const float fy_max=0, const float tx_min=-PI/2., const float tx_max=PI/2., const float ty_min=-PI/2., const float ty_max=PI/2., const float p_mass=MP, const double p_charge=QP, const bool flat = true);
     59                void particleGun(const unsigned int Number_of_particles, const float E_min=BE, const float E_max=BE, const float fs_min=0, const float fs_max=0, const float fx_min=0, const float fx_max=0, const float fy_min=0, const float fy_max=0, const float tx_min=-pi/2., const float tx_max=pi/2., const float ty_min=-pi/2., const float ty_max=pi/2., const float p_mass=MP, const double p_charge=QP, const bool flat = true);
    6060
    6161        /// Fills the beam with particles
     
    185185        /// Number of particles in this beam
    186186                unsigned int Nparticles;
     187
     188        static const float pi = 3.14159265358979312;
    187189};
    188190
Note: See TracChangeset for help on using the changeset viewer.