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
DataFormats
FEDRawData
src
FEDRawData.cc
Go to the documentation of this file.
1
8
#include <
DataFormats/FEDRawData/interface/FEDRawData.h
>
9
#include <
FWCore/Utilities/interface/Exception.h
>
10
#include <iostream>
11
12
using namespace
std
;
13
14
FEDRawData::FEDRawData
() {}
15
16
FEDRawData::FEDRawData
(
size_t
newsize) : data_(newsize) {
17
if
(newsize % 8 != 0)
18
throw
cms::Exception
(
"DataCorrupt"
) <<
"FEDRawData::resize: "
<< newsize <<
" is not a multiple of 8 bytes."
19
<< endl;
20
}
21
22
FEDRawData::FEDRawData
(
const
FEDRawData
&
in
) : data_(
in
.data_) {}
23
FEDRawData::~FEDRawData
() {}
24
const
unsigned
char
*
FEDRawData::data
()
const
{
return
data_
.data(); }
25
26
unsigned
char
*
FEDRawData::data
() {
return
data_
.data(); }
27
28
void
FEDRawData::resize
(
size_t
newsize) {
29
if
(
size
() == newsize)
30
return
;
31
32
data_
.resize(newsize);
33
34
if
(newsize % 8 != 0)
35
throw
cms::Exception
(
"DataCorrupt"
) <<
"FEDRawData::resize: "
<< newsize <<
" is not a multiple of 8 bytes."
36
<< endl;
37
}
Exception
Definition:
hltDiff.cc:245
FEDRawData::size
size_t size() const
Lenght of the data buffer in bytes.
Definition:
FEDRawData.h:45
std
Definition:
JetResolutionObject.h:76
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
FEDRawData::FEDRawData
FEDRawData()
Default ctor.
Definition:
FEDRawData.cc:14
FEDRawData::resize
void resize(size_t newsize)
Definition:
FEDRawData.cc:28
FEDRawData
Definition:
FEDRawData.h:19
Exception.h
FEDRawData::data_
Data data_
Definition:
FEDRawData.h:52
FEDRawData.h
FEDRawData::data
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition:
FEDRawData.cc:24
FEDRawData::~FEDRawData
~FEDRawData()
Dtor.
Definition:
FEDRawData.cc:23
Generated for CMSSW Reference Manual by
1.8.14