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
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
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
CommonTools
CandUtils
src
helicityAngle.cc
Go to the documentation of this file.
1
// $Id: helicityAngle.cc,v 1.14 2007/12/11 08:42:53 hegner Exp $
2
#include "
CommonTools/CandUtils/interface/helicityAngle.h
"
3
#include "
DataFormats/Candidate/interface/Candidate.h
"
4
#include "
CommonTools/CandUtils/interface/Booster.h
"
5
#include <Math/VectorUtil.h>
6
using namespace
reco
;
7
using namespace
std
;
8
9
double
helicityAngle
(
const
reco::Candidate
& mother,
const
reco::Candidate
& daughter) {
10
Particle::Vector
boost
= mother.
p4
().BoostToCM();
11
Particle::LorentzVector
pdau = ROOT::Math::VectorUtil::boost(daughter.
p4
(),
boost
);
12
double
h
= ROOT::Math::VectorUtil::Angle(pdau,
boost
);
13
if
(
h
>
M_PI
/ 2)
14
h
=
M_PI
-
h
;
15
return
h
;
16
}
17
18
double
helicityAngle
(
const
Candidate
&
cand
) {
19
assert
(
cand
.numberOfDaughters() == 2);
20
return
helicityAngle
(
cand
, *
cand
.daughter(0));
21
}
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
cms::cuda::assert
assert(be >=bs)
Booster.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
boost
Definition:
CLHEP.h:16
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Particle.h:21
reco::Particle::Vector
math::XYZVector Vector
point in the space
Definition:
Particle.h:27
h
helicityAngle
double helicityAngle(const reco::Candidate &mother, const reco::Candidate &daughter)
return the helicity angle for two particles.
Definition:
helicityAngle.cc:9
cand
Definition:
decayParser.h:32
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:49
reco::Candidate
Definition:
Candidate.h:27
std
Definition:
JetResolutionObject.h:76
reco::Candidate::p4
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
helicityAngle.h
Candidate.h
Generated for CMSSW Reference Manual by
1.8.16