Main Page
Namespaces
Classes
Package Documentation
src
CommonTools
Utils
interface
Angle.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_Angle_h
2
#define CommonTools_Utils_Angle_h
3
4
/* \class Angle
5
*
6
* returns three-dimensional Angle between two objects;
7
* defined via scalar product:
8
* angle = acos((v1 * v2)/(|v1| * |v2|))
9
*
10
* \author Christian Veelken, UC Davis
11
*/
12
13
#include "
DataFormats/Math/interface/LorentzVector.h
"
14
#include "
DataFormats/Math/interface/angle.h
"
15
16
template
<
typename
T1,
typename
T2 = T1>
17
struct
Angle
{
18
double
operator()
(
const
T1 & t1,
const
T2 & t2 )
const
{
19
return
angle
( t1, t2 );
20
}
21
};
22
23
#endif
Angle::operator()
double operator()(const T1 &t1, const T2 &t2) const
Definition:
Angle.h:18
angle.h
LorentzVector.h
Angle
Definition:
Angle.h:17
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition:
angle.h:11
Generated for CMSSW Reference Manual by
1.8.11