Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
6
class
CDFChunk
:
public
TObject {
7
public
:
8
CDFChunk
() {
fChunkLength
=0;
fChunk
=
new
ULong64_t[1]; }
9
CDFChunk
(
const
char
*
name
) {
fChunkLength
=0;
fChunk
=0;
fChunkName
=
name
; }
10
void
adoptBuffer
(ULong64_t* buffer, Int_t length) {
fChunk
=buffer;
fChunkLength
=length;
fHeaderSize
=2;
fTrailerSize
=1; }
11
void
releaseBuffer
() {
fChunk
=0;
fChunkLength
=0; }
12
void
setChunkName
(
const
char
*
name
) {
fChunkName
=
name
; }
13
inline
ULong64_t*
getData
() {
return
fChunk
; }
14
inline
Int_t
getDataLength
()
const
{
return
fChunkLength
; }
15
inline
int
getSourceId
()
const
{
return
((
fChunk
[0]>>8)&0xFFF); }
16
private
:
17
TString
fChunkName
;
18
Int_t
fHeaderSize
;
19
Int_t
fTrailerSize
;
20
Int_t
fChunkLength
;
21
ULong64_t*
fChunk
;
// [fChunkLength]
22
ClassDef(
CDFChunk
,1)
23
};
24
#endif // CDFChunk_h_included
CDFChunk::CDFChunk
CDFChunk()
Definition:
CDFChunk.h:8
CDFChunk::releaseBuffer
void releaseBuffer()
Definition:
CDFChunk.h:11
CDFChunk::getSourceId
int getSourceId() const
Definition:
CDFChunk.h:15
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
CDFChunk::fChunkLength
Int_t fChunkLength
Definition:
CDFChunk.h:20
CDFChunk::fChunkName
TString fChunkName
Definition:
CDFChunk.h:17
CDFChunk::setChunkName
void setChunkName(const char *name)
Definition:
CDFChunk.h:12
CDFChunk::adoptBuffer
void adoptBuffer(ULong64_t *buffer, Int_t length)
Definition:
CDFChunk.h:10
CDFChunk::fChunk
ULong64_t * fChunk
Definition:
CDFChunk.h:21
CDFChunk::fTrailerSize
Int_t fTrailerSize
Definition:
CDFChunk.h:19
CDFChunk::CDFChunk
CDFChunk(const char *name)
Definition:
CDFChunk.h:9
CDFChunk::fHeaderSize
Int_t fHeaderSize
Definition:
CDFChunk.h:18
CDFChunk::getDataLength
Int_t getDataLength() const
Definition:
CDFChunk.h:14
CDFChunk
Definition:
CDFChunk.h:6
CDFChunk::getData
ULong64_t * getData()
Definition:
CDFChunk.h:13
Generated for CMSSW Reference Manual by
1.8.5