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
RecoTracker
DeDx
interface
GenericAverageDeDxEstimator.h
Go to the documentation of this file.
1
#ifndef RecoTrackerDeDx_GenericAverageDeDxEstimator_h
2
#define RecoTrackerDeDx_GenericAverageDeDxEstimator_h
3
4
#include "
RecoTracker/DeDx/interface/BaseDeDxEstimator.h
"
5
#include "
RecoTracker/DeDx/interface/DeDxTools.h
"
6
#include "
DataFormats/TrackReco/interface/DeDxHit.h
"
7
8
class
GenericAverageDeDxEstimator
:
public
BaseDeDxEstimator
{
9
public
:
10
GenericAverageDeDxEstimator
(
const
edm::ParameterSet
& iConfig) {
m_expo
= iConfig.
getParameter
<
double
>(
"exponent"
); }
11
12
std::pair<float, float>
dedx
(
const
reco::DeDxHitCollection
& Hits)
override
{
13
float
result
= 0;
14
size_t
n
= Hits.size();
15
for
(
size_t
i
= 0;
i
<
n
;
i
++) {
16
result
+=
pow
(Hits[
i
].
charge
(),
m_expo
);
17
}
18
return
std::make_pair(((
n
> 0) ?
pow
(
result
/
n
, 1. /
m_expo
) : 0.0), -1);
19
}
20
21
private
:
22
float
m_expo
;
23
};
24
25
#endif
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:307
mps_fire.i
i
Definition:
mps_fire.py:429
GenericAverageDeDxEstimator
Definition:
GenericAverageDeDxEstimator.h:8
GenericAverageDeDxEstimator::dedx
std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits) override
Definition:
GenericAverageDeDxEstimator.h:12
mps_fire.result
result
Definition:
mps_fire.py:311
GenericAverageDeDxEstimator::m_expo
float m_expo
Definition:
GenericAverageDeDxEstimator.h:22
reco::DeDxHitCollection
std::vector< DeDxHit > DeDxHitCollection
Definition:
DeDxHit.h:41
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
BaseDeDxEstimator.h
GenericAverageDeDxEstimator::GenericAverageDeDxEstimator
GenericAverageDeDxEstimator(const edm::ParameterSet &iConfig)
Definition:
GenericAverageDeDxEstimator.h:10
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition:
ALCARECOTkAlJpsiMuMu_cff.py:47
DeDxHit.h
DeDxTools.h
edm::ParameterSet
Definition:
ParameterSet.h:48
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition:
Power.h:29
BaseDeDxEstimator
Definition:
BaseDeDxEstimator.h:7
Generated for CMSSW Reference Manual by
1.8.14