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
RecoB
src
HistoShifter.cc
Go to the documentation of this file.
1
#include "
DQMOffline/RecoB/interface/HistoShifter.h
"
2
3
#include "TH1F.h"
4
5
bool
HistoShifter::insertAndShift
(TH1F*
in
,
const
float
&
value
) {
6
const
int
&
nBins
=
in
->GetNbinsX();
7
8
for
(
int
i
= 2;
i
<
nBins
; ++
i
) {
9
in
->SetBinContent(
i
- 1,
in
->GetBinContent(
i
));
10
in
->SetBinError(
i
- 1,
in
->GetBinError(
i
));
11
}
12
in
->SetBinContent(
nBins
,
value
);
13
14
return
true
;
15
}
16
17
bool
HistoShifter::insertAndShift
(TH1F*
in
,
const
float
&
value
,
const
float
&
error
) {
18
const
bool
&
ok
=
insertAndShift
(
in
,
value
);
19
in
->SetBinError(
in
->GetNbinsX(),
error
);
20
return
ok
;
21
}
mps_fire.i
i
Definition:
mps_fire.py:429
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
convertSQLiteXML.ok
bool ok
Definition:
convertSQLiteXML.py:98
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
HistoShifter.h
HistoShifter::insertAndShift
bool insertAndShift(TH1F *in, const float &value)
Definition:
HistoShifter.cc:5
value
Definition:
value.py:1
seedmultiplicitymonitor_newtracking_cfi.nBins
nBins
Definition:
seedmultiplicitymonitor_newtracking_cfi.py:8
Generated for CMSSW Reference Manual by
1.8.14