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
DQMOffline
Trigger
interface
EgHLTParticlePair.h
Go to the documentation of this file.
1
#ifndef DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
2
#define DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
3
4
//a useful struct for defining a pair of particles
5
6
namespace
egHLT
{
7
template
<
class
T>
8
struct
ParticlePair
{
9
const
T
&
part1
;
10
const
T
&
part2
;
11
12
ParticlePair
(
const
T
& particle1,
const
T
& particle2) :
part1
(particle1),
part2
(particle2) {}
13
~ParticlePair
() =
default
;
14
15
float
mass
()
const
{
return
(
part1
.p4() +
part2
.p4()).
mag
(); }
16
};
17
}
// namespace egHLT
18
#endif
egHLT::ParticlePair
Definition:
EgHLTParticlePair.h:8
egHLT::ParticlePair::~ParticlePair
~ParticlePair()=default
egHLT::ParticlePair::part2
const T & part2
Definition:
EgHLTParticlePair.h:10
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition:
Basic3DVectorLD.h:127
egHLT::ParticlePair::ParticlePair
ParticlePair(const T &particle1, const T &particle2)
Definition:
EgHLTParticlePair.h:12
egHLT
Definition:
EgHLTBinData.h:10
T
long double T
Definition:
Basic3DVectorLD.h:48
egHLT::ParticlePair::part1
const T & part1
Definition:
EgHLTParticlePair.h:9
egHLT::ParticlePair::mass
float mass() const
Definition:
EgHLTParticlePair.h:15
Generated for CMSSW Reference Manual by
1.8.14