1 #ifndef _PhotosUtilities_h_included_
2 #define _PhotosUtilities_h_included_
8 * @class PhotosUtilities
10 * @brief Support functions
12 * Functions for boosting, rotation, ...
14 * @author Tomasz Przedzinski, Zbigniew Was
20 namespace PhotosUtilities
22 /** PHOton radiation in decays calculation of TRIangle fie */
23 double PHOTRI(double A,double B,double C);
25 /** PHOton radiation in decays Calculate ANgle from X and Y */
26 double PHOAN1(double X,double Y);
28 /** PHOton radiation in decays Calculate ANgle from X and Y equiv to PHOAN1 */
29 double PHOAN2(double X,double Y);
31 /** PHOton radiation in decays ROtation routine around 2-nd axis */
32 void PHORO2(double ANGLE,double PVEC[4]);
35 /** PHOton radiation in decays ROtation routine around 3-rd axis */
36 void PHORO3(double ANGLE,double PVEC[4]);
38 /** Boot to-from restr frame of PBOOS1 */
39 void PHOB(int MODE,double PBOOS1[4],double vec[4]);
41 /** PHOton radiation in decays BOost routine along arbitrary axis axis */
42 void bostdq(int mode,double qq[4],double pp[4],double r[4]);
45 /** PHOton radiation in decays BOost routine along 3-rd axis */
46 void PHOBO3(double ANGLE,double PVEC[4]);
48 /** trivial method to fill value into array on positions beg to end */
49 void fill_val(int beg, int end, double* array, double value);
51 /** PHOeps vector product (normalized to unity) */
52 void PHOEPS(double vec1[4], double vec2[4], double eps[4]);
54 /** PHOton radiation in decays function for SPIn determination */
55 double PHOSPI(int idhep);
57 /** PHOton radiation in decays CHArge determination */
58 double PHOCHA(int idhep);
60 } // namespace PhotosUtilities
62 } // namespace Photospp