CMS 3D CMS Logo

Public Member Functions | Private Attributes

CDFChunk Class Reference

#include <CDFChunk.h>

List of all members.

Public Member Functions

void adoptBuffer (ULong64_t *buffer, Int_t length)
 CDFChunk (const char *name)
 CDFChunk ()
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 6 of file CDFChunk.h.


Constructor & Destructor Documentation

CDFChunk::CDFChunk ( ) [inline]

Definition at line 8 of file CDFChunk.h.

References fChunk, and fChunkLength.

{ fChunkLength=0; fChunk=new ULong64_t[1]; }
CDFChunk::CDFChunk ( const char *  name) [inline]

Definition at line 9 of file CDFChunk.h.

References fChunk, fChunkLength, fChunkName, and mergeVDriftHistosByStation::name.


Member Function Documentation

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

Definition at line 10 of file CDFChunk.h.

References fChunk, fChunkLength, fHeaderSize, and fTrailerSize.

Referenced by HcalTBWriter::analyze().

{ fChunk=buffer; fChunkLength=length; fHeaderSize=2; fTrailerSize=1; }
ULong64_t* CDFChunk::getData ( void  ) [inline]

Definition at line 13 of file CDFChunk.h.

References fChunk.

{ return fChunk; }
Int_t CDFChunk::getDataLength ( ) const [inline]

Definition at line 14 of file CDFChunk.h.

References fChunkLength.

Referenced by HcalTBSource::produce().

{ return fChunkLength; }
int CDFChunk::getSourceId ( ) const [inline]

Definition at line 15 of file CDFChunk.h.

References fChunk.

Referenced by HcalTBSource::produce().

{ return ((fChunk[0]>>8)&0xFFF); }
void CDFChunk::releaseBuffer ( ) [inline]

Definition at line 11 of file CDFChunk.h.

References fChunk, and fChunkLength.

Referenced by HcalTBWriter::analyze().

{ fChunk=0; fChunkLength=0; }
void CDFChunk::setChunkName ( const char *  name) [inline]

Definition at line 12 of file CDFChunk.h.

References fChunkName, and mergeVDriftHistosByStation::name.


Member Data Documentation

ULong64_t* CDFChunk::fChunk [private]

Definition at line 21 of file CDFChunk.h.

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

Int_t CDFChunk::fChunkLength [private]

Definition at line 20 of file CDFChunk.h.

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

TString CDFChunk::fChunkName [private]

Definition at line 17 of file CDFChunk.h.

Referenced by CDFChunk(), and setChunkName().

Int_t CDFChunk::fHeaderSize [private]

Definition at line 18 of file CDFChunk.h.

Referenced by adoptBuffer().

Int_t CDFChunk::fTrailerSize [private]

Definition at line 19 of file CDFChunk.h.

Referenced by adoptBuffer().