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() [1/2]

CDFChunk::CDFChunk ( )

Definition at line 3 of file CDFChunk.cc.

4  : TObject(), fChunkName(), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(new ULong64_t[1]) {}
Int_t fChunkLength
Definition: CDFChunk.h:30
TString fChunkName
Definition: CDFChunk.h:27
ULong64_t * fChunk
Definition: CDFChunk.h:31
Int_t fTrailerSize
Definition: CDFChunk.h:29
Int_t fHeaderSize
Definition: CDFChunk.h:28

◆ CDFChunk() [2/2]

CDFChunk::CDFChunk ( const char *  name)

Definition at line 6 of file CDFChunk.cc.

7  : TObject(), fChunkName(name), fHeaderSize(0), fTrailerSize(0), fChunkLength(0), fChunk(nullptr) {}
Int_t fChunkLength
Definition: CDFChunk.h:30
TString fChunkName
Definition: CDFChunk.h:27
ULong64_t * fChunk
Definition: CDFChunk.h:31
Int_t fTrailerSize
Definition: CDFChunk.h:29
Int_t fHeaderSize
Definition: CDFChunk.h:28

Member Function Documentation

◆ adoptBuffer()

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

Definition at line 11 of file CDFChunk.h.

References edmScanValgrind::buffer, fChunk, fChunkLength, fHeaderSize, and fTrailerSize.

11  {
12  fChunk = buffer;
13  fChunkLength = length;
14  fHeaderSize = 2;
15  fTrailerSize = 1;
16  }
Int_t fChunkLength
Definition: CDFChunk.h:30
ULong64_t * fChunk
Definition: CDFChunk.h:31
Int_t fTrailerSize
Definition: CDFChunk.h:29
Int_t fHeaderSize
Definition: CDFChunk.h:28

◆ getData()

ULong64_t* CDFChunk::getData ( void  )
inline

Definition at line 22 of file CDFChunk.h.

References fChunk.

22 { return fChunk; }
ULong64_t * fChunk
Definition: CDFChunk.h:31

◆ getDataLength()

Int_t CDFChunk::getDataLength ( ) const
inline

Definition at line 23 of file CDFChunk.h.

References fChunkLength.

Referenced by HcalTBSource::produce().

23 { return fChunkLength; }
Int_t fChunkLength
Definition: CDFChunk.h:30

◆ getSourceId()

int CDFChunk::getSourceId ( ) const
inline

Definition at line 24 of file CDFChunk.h.

References fChunk.

Referenced by HcalTBSource::produce().

24 { return ((fChunk[0] >> 8) & 0xFFF); }
ULong64_t * fChunk
Definition: CDFChunk.h:31

◆ releaseBuffer()

void CDFChunk::releaseBuffer ( )
inline

Definition at line 17 of file CDFChunk.h.

References fChunk, and fChunkLength.

17  {
18  fChunk = nullptr;
19  fChunkLength = 0;
20  }
Int_t fChunkLength
Definition: CDFChunk.h:30
ULong64_t * fChunk
Definition: CDFChunk.h:31

◆ setChunkName()

void CDFChunk::setChunkName ( const char *  name)
inline

Definition at line 21 of file CDFChunk.h.

References fChunkName, and mergeVDriftHistosByStation::name.

Member Data Documentation

◆ fChunk

ULong64_t* CDFChunk::fChunk
private

Definition at line 31 of file CDFChunk.h.

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

◆ fChunkLength

Int_t CDFChunk::fChunkLength
private

Definition at line 30 of file CDFChunk.h.

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

◆ fChunkName

TString CDFChunk::fChunkName
private

Definition at line 27 of file CDFChunk.h.

Referenced by setChunkName().

◆ fHeaderSize

Int_t CDFChunk::fHeaderSize
private

Definition at line 28 of file CDFChunk.h.

Referenced by adoptBuffer().

◆ fTrailerSize

Int_t CDFChunk::fTrailerSize
private

Definition at line 29 of file CDFChunk.h.

Referenced by adoptBuffer().