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
CondFormats
SiPixelObjects
interface
LinearConversion.h
Go to the documentation of this file.
1
#ifndef SiPixelObjects_LinearConversion_H
2
#define SiPixelObjects_LinearConversion_H
3
4
namespace
sipixelobjects
{
5
6
class
LinearConversion
{
7
public
:
8
LinearConversion
(
int
offset
= 0,
int
slope
= 1) :
theOffset
(
offset
),
theSlope
(
slope
) {}
9
int
convert
(
int
item
)
const
{
return
theOffset
+
theSlope
*
item
; }
10
int
inverse
(
int
item
)
const
{
return
(
item
-
theOffset
) /
theSlope
; }
11
int
offset
()
const
{
return
theOffset
; }
12
int
slope
()
const
{
return
theSlope
; }
13
14
private
:
15
int
theOffset
,
theSlope
;
16
};
17
18
}
// namespace sipixelobjects
19
#endif
sipixelobjects::LinearConversion::theSlope
int theSlope
Definition:
LinearConversion.h:15
sipixelobjects::LinearConversion::convert
int convert(int item) const
Definition:
LinearConversion.h:9
sipixelobjects::LinearConversion
Definition:
LinearConversion.h:6
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:148
sipixelobjects::LinearConversion::inverse
int inverse(int item) const
Definition:
LinearConversion.h:10
sipixelobjects::LinearConversion::offset
int offset() const
Definition:
LinearConversion.h:11
sipixelobjects::LinearConversion::LinearConversion
LinearConversion(int offset=0, int slope=1)
Definition:
LinearConversion.h:8
sipixelobjects
Definition:
CablingPathToDetUnit.h:4
sipixelobjects::LinearConversion::slope
int slope() const
Definition:
LinearConversion.h:12
sipixelobjects::LinearConversion::theOffset
int theOffset
Definition:
LinearConversion.h:15
Generated for CMSSW Reference Manual by
1.8.14