PhotosUtilities.h
1 #ifndef _PhotosUtilities_h_included_
2 #define _PhotosUtilities_h_included_
3 #include <cmath>
4 #include <iostream>
5 using std::cout;
6 using std::endl;
7 /**
8  * @class PhotosUtilities
9  *
10  * @brief Support functions
11  *
12  * Functions for boosting, rotation, ...
13  *
14  * @author Tomasz Przedzinski, Zbigniew Was
15  * @date 29 June 2013
16  */
17 namespace Photospp
18 {
19 
20 namespace PhotosUtilities
21 {
22  /** PHOton radiation in decays calculation of TRIangle fie */
23  double PHOTRI(double A,double B,double C);
24 
25  /** PHOton radiation in decays Calculate ANgle from X and Y */
26  double PHOAN1(double X,double Y);
27 
28  /** PHOton radiation in decays Calculate ANgle from X and Y equiv to PHOAN1 */
29  double PHOAN2(double X,double Y);
30 
31  /** PHOton radiation in decays ROtation routine around 2-nd axis */
32  void PHORO2(double ANGLE,double PVEC[4]);
33 
34 
35  /** PHOton radiation in decays ROtation routine around 3-rd axis */
36  void PHORO3(double ANGLE,double PVEC[4]);
37 
38  /** Boot to-from restr frame of PBOOS1 */
39  void PHOB(int MODE,double PBOOS1[4],double vec[4]);
40 
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]);
43 
44 
45  /** PHOton radiation in decays BOost routine along 3-rd axis */
46  void PHOBO3(double ANGLE,double PVEC[4]);
47 
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);
50 
51  /** PHOeps vector product (normalized to unity) */
52  void PHOEPS(double vec1[4], double vec2[4], double eps[4]);
53 
54  /** PHOton radiation in decays function for SPIn determination */
55  double PHOSPI(int idhep);
56 
57  /** PHOton radiation in decays CHArge determination */
58  double PHOCHA(int idhep);
59 
60 } // namespace PhotosUtilities
61 
62 } // namespace Photospp
63 #endif
64 
Support functions.