Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
CommonTools
Utils
interface
MasslessInvariantMass.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_MasslessInvariantMass_h
2
#define CommonTools_Utils_MasslessInvariantMass_h
3
#include "
DataFormats/Math/interface/LorentzVector.h
"
4
#include "
DataFormats/Math/interface/Vector3D.h
"
5
6
struct
MasslessInvariantMass
{
7
template
<
typename
T1,
typename
T2>
8
double
operator()
(
const
T1&
t1
,
const
T2&
t2
)
const
{
9
const
math::XYZVector
&
p1
=
t1
.momentum(), &
p2
=
t2
.momentum();
10
math::XYZTLorentzVector
v1(
p1
.x(),
p1
.y(),
p1
.z(),
p1
.r()), v2(
p2
.x(),
p2
.y(),
p2
.z(),
p2
.r());
11
return
(v1 + v2).mass();
12
}
13
};
14
15
#endif
SiStripOfflineCRack_cfg.p2
p2
Definition:
SiStripOfflineCRack_cfg.py:140
LaserDQM_cfg.p1
p1
Definition:
LaserDQM_cfg.py:42
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition:
LorentzVector.h:29
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
LorentzVector.h
MasslessInvariantMass::operator()
double operator()(const T1 &t1, const T2 &t2) const
Definition:
MasslessInvariantMass.h:8
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:31
MasslessInvariantMass
Definition:
MasslessInvariantMass.h:6
Vector3D.h
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Generated for CMSSW Reference Manual by
1.8.14