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
SimCalorimetry
EcalEBTrigPrimAlgos
src
EcalEBPhase2TPFormatter.cc
Go to the documentation of this file.
1
#include <
SimCalorimetry/EcalEBTrigPrimAlgos/interface/EcalEBPhase2TPFormatter.h
>
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include <iostream>
4
5
EcalEBPhase2TPFormatter::EcalEBPhase2TPFormatter
(
bool
debug
) : debug_(
debug
) {}
6
7
EcalEBPhase2TPFormatter::~EcalEBPhase2TPFormatter
() {}
8
9
void
EcalEBPhase2TPFormatter::process
(std::vector<int> &,
10
std::vector<int64_t> &
time
,
11
std::vector<int> &outEt,
12
std::vector<int64_t> &outTime) {
13
unsigned
int
size
= amp.size();
14
outEt.resize(
size
);
15
outTime.resize(
size
);
16
17
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
) {
18
outEt[
i
] = amp[
i
];
19
outTime[
i
] =
time
[
i
];
20
}
21
22
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
) {
23
// this is the energy compression to 12 bits to go in the DF. To be done as last thing before building the TP
24
//Bit shift by 1 to go from 13 bits to 12
25
outEt[
i
] = outEt[
i
] >> 1;
26
if
(outEt[
i
] > 0xFFF)
27
outEt[
i
] = 0xFFF;
28
}
29
30
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
) {
31
// this is the time compression to 5 bits to go in the DF.
32
outTime[
i
] = outTime[
i
] >> 6;
33
if
(outTime[
i
] > 0xf)
34
outTime[
i
] = 0xf;
35
else
if
(outTime[
i
] < -0x10)
36
outTime[
i
] = -0x10;
37
}
38
}
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
mps_fire.i
i
Definition:
mps_fire.py:429
MessageLogger.h
hcalRecHitTable_cff.time
time
Definition:
hcalRecHitTable_cff.py:14
EcalEBPhase2TPFormatter::process
virtual void process(std::vector< int > &l, std::vector< int64_t > &time, std::vector< int > &outampl, std::vector< int64_t > &outtime)
Definition:
EcalEBPhase2TPFormatter.cc:9
EcalEBPhase2TPFormatter::~EcalEBPhase2TPFormatter
virtual ~EcalEBPhase2TPFormatter()
Definition:
EcalEBPhase2TPFormatter.cc:7
EcalEBPhase2TPFormatter::EcalEBPhase2TPFormatter
EcalEBPhase2TPFormatter(bool debug)
Definition:
EcalEBPhase2TPFormatter.cc:5
debug
#define debug
Definition:
HDRShower.cc:19
EcalEBPhase2TPFormatter.h
Generated for CMSSW Reference Manual by
1.8.14