CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CDFChunk Class Reference

#include <CDFChunk.h>

Inheritance diagram for CDFChunk:

Public Member Functions

void adoptBuffer (ULong64_t *buffer, Int_t length)
 
 CDFChunk ()
 
 CDFChunk (const char *name)
 
ULong64_t * getData ()
 
Int_t getDataLength () const
 
int getSourceId () const
 
void releaseBuffer ()
 
void setChunkName (const char *name)
 

Private Attributes

ULong64_t * fChunk
 
Int_t fChunkLength
 
TString fChunkName
 
Int_t fHeaderSize
 
Int_t fTrailerSize
 

Detailed Description

Definition at line 7 of file CDFChunk.h.

Constructor & Destructor Documentation

CDFChunk::CDFChunk ( )

Definition at line 3 of file CDFChunk.cc.

3  : TObject(), fChunkName(), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(new ULong64_t[1]) {
4 }
Int_t fChunkLength
Definition: CDFChunk.h:21
TString fChunkName
Definition: CDFChunk.h:18
ULong64_t * fChunk
Definition: CDFChunk.h:22
Int_t fTrailerSize
Definition: CDFChunk.h:20
Int_t fHeaderSize
Definition: CDFChunk.h:19
CDFChunk::CDFChunk ( const char *  name)

Definition at line 6 of file CDFChunk.cc.

6  : TObject(), fChunkName(name), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(nullptr) {
7 }
Int_t fChunkLength
Definition: CDFChunk.h:21
TString fChunkName
Definition: CDFChunk.h:18
ULong64_t * fChunk
Definition: CDFChunk.h:22
Int_t fTrailerSize
Definition: CDFChunk.h:20
Int_t fHeaderSize
Definition: CDFChunk.h:19

Member Function Documentation

void CDFChunk::adoptBuffer ( ULong64_t *  buffer,
Int_t  length 
)
inline

Definition at line 11 of file CDFChunk.h.

References fChunk, fChunkLength, fHeaderSize, and fTrailerSize.

Referenced by HcalTBWriter::analyze().

11 { fChunk=buffer; fChunkLength=length; fHeaderSize=2; fTrailerSize=1; }
Int_t fChunkLength
Definition: CDFChunk.h:21
ULong64_t * fChunk
Definition: CDFChunk.h:22
Int_t fTrailerSize
Definition: CDFChunk.h:20
Int_t fHeaderSize
Definition: CDFChunk.h:19
ULong64_t* CDFChunk::getData ( void  )
inline

Definition at line 14 of file CDFChunk.h.

References fChunk.

14 { return fChunk; }
ULong64_t * fChunk
Definition: CDFChunk.h:22
Int_t CDFChunk::getDataLength ( ) const
inline

Definition at line 15 of file CDFChunk.h.

References fChunkLength.

Referenced by HcalTBSource::produce().

15 { return fChunkLength; }
Int_t fChunkLength
Definition: CDFChunk.h:21
int CDFChunk::getSourceId ( ) const
inline

Definition at line 16 of file CDFChunk.h.

References fChunk.

Referenced by HcalTBSource::produce().

16 { return ((fChunk[0]>>8)&0xFFF); }
ULong64_t * fChunk
Definition: CDFChunk.h:22
void CDFChunk::releaseBuffer ( )
inline

Definition at line 12 of file CDFChunk.h.

References fChunk, and fChunkLength.

Referenced by HcalTBWriter::analyze().

12 { fChunk=0; fChunkLength=0; }
Int_t fChunkLength
Definition: CDFChunk.h:21
ULong64_t * fChunk
Definition: CDFChunk.h:22
void CDFChunk::setChunkName ( const char *  name)
inline

Definition at line 13 of file CDFChunk.h.

References fChunkName, and dataset::name.

13 { fChunkName=name; }
TString fChunkName
Definition: CDFChunk.h:18

Member Data Documentation

ULong64_t* CDFChunk::fChunk
private

Definition at line 22 of file CDFChunk.h.

Referenced by adoptBuffer(), getData(), getSourceId(), and releaseBuffer().

Int_t CDFChunk::fChunkLength
private

Definition at line 21 of file CDFChunk.h.

Referenced by adoptBuffer(), getDataLength(), and releaseBuffer().

TString CDFChunk::fChunkName
private

Definition at line 18 of file CDFChunk.h.

Referenced by setChunkName().

Int_t CDFChunk::fHeaderSize
private

Definition at line 19 of file CDFChunk.h.

Referenced by adoptBuffer().

Int_t CDFChunk::fTrailerSize
private

Definition at line 20 of file CDFChunk.h.

Referenced by adoptBuffer().