Main Page
Namespaces
Classes
Package Documentation
IORawData
HcalTBInputService
src
CDFChunk.h
Go to the documentation of this file.
1
#ifndef CDFChunk_h_included
2
#define CDFChunk_h_included 1
3
4
#include "TObject.h"
5
#include "TString.h"
6
7
class
CDFChunk
:
public
TObject {
8
public
:
9
CDFChunk
();
10
CDFChunk
(
const
char
*
name
);
11
void
adoptBuffer
(ULong64_t*
buffer
, Int_t length) {
fChunk
=
buffer
;
fChunkLength
=length;
fHeaderSize
=2;
fTrailerSize
=1; }
12
void
releaseBuffer
() {
fChunk
=
nullptr
;
fChunkLength
=0; }
13
void
setChunkName
(
const
char
* name) {
fChunkName
=
name
; }
14
inline
ULong64_t*
getData
() {
return
fChunk
; }
15
inline
Int_t
getDataLength
()
const
{
return
fChunkLength
; }
16
inline
int
getSourceId
()
const
{
return
((
fChunk
[0]>>8)&0xFFF); }
17
private
:
18
TString
fChunkName
;
19
Int_t
fHeaderSize
;
20
Int_t
fTrailerSize
;
21
Int_t
fChunkLength
;
22
ULong64_t*
fChunk
;
// [fChunkLength]
23
ClassDef(
CDFChunk
,1)
24
};
25
#endif // CDFChunk_h_included
edmScanValgrind.buffer
buffer
Definition:
edmScanValgrind.py:170
CDFChunk::CDFChunk
CDFChunk()
Definition:
CDFChunk.cc:3
CDFChunk::releaseBuffer
void releaseBuffer()
Definition:
CDFChunk.h:12
CDFChunk::getSourceId
int getSourceId() const
Definition:
CDFChunk.h:16
CDFChunk::fChunkLength
Int_t fChunkLength
Definition:
CDFChunk.h:21
CDFChunk::fChunkName
TString fChunkName
Definition:
CDFChunk.h:18
CDFChunk::setChunkName
void setChunkName(const char *name)
Definition:
CDFChunk.h:13
CDFChunk::adoptBuffer
void adoptBuffer(ULong64_t *buffer, Int_t length)
Definition:
CDFChunk.h:11
CDFChunk::fChunk
ULong64_t * fChunk
Definition:
CDFChunk.h:22
CDFChunk::fTrailerSize
Int_t fTrailerSize
Definition:
CDFChunk.h:20
CDFChunk::fHeaderSize
Int_t fHeaderSize
Definition:
CDFChunk.h:19
CDFChunk::getDataLength
Int_t getDataLength() const
Definition:
CDFChunk.h:15
dataset.name
name
Definition:
dataset.py:45
CDFChunk
Definition:
CDFChunk.h:7
CDFChunk::getData
ULong64_t * getData()
Definition:
CDFChunk.h:14
Generated for CMSSW Reference Manual by
1.8.11