CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 6 of file CDFChunk.h.

Constructor & Destructor Documentation

CDFChunk::CDFChunk ( )
inline

Definition at line 8 of file CDFChunk.h.

References fChunk, and fChunkLength.

8 { fChunkLength=0; fChunk=new ULong64_t[1]; }
Int_t fChunkLength
Definition: CDFChunk.h:20
ULong64_t * fChunk
Definition: CDFChunk.h:21
CDFChunk::CDFChunk ( const char *  name)
inline

Definition at line 9 of file CDFChunk.h.

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

Int_t fChunkLength
Definition: CDFChunk.h:20
TString fChunkName
Definition: CDFChunk.h:17
ULong64_t * fChunk
Definition: CDFChunk.h:21

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().

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

Definition at line 13 of file CDFChunk.h.

References fChunk.

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

Definition at line 14 of file CDFChunk.h.

References fChunkLength.

Referenced by HcalTBSource::produce().

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

Definition at line 15 of file CDFChunk.h.

References fChunk.

Referenced by HcalTBSource::produce().

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

Definition at line 11 of file CDFChunk.h.

References fChunk, and fChunkLength.

Referenced by HcalTBWriter::analyze().

11 { fChunk=0; fChunkLength=0; }
Int_t fChunkLength
Definition: CDFChunk.h:20
ULong64_t * fChunk
Definition: CDFChunk.h:21
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().