Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-27 09:20:26

0001 #ifndef _PhotosUtilities_h_included_
0002 #define _PhotosUtilities_h_included_
0003 #include <cmath>
0004 #include <iostream>
0005 using std::cout;
0006 using std::endl;
0007 /**
0008  * @class PhotosUtilities
0009  *
0010  * @brief Support functions
0011  *
0012  * Functions for boosting, rotation, ...
0013  *
0014  * @author Tomasz Przedzinski, Zbigniew Was
0015  * @date 29 June 2013
0016  */
0017 namespace Photospp
0018 {
0019 
0020 namespace PhotosUtilities
0021 {
0022   /** PHOton radiation in decays calculation of TRIangle fie */
0023   double PHOTRI(double A,double B,double C);
0024 
0025   /** PHOton radiation in decays Calculate ANgle from X and Y */
0026   double PHOAN1(double X,double Y);
0027 
0028   /** PHOton radiation in decays Calculate ANgle from X and Y equiv to PHOAN1 */
0029   double PHOAN2(double X,double Y);
0030 
0031   /** PHOton radiation in decays ROtation routine around 2-nd axis */
0032   void PHORO2(double ANGLE,double PVEC[4]);
0033 
0034 
0035   /** PHOton radiation in decays ROtation routine around 3-rd axis */
0036   void PHORO3(double ANGLE,double PVEC[4]);
0037 
0038   /** Boot to-from restr frame of PBOOS1 */
0039   void PHOB(int MODE,double PBOOS1[4],double vec[4]);
0040 
0041   /** PHOton radiation in decays BOost routine along arbitrary axis axis */
0042   void bostdq(int mode,double qq[4],double pp[4],double r[4]);
0043 
0044 
0045   /** PHOton radiation in decays BOost routine along 3-rd axis */
0046   void PHOBO3(double ANGLE,double PVEC[4]);
0047 
0048   /** trivial method to fill value into array on positions beg to end */
0049   void fill_val(int beg, int end, double* array, double value); 
0050 
0051  /** PHOeps vector product (normalized to unity) */
0052   void PHOEPS(double vec1[4], double vec2[4], double eps[4]);
0053 
0054  /** PHOton radiation  in decays function for SPIn determination */
0055   double PHOSPI(int idhep);
0056 
0057  /**  PHOton radiation in decays CHArge determination */
0058   double PHOCHA(int idhep);
0059 
0060 } // namespace PhotosUtilities
0061 
0062 } // namespace Photospp
0063 #endif
0064