@@ -53,7 +53,8 @@ namespace hydra {
53
53
* This functor calculates the delta angle between decay plane of the particle with four-vector d2 and d3 (same plane)
54
54
* and h1 (other plane)
55
55
*/
56
- class PlanesDeltaAngle :public BaseFunctor <PlanesDeltaAngle, double , 0 >
56
+
57
+ class PlanesDeltaAngle :public BaseFunctor <PlanesDeltaAngle, double (Vector4R, Vector4R, Vector4R), 0 >
57
58
{
58
59
59
60
public:
@@ -63,18 +64,18 @@ class PlanesDeltaAngle:public BaseFunctor<PlanesDeltaAngle, double, 0>
63
64
64
65
__hydra_host__ __hydra_device__
65
66
PlanesDeltaAngle ( PlanesDeltaAngle const & other):
66
- BaseFunctor<PlanesDeltaAngle,double , 0 >(other)
67
+ BaseFunctor<PlanesDeltaAngle,double (Vector4R, Vector4R, Vector4R) , 0 >(other)
67
68
{}
68
69
69
70
__hydra_host__ __hydra_device__ inline
70
71
PlanesDeltaAngle& operator =( PlanesDeltaAngle const & other){
71
72
if (this ==&other) return *this ;
72
- BaseFunctor<PlanesDeltaAngle,double , 0 >::operator =(other);
73
+ BaseFunctor<PlanesDeltaAngle,double (Vector4R, Vector4R, Vector4R) , 0 >::operator =(other);
73
74
return *this ;
74
75
}
75
76
76
77
__hydra_host__ __hydra_device__ inline
77
- double Evaluate (unsigned int , hydra::Vector4R* p ) const {
78
+ double Evaluate ( hydra::Vector4R d2 , hydra::Vector4R d3, hydra::Vector4R h1 ) const {
78
79
79
80
hydra::Vector4R d2 = p[0 ];
80
81
hydra::Vector4R d3 = p[1 ];
@@ -84,23 +85,6 @@ class PlanesDeltaAngle:public BaseFunctor<PlanesDeltaAngle, double, 0>
84
85
85
86
}
86
87
87
- template <typename T>
88
- __hydra_host__ __hydra_device__ inline
89
- double Evaluate (T p) const {
90
-
91
- hydra::Vector4R d2 = get<0 >(p);
92
- hydra::Vector4R d3 = get<1 >(p);
93
- hydra::Vector4R h1 = get<2 >(p);
94
-
95
- return chi_angle ( d2, d3, h1);
96
- }
97
-
98
- __hydra_host__ __hydra_device__ inline
99
- double operator ()(Vector4R const & d2, Vector4R const & d3, Vector4R const & h1, Vector4R const & h2) const {
100
-
101
- return chi_angle ( d2, d3, h1);
102
-
103
- }
104
88
105
89
private:
106
90
0 commit comments